Frontend: Manage group secrets manager permissions

Why are we doing this work

This adds the permission settings for group secrets manager.

Implementation table

header header
backend #577341 (closed)
frontend 👈 You are here!

Implementation plan

We need to update the following:

  • UI change: Replace the dropdown with a text input field where users provide the group full path directly. This requires the backend mutation to be updated first to accept group full path instead of id.
  • User list endpoint change: Ensure we're using GET /projects/:id/members/all for fetching the users list (verify we're not using /api/:version/projects/:id/users).
  • Use new fetch query for fetching group secrets manager permissions
  • Use new update mutation for creating/updating group secrets manager permissions
  • Use new delete mutation for deleting group secrets manager permissions
  • Merge Create and Update permission into one Write permission

This could be implemented in multiple MRs as these queries and mutations become available.

Verification steps

  1. Upload a Premium license (or above).
  2. Set up openbao and enable the secrets manager on your gdk.
  3. Enable the secrets_manager_group feature flag.
  4. Go to your group settings (Settings > General) and expand Visibility, project features, permissions or Permissions and group features to manage permissions.
Edited by Mireya Andres