Skip to content

[FE] [CS For Registry] Add security configuration setting with feature flag

Description

  1. Propagate the development feature flag named CS_FOR_REGISTRY to frontend.
  2. Incorporate a security configuration setting called container_scanning_for_registry_enabled.
  3. Update GraphQL endpoints to allow toggling settings on and off.
  4. Utilize the transmitted setting status from ConfigurationPresenter.
  5. Update the UI as per design in epic.

User Impact

This setting should be placed under a development feature flag to ensure no user impact occurs until the FF is deactivated. Once the FF is activated and the backend issue is completed, users should be able to view the option to toggle the configuration on/off.

Non-functional requirements

  • Feature flag: The feature should be behind FF.
  • Testing: Add unit tests/specs.

Implementation plan

Prior toggle for reference

This was the prior toggle we had

!131315 (diffs)

!131450 (diffs)

!131768 (diffs)

Screenshots

Currently w/ toggle
Screenshot_2024-03-05_at_5.49.49_PM Use layout from prior toggle but change text copy

Verification steps

  1. Turn on the FF.
  2. The UI should have an option to toggle the setting.
  3. The UI should display the status of the setting on the registry page.
  4. Turn off the FF.
  5. Verify that point 2-3 should be removed.
Edited by Fernando Cardenas