rave-trading docs
Local

Bootstrap & Login

Invite and magic-link bootstrap flow, per-env TTL matrix, and the preview gate.

The operator console does not allow self-registration. All initial access happens through an admin-issued invite plus a magic-link bootstrap. This matches the Track A design goal of removing shared logins and making every access grant auditable.

Flow

  1. Admin issues an invite from /admin/invites.
  2. Recipient receives a one-time link.
  3. Redeeming the link establishes a Better Auth session and binds the role declared on the invite.
  4. Every invite issue and redemption is written to the audit log.

Environment-specific TTL matrix

EnvironmentInvite TTLMagic-link TTLSession TTL
Production24 h10 min12 h
Staging7 d30 min24 h
PreviewGated on ALLOW_PREVIEW_BOOTSTRAP60 min24 h

Preview gate

Preview environments issue invites only when the ALLOW_PREVIEW_BOOTSTRAP env var is set. This keeps ephemeral PR URLs from becoming an accidental access surface while still letting reviewers exercise the full flow on demand.

Recovery

If a session is lost or compromised, an admin revokes the session from /admin/sessions and re-issues the invite. Recovery never bypasses the audit log; every revoke and re-issue is recorded.