fix(credential-groups): harden cursor and cache isolation - #6731
fix(credential-groups): harden cursor and cache isolation#6731TheodoreSpeaks wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview On the Credential Groups workflow block, dynamic dropdown Reviewed by Cursor Bugbot for commit f4c8f10. Bugbot is set up for automated code reviews on this repo. Configure here. |
|
@cursor review |
Greptile SummaryThe PR signs and scope-binds Credential Group enrollment cursors, raises the request bound to accommodate the new token format, and prevents caller cancellation from affecting the shared Credential Group cache.
Confidence Score: 5/5The PR appears safe to merge. The previously reported cursor-length failure is fixed, and no blocking failure remains.
|
| Filename | Overview |
|---|---|
| apps/sim/lib/credential-groups/enrollments.ts | Introduces versioned HMAC-signed cursors bound to workspace, group, and normalized enrollment filters. |
| apps/sim/lib/api/contracts/credential-groups.ts | Replaces the insufficient 128-character enrollment cursor limit with the shared 256-character bound. |
| apps/sim/lib/credential-groups/enrollments.test.ts | Covers request-schema compatibility, cross-scope replay rejection, and signed-boundary tampering. |
| apps/sim/blocks/blocks/credential-group.ts | Ensures dynamic-option cancellation does not cancel the shared Credential Group list query. |
| apps/sim/lib/credential-groups/types.ts | Defines the shared enrollment cursor length limit used by the API contract. |
Sequence Diagram
sequenceDiagram
participant Client
participant Schema as Request Schema
participant Enrollment as Enrollment Service
participant DB
Client->>Schema: Request first page
Schema->>Enrollment: Validated filters
Enrollment->>DB: Query enrollments
Enrollment-->>Client: Results + signed, scope-bound nextCursor
Client->>Schema: Request next page with cursor
Schema->>Enrollment: Cursor within shared length bound
Enrollment->>Enrollment: Verify HMAC and request scope
Enrollment->>DB: Query after authenticated boundary
Enrollment-->>Client: Next page
Reviews (2): Last reviewed commit: "fix(credential-groups): accept signed en..." | Re-trigger Greptile
a9aeb9a to
f4c8f10
Compare
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit f4c8f10. Configure here.
Summary
Type of Change
Testing
bun run lintbun run lint:checkbun run type-checkbun run check:auditsChecklist