Expose CSP flag for the namespace type
What does this MR do and why?
Expose CSP for the namespace type
- Allow querying
designated_as_cspin GQL for the namespace type - Expose
designated_as_cspfor frontend viaSecurityOrchestrationHelper
Policies GQL will be extended in Expose `csp` in GQL for all policy types (!192672 - merged).
References
Screenshots or screen recordings
| Without CSP | With CSP |
|---|---|
![]() |
![]() |
How to set up and validate locally
- Enable the feature flag:
Feature.enable(:security_policies_csp) - Create a top-level group and assign it as a CSP using rails console:
Security::PolicySetting.instance.update! csp_namespace: Group.find(<group_id>) - Using
/-/graphql-explorer, run the following query:{ namespace(fullPath: "csp-group") { id designatedAsCsp } }
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.
Related to #541510 (closed)
Edited by Martin Cavoj

