Show Write secrets scope as Create, Update

What does this MR do and why?

The Secrets Manager permissions table now shows a WRITE permission as "Create, Update" instead of "Write".

For example:

  • The Owner row changes from "Read metadata, Write, Delete" to "Read metadata, Create, Update, Delete".
  • The Maintainer row changes from "Read metadata, Write" to "Read metadata, Create, Update".

This change only affects the display. The API still uses WRITE, which means create and update. There is no backend change and no data migration. Existing grants show the new scopes right away.

This is the first of three small frontend MRs for the work item.

  • This MR: show Write as Create, Update in the permissions table.
  • MR 2: add a Create checkbox to the Add permission modal, replace Write with Update in the modal. Update stays disabled until Create is selected. This MR also updates the docs.

The Add permission modal still has a "Write" checkbox in this MR.

Implementation details
  • constants.js builds the WRITE label from the existing "Create" label and a new "Update" label. Translations stay single words.
  • locale/gitlab.pot adds "Update" and removes the unused "Write".
  • The Jest table spec and the QA end-to-end checks use the new text.

References

Screenshots or screen recordings

Before (the text the table showed):

Tab Row Scope
Project, Roles Developer Read metadata, Create
Project, Roles Maintainer Read metadata, Write
Project, Roles Owner Read metadata, Write, Delete
Project, Users A user with a Write grant Read metadata, Write
Group, Roles Owner Read metadata, Write, Delete

After:

Project, Roles Project, Users Group, Roles
Project Roles tab Project Users tab Group Roles tab

How to set up and validate locally

  1. Use a project that has GitLab Secrets Manager enabled and provisioned.
  2. Go to Settings > General > Visibility, project features, permissions. Open the Secrets Manager permissions Roles tab.
  3. Check the rows:
    • Owner shows "Read metadata, Create, Update, Delete".
    • Maintainer shows "Read metadata, Create, Update".
    • Developer still shows "Read metadata, Create".
  4. Open the Users tab. A user with a Write grant shows "Read metadata, Create, Update".
  5. For a group, go to Settings > Secure. The Owner row shows "Read metadata, Create, Update, Delete".

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.

Edited by Chaya Danzinger

Merge request reports

Loading
Loading