feat: implement DeleteCurrentUserPAT RPC#1460
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (15)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThis PR introduces a new delete functionality for Personal Access Tokens (PATs) across multiple layers of the system. It adds soft-delete repository operations, service-level deletion with policy cleanup and audit logging, API interface methods and HTTP handlers, generated proto/connect code for the new RPC endpoint, and updates authorization and audit event constants. Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Suggested reviewers
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Script used to verify tuples for a pat_id: |
Pull Request Test Coverage Report for Build 23232723279Details
💛 - Coveralls |
Description:
Summary
DeleteCurrentUserPATRPC that soft-deletes a PAT and removes all its SpiceDB policiesChanges
DeleteCurrentUserPATRPC, request (UUID-validatedid), empty responseDeletemethod — setsdeleted_at, returnsErrNotFoundif already deletedDeletemethod withdeletePolicieshelper, audit logging (pat.revoked)core/userpatto.mockery.yamlManual test verification
user_patstable (deleted_atis set)policiestable