Resolve "Frontend: Add Secrets Manager Open Beta settings toggle for self-managed"

What does this MR do and why?

The secrets manager feature will be available for open beta in the next milestone (%19.1).

This MR adds a new setting to the Admin Area for self-managed instances, allowing an admin to enable the secrets manager feature for all groups and projects in the instance. Group and project owners would be able to see the UI to provision a secrets manager for their group/project when the admin has enabled the feature this way.

The toggle visibility in the Admin Area is gated by the secrets_manager_instance_enrollment feature flag.

The backend code for this functionality is in review here !235078 (merged)

References

Backend MR: !235078 (merged)

Other frontend MR implementing the SaaS toggle: !235282 (merged)

Parent issue with designs: https://gitlab.com/gitlab-org/gitlab/-/work_items/597481

Screenshots or screen recordings

The toggle section in the admin area:

image

Group settings when the Admin Area secrets manager enrolment toggle is disabled:

image

Does not show secrets manager section

Group settings when Admin Area secrets manager enrolment toggle is enabled:

image

Shows the secrets manager section

How to set up and validate locally

  1. Pull the backend changes from !235078 (merged) or make sure it is merged.
  2. Ensure the GDK is NOT running in SaaS mode
  3. Set up openbao on your gdk.
  4. Enable the secrets_manager_instance_enrollment, group_secrets_manager, secrets_manager feature flags
  5. Pick a group and project, observe there is no secrets manager section in their settings
  6. Navigate to the Admin Area by clicking the Admin button on the top right of the page, go to the Settings -> General, find the Gitlab Secrets Manager section and enable the toggle
  7. Go back to the group or project, refresh the page (may take up to 60s for the results to be visible), and check the settings of the group/project and observe the secrets manager section is visible

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 #598060 (closed)

Edited by Ahmad Hussein

Merge request reports

Loading