Project policy EE secrets permissions refactor

What does this MR do and why?

This MR refactors the project secrets permissions. Previously, different user roles (reporter, maintainer, owner) had their permissions for managing secrets scattered throughout the code in separate rules. The update consolidates this by moving all secrets-related permissions to the appropriate role sections and adds a single rule that disables all secrets functionality when the secrets manager feature is turned off. This makes the code cleaner and easier to maintain while ensuring that secrets permissions are properly controlled based on user roles and feature availability.

References

Screenshots or screen recordings

Before After

How to set up and validate locally

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading