Audit events for auth and Token changes #84

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

Part of #73 (spec: #72)

What to build

The Owner can investigate misuse. Every auth decision (success or failure, with the failure reason) and every Token issue or revoke produces a structured audit log event with the Principal and request_id, never a secret.

Acceptance criteria

  • A successful request logs an audit event with principal_id
  • Each 401 logs its specific reason internally, while the response stays identical
  • Token issue (CLI) and revoke (CLI or API) log audit events
  • No Token secret or hash appears in any log line
Part of #73 (spec: #72) ## What to build The Owner can investigate misuse. Every auth decision (success or failure, with the failure reason) and every Token issue or revoke produces a structured audit log event with the Principal and `request_id`, never a secret. ## Acceptance criteria - [ ] A successful request logs an audit event with `principal_id` - [ ] Each `401` logs its specific reason internally, while the response stays identical - [ ] Token issue (CLI) and revoke (CLI or API) log audit events - [ ] No Token secret or hash appears in any log line
bobby added the ready-for-agent label 2026-11-27 16:43:23 -05:00
bobby added a new dependency 2026-11-27 16:43:23 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: bobby/hapi#84