Loading
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.jsbuilds theWRITElabel from the existing "Create" label and a new "Update" label. Translations stay single words.locale/gitlab.potadds "Update" and removes the unused "Write".- The Jest table spec and the QA end-to-end checks use the new text.
References
- Work item: #630995 (closed)
- Parent epic: gitlab-org#22535
- Create-only action MR: !254325 (merged)
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 |
|---|---|---|
![]() |
![]() |
![]() |
How to set up and validate locally
- Use a project that has GitLab Secrets Manager enabled and provisioned.
- Go to Settings > General > Visibility, project features, permissions. Open the Secrets Manager permissions Roles tab.
- Check the rows:
- Owner shows "Read metadata, Create, Update, Delete".
- Maintainer shows "Read metadata, Create, Update".
- Developer still shows "Read metadata, Create".
- Open the Users tab. A user with a Write grant shows "Read metadata, Create, Update".
- 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


