[go: up one dir, main page]

Getting detailed git transaction logs.

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Getting detailed git transaction logs (aka push/pull/clone).

Release notes

Gitlab does not record specific git transaction (aka push/pull/clone), this feature is highly valuable by any company/organization
that requires high level of audit resolution and monitoring.

Problem to solve

add specific transaction on gitlab-shell.log (and its https equevalent) and/or provide json log format for easier parse.

Proposal

example gitlab-shell.log: current log line:

{"command":"git-receive-pack","correlation_id":"########################","git_protocol":"","gl_key_id":#,"gl_key_type":"key","gl_project_path":"root/tester","gl_repository":"project-example","level":"info","msg":"executing git command","remote_ip":"123.123.123.123","time":"2055-03-30T03:00:09Z","user_id":"git-user-1","username":"gituser1"}

proposed log line: {"command":"git-receive-pack","correlation_id":"########################","git_protocol":"","gl_key_id":#,"gl_key_type":"key","gl_project_path":"root/tester","gl_repository":"project-example","level":"info","msg":"executing git command","git_command": "push","remote_ip":"123.123.123.123","time":"2055-03-30T03:00:09Z","user_id":"git-user-1","username":"gituser1"}

Please note that this has been achieved by 3rd party moders! nonetheless, 3rd party modding of containerized / omnibus installation is not at all advised and not at all an option for production environments to use! reference: https://github.com/kfei/gitlab-auditor#apply-patches-to-gitlab-services

Intended users

Admins, Analysts, Forensic experts, Auditors, etc...

Personas are described at https://about.gitlab.com/handbook/marketing/product-marketing/roles-personas/

Feature Usage Metrics

Edited by 🤖 GitLab Bot 🤖