Log successful yaml annotation
What does this MR do and why?
We have implemented policy YAML annotation in this issue: #497774 (closed)
To understand the usage, simple JSON logging will be useful.
References
How to test locally
https://docs.gitlab.com/user/application_security/policies/#annotate-ids-in-policyyml
-
Create a project
-
Navigate to "Secure => Policies"
-
Create a security policy referencing some ID fields.
-
Update the security policy
policy.yml
file with the experiments option enabled:Add this at the end of
.gitlab/policies/policy.yml
in the security policy projectexperiments: annotate_ids: enabled: true
-
Now go to
Secure => Policies
and update the policy -
Create a merge request. (This will annotate the IDs in the
policy.yml
) -
Open
log/application_json.log
in your local GitLab project -
Search for "Successfully annotated policy YAML" message
Edited by Imam Hossain