Change default state for policy scope in security polices
What does this MR do and why?
This MR changed default state for policy scope
Policy scope for projects and group policies has default state as all projects in group
instead of compliance frameworks
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
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Description | UI |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Enable Feature Flag
Feature.enable(:security_policies_policy_scope)
Feature.enable(:security_policies_policy_scope_project)
- Go to Settings -> General
- Toggle the Permissions and group features section
- Enable Security policy scope
- Go to Project
- Secure -> Policies -> New Policy -> result or execution policy
- Make sure you see UI for regular project under policy scope section (see in table)
- Go to any other group or project
- Secure -> Policies -> Edit policy project
- Link project from step 3 to at least two other items (groups or projects)
- Go back to project from step 3 and make sure you see UI
SPP project
with multiple linked projects (see in table) - Make sure default state for new policies is
all projects in group
- Go to a group
- Secure -> Policies -> New Policy -> result or execution policy
- Make sure default state for new policies is
all projects in group
Related to #432513 (closed)
Edited by Artur Fedorov