Deactivate a Principal #95

Open
opened 2026-11-27 16:43:31 -05:00 by bobby · 0 comments
Owner

Part of #73 (spec: #72)

What to build

Offboarding is one step: hapi principal deactivate <id> revokes all the Principal's Tokens and makes its grants and Bindings inert. Its Recorded by references stay valid.

Acceptance criteria

  • After deactivation, the Principal's Tokens get the standard 401
  • A deactivated Bot's grants and Bindings no longer give it access, even via RLS
  • Records it created still show it in Recorded by
  • Deactivation is audited
Part of #73 (spec: #72) ## What to build Offboarding is one step: `hapi principal deactivate <id>` revokes all the Principal's Tokens and makes its grants and Bindings inert. Its Recorded by references stay valid. ## Acceptance criteria - [ ] After deactivation, the Principal's Tokens get the standard `401` - [ ] A deactivated Bot's grants and Bindings no longer give it access, even via RLS - [ ] Records it created still show it in Recorded by - [ ] Deactivation is audited
bobby added the ready-for-agent label 2026-11-27 16:43:31 -05:00
bobby added a new dependency 2026-11-27 16:43:32 -05:00
bobby added a new dependency 2026-11-27 16:43:32 -05:00
bobby added a new dependency 2026-11-27 16:43:33 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: bobby/hapi#95