Create audit event when deploying to protected environment
What does this MR do and why?
Creates an audit event when deploying to a protected environment.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
How to set up and validate locally
- Create a project, and create a protected environment, adding your user/role as an allowed deployer.
- Add a CI template to deploy to your environment, for example:
stages: - deploy production: stage: deploy script: - 'echo deploying..' environment: <your-env-name>
- Start a pipeline, and wait for the job above to run.
- Visit admin -> monitoring -> audit events and see that an event has been logged for the deployment starting.
Related to #456687 (closed)
Edited by Tiger Watson