Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

001 Accounts on auth-chad

Summary: why secrets uses auth-chad’s account API for passkeys, sessions, devices and recovery, and what stays in secrets.
Key terms: auth-chad, account API, hook, e2ee mode, recovery verifier, auth_path.
Related: Interfaces · Flows

Date: 2026-11-26. State: in force. Deployed on the test service with server 2a36178 and auth-chad bf07bcd.

Decided

  • The account API is auth-chad’s, mounted at /v1/auth (the server’s auth_path, configurable). secrets’ own account routes are gone.
  • auth-chad’s formats. IDs in the account API are base64url, and errors on every route are {"error": code}. The web app and the CLI changed in one release (v0.1.0-alpha.2).
  • auth-chad’s end-to-end encryption mode (Auth::with_e2ee): envelopes at signup, login, passkey add and remove, and recovery, with a recovery verifier. Recovery for an unknown handle returns a decoy, so handles do not leak.
  • Rules through hooks. Rules implements auth-chad’s Hooks: profile at signup, handle rules, invite rules, device scopes and kinds, machine grants at approval, rotation marks at revocation and at undo.
  • Admin invites from the host only. The invite_data hook refuses an admin flag from the API; the server’s admin invite --admin command makes admins.
  • Rate limits. auth-chad’s shared limits count account calls (auth_per_minute, default 20). secrets keeps its own write limit for project routes (writes_per_minute, 600).
  • Extra functions used: the session list (end one, end all), recovery status with the hold, and recovery undo. The device approval page shows the requesting address.

What stays in secrets

Projects, environments and their logs; the profile, user lookup and people routes; identity key replacement; machine grants and the choice of machines at a member’s removal; discovery, the request log and body limits.

Refused

RefusedReason
Recovery by email or by an ownerIt gives a login without the identity key, which nobody else can restore
View as a userIt conflicts with end-to-end encryption
API keysEvery client is key-bound; a device key does the same without a copyable secret
Mail recovery, external login, tenants, placesNo use in secrets

Not now

Not nowWhat can change it
Connected apps (OAuth for other companies’ apps)Read access for AI apps; the routes exist, with no app registered and dynamic registration off
Encrypted data sync (auth-chad spec 16)The open questions at the end of that draft

Consequences

People logged in once more after the switch. The two accounts from before it had to set a new recovery key, because the recovery verifier is new. CLIs before v0.1.0-alpha.2 stopped working.