Increase token preview length in runner audit logs
What does this MR do and why?
Describe in detail what your merge request does and why.
This MR adds logic to determine the correct length for a safe preview of the runner registration token that is shown in an audit log message, given that there was a recent introduction of a runner registration prefix.
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.
- Register a runner
- Go to http://gdk.test:3000/admin/audit_logs
- The runner registration even should contain a longer version of the registration token used, instead of just the first 9 characters, if a prefix is being used.
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.
Edited by Pedro Pombeiro