Add audit logs when unassigning CI runner from a project
What does this MR do and why?
Describe in detail what your merge request does and why.
This MR adds audit log entries when unassigning a runner from a project.
Screenshots or screen recordings
These are strongly recommended to assist reviewers and reduce the time to merge your change.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
-
Go to a project's CI/CD settings page (e.g. http://gdk.test:3000/h5bp/html5-boilerplate/-/settings/ci_cd) and expand the Runners section
-
Use the runner registration token listed to register a runner:
gitlab-runner register -config ~/.gitlab-runner/config.gdk.toml \ --executor "shell" \ --url "http://gdk.test:3000/" \ --description "Project audit log test runner" \ --tag-list "shell,gdk,test" \ --run-untagged="false" \ --locked="false" \ --access-level="not_protected" --non-interactive \ --registration-token="$REGISTRATION_TOKEN" -
Go to another project's CI/CD Settings page (e.g. http://gdk.test:3000/flightjs/Flight/-/settings/ci_cd) and expand the Runners section
-
In the
Available specific runnerssection, you should find the new runner listed -
Click on the
Enable for this projectbutton -
Click on the
Disable for this projectbutton -
Visit http://gdk.test:3000/admin/audit_logs and see the related audit log entries (both for associating and dissociating the runner)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Close #349542 (closed)