Token expiry and --no-expiry for Bots #82

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

Part of #73 (spec: #72)

What to build

Every credential expires unless the Owner decides otherwise. Tokens expire after 365 days by default, --expires-in sets another lifetime, and --no-expiry is accepted only for Bot Tokens and prints a warning.

Acceptance criteria

  • A Token without flags expires 365 days after issue; a Token past expires_at gets the standard 401 (proved with the pinned clock)
  • --expires-in sets a custom lifetime
  • --no-expiry for a Person is refused with a non-zero exit; for a Bot it succeeds and prints a warning
Part of #73 (spec: #72) ## What to build Every credential expires unless the Owner decides otherwise. Tokens expire after 365 days by default, `--expires-in` sets another lifetime, and `--no-expiry` is accepted only for Bot Tokens and prints a warning. ## Acceptance criteria - [ ] A Token without flags expires 365 days after issue; a Token past `expires_at` gets the standard `401` (proved with the pinned clock) - [ ] `--expires-in` sets a custom lifetime - [ ] `--no-expiry` for a Person is refused with a non-zero exit; for a Bot it succeeds and prints a warning
bobby added the ready-for-agent label 2026-11-27 16:43:22 -05:00
bobby added a new dependency 2026-11-27 16:43:22 -05:00
bobby added a new dependency 2026-11-27 16:44:11 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: bobby/hapi#82