Skip to content

feat(editor): Add secret store scopes to custom project role editor#2090

Draft
everettbu wants to merge 10 commits into
masterfrom
ligo-273-project-scope-enable-custom-project-role-that-include
Draft

feat(editor): Add secret store scopes to custom project role editor#2090
everettbu wants to merge 10 commits into
masterfrom
ligo-273-project-scope-enable-custom-project-role-that-include

Conversation

@everettbu

Copy link
Copy Markdown

Mirror of n8n-io/n8n#26143
Original author: ireneea


Summary

Enable custom project roles to include external secrets provider scopes in the role editor UI. This allows instance admins to create custom project roles that grant users access to manage secret stores within their projects.

Changes:

  • Added externalSecretsProvider scopes (read, create, update, delete, sync) to the role editor checkboxes in projectRoleScopes.ts
  • Gated the new "Secret stores" section behind the EXTERNAL_SECRETS_FOR_PROJECTS feature flag in ProjectRoleView.vue
  • Auto-toggles externalSecret:list when externalSecretsProvider:read is selected (needed for expression editor autocomplete)
  • Added i18n translations for the new scope labels and tooltips
  • No backend changes needed — the API already accepts any valid scope for custom roles

How to test:

  1. Enable the EXTERNAL_SECRETS_FOR_PROJECTS feature flag
  2. Go to Settings → Project Roles → Create/Edit a custom role
  3. Verify the "Secret stores" section appears with View, Create, Edit, Delete, and Sync checkboxes
  4. Verify the section is hidden when the feature flag is off

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/LIGO-273/project-scope-enable-custom-project-role-that-include-secrets-scopes

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

Enable custom project roles to include external secrets provider scopes
(read, create, update, delete, sync) in the role editor UI, gated behind
the EXTERNAL_SECRETS_FOR_PROJECTS feature flag.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@everettbu everettbu added the n8n team Authored by the n8n team label Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

n8n team Authored by the n8n team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants