Skip to content

Fix CI token access bypass after grant revocation#8

Draft
cursor[bot] wants to merge 2 commits intomainfrom
cursor/critical-bug-inspection-e693
Draft

Fix CI token access bypass after grant revocation#8
cursor[bot] wants to merge 2 commits intomainfrom
cursor/critical-bug-inspection-e693

Conversation

@cursor
Copy link
Copy Markdown

@cursor cursor bot commented Apr 5, 2026

Summary

  • enforce current creator authorization in GET /api/ci/file
  • deny token usage when the token creator no longer has access to the requested collection
  • add regression tests for revoked-access and allowed-access scenarios

Why

Previously, a user could create an access token while granted access, then continue reading collection secrets via CI API even after their grant was revoked. This bypassed access revocation.

Validation

  • npm test -- src/app/api/ci/file/route.test.ts
  • npm test
Open in Web View Automation 

cursoragent and others added 2 commits April 5, 2026 11:08
Co-authored-by: Vitalii Melnychuk <vitaliimelnychuk@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant