Respect tag protection rules when deleting tags
Context
Related to https://gitlab.com/groups/gitlab-org/-/epics/15608+. See the epic description for additional context as well as an overview of the overall implementation plan.
What does this MR do and why?
When deleting container tags, the delete endpoint should not delete a tag that matches a tag protection rule. If the tag name passed for deletion is protected, the endpoint should return a bad request error.
Changelog: added
References
- #499873
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
NA
How to set up and validate locally
Local validation steps here
Related to #499873
Edited by Radamanthus Batnag