Users occasionally write in to say that there is a commit from the incorrect or an unknown user or email.
It is part of Support’s responsibility to determine whether this is due to a misconfiguration (which is common) or a true security incident.
Finding the commit user
For more information on using Kibana in general, please see 500 errors workflow.
To find the user who made the commit:
- Open sidekiq logs.
- Search for the commit SHA.
- Optionally add project path as
- Look for an entry with an
insertIdand the SHA under
json.meta.userindicates the GitLab username that pushed the commit.
If logs are unavailable in Kibana (older than 7 days), try searching the project’s activity page for the SHA. If that doesn’t work, post in Slack #security for assistance.
Based on the search results, check to see if the user is authorized to have access to the project.
If yes, then respond to customer clarifying which user made the commit and for the user to double check their
gitconfig name and email address.
If not, then open a a secops issue for further investigation.