fix(oauth): trim Atlassian OAuth scopes to fix CloudFront 414#4386
fix(oauth): trim Atlassian OAuth scopes to fix CloudFront 414#4386waleedlatif1 wants to merge 5 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview Adds the Confluence Reviewed by Cursor Bugbot for commit 414442d. Configure here. |
Greptile SummaryThis PR trims ~29 Atlassian OAuth scopes across Confluence, Jira, and JSM to shorten the authorization URL and fix CloudFront 414 errors, and adds the new
Confidence Score: 3/5Not safe to merge without fixing the stale A P1 defect exists: the Confluence knowledge-base connector declares apps/sim/connectors/confluence/confluence.ts — line 122 Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant App
participant AtlassianOAuth as Atlassian OAuth
participant Connector as Confluence Connector
participant ScopeCheck as getMissingRequiredScopes
User->>App: Connect Confluence account
App->>AtlassianOAuth: Request scopes (oauth.ts list, now WITHOUT read:confluence-content.all)
AtlassianOAuth-->>App: Token (scopes granted = trimmed list)
User->>App: Trigger knowledge-base sync
App->>Connector: Check auth
Connector->>ScopeCheck: requiredScopes = ['read:confluence-content.all', ...]
ScopeCheck-->>Connector: MISSING: ['read:confluence-content.all']
Connector-->>App: Auth error (scope missing)
App-->>User: Sync fails
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 3 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 414442d. Configure here.
Jira issue retrieve tool reads fields.votes.votes and fields.votes.hasVoted from the GET /rest/api/3/issue payload, which requires the read:issue.vote:jira granular scope. Restoring to prevent vote data from being omitted in retrieve responses.
Atlassian recommends <50 scopes per OAuth app to keep authorize URLs under URL-length limits. Drops 20 granular Jira read/write scopes that are subsumed by the classic read:jira-work / write:jira-work scopes already in the list. Existing user tokens are unaffected — Atlassian refresh keeps originally-granted scopes; the trimmed list only applies to new authorizations. Kept granular scopes: delete:* (no classic equivalent) and JSM granular scopes (separate scope family).
|
Closing in favor of a fresh PR for clean review. |

Summary
read:confluence-user(v1 user endpoint requires it) — needs to also be added in the Atlassian Developer ConsoleType of Change
Testing
Tested manually
Checklist