docs: replace workflow:updateRedactionSetting with two new scopes#4637
Open
yuliia-pominchuk wants to merge 2 commits into
Open
docs: replace workflow:updateRedactionSetting with two new scopes#4637yuliia-pominchuk wants to merge 2 commits into
yuliia-pominchuk wants to merge 2 commits into
Conversation
✅ Deploy Preview for n8n-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
No issues found across 2 files
Architecture diagram
sequenceDiagram
participant User as End User
participant UI as UI
participant API as RBAC API
participant Auth as Authorization Check
participant PolicyDB as Policy Store
Note over User,PolicyDB: Custom Role Permission Scope Flow (Current State)
User->>UI: Request to configure redaction for a workflow
UI->>UI: Show Enable/Disable toggles
alt Enable redaction
UI->>API: PATCH /workflows/{id} with action="enableRedaction"
API->>Auth: Check `workflow:enableRedaction` scope
Auth->>PolicyDB: Lookup custom role permissions
PolicyDB-->>Auth: Scope list
alt Has `workflow:enableRedaction`
Auth-->>API: Authorized
API->>API: Turn on redaction
API-->>UI: Success
else Missing scope
Auth-->>API: Forbidden
API-->>UI: 403 error
end
else Disable redaction
UI->>API: PATCH /workflows/{id} with action="disableRedaction"
API->>Auth: Check `workflow:disableRedaction` scope
Auth->>PolicyDB: Lookup custom role permissions
PolicyDB-->>Auth: Scope list
alt Has `workflow:disableRedaction`
Auth-->>API: Authorized
API->>API: Turn off redaction
API-->>UI: Success
else Missing scope
Auth-->>API: Forbidden
API-->>UI: 403 error
end
end
Note over PolicyDB: Two independent scopes allow granular role assignment
Note over UI: UI shows separate enable/disable permissions<br/>in role configuration UI
Deploying n8n-docs with
|
| Latest commit: |
c3a5f23
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://d5525297.n8n-docs-d9c.pages.dev |
| Branch Preview URL: | https://iam-511-update-redaction-sco.n8n-docs-d9c.pages.dev |
|
No description provided. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces the deprecated
workflow:updateRedactionSettingscope with two new granular scopes:workflow:enableRedactionandworkflow:disableRedaction.