[CS For Registry] Add security configuration setting with feature flag
Description
- Introduce a development feature flag named
CS_FOR_REGISTRY
. - Incorporate a security configuration setting called
container_scanning_for_registry_enabled
. - Update GraphQL endpoints to allow toggling settings on and off.
- Transmit the setting status to the frontend using
ConfigurationPresenter
. - Document the newly introduced setting.
User Impact
This setting should be placed under a development feature flag to ensure no user impact occurs until the FF is enabled. Once the FF is activated and the frontend issue is completed, users should be able to view the option to toggle the configuration on/off.
Non-functional requirements
-
Documentation: Document the newly introduced setting. -
Feature flag: The feature should be behind FF. -
Testing: Add unit tests/specs.
Implementation plan
- Introduce a new development feature flag.
- Append fresh attributes to the project security settings database table.
- Enhance
ConfigurationPresenter
to display the value of the aforementioned setting. - Develop a GraphQL mutation to enable toggling of this feature.
Note: This can be divided into several MRs with each line item mentioned above if necessary.
Verification steps
- Turn on the FF.
- The GraphQL endpoint should include an option to enable or disable the settings.
- The GraphQL endpoint should display the status of the setting using
ConfigurationPresenter
. - The security configuration page should provide a description of these settings.
- Turn off the FF.
- Verify that point 2-4 should be removed.
Edited by Aditya Tiwari