Skip to Content
Bryfo Docsv0.2.1

/admin Control Plane & Hot Settings

Configure OIDC, XOAUTH2, S3/R2 storage, AI routing, and 5 emergency circuit breakers live without container restarts.

Operational policies live encrypted in PostgreSQL (system_settings and domain tables) and broadcast live across api and worker processes via Valkey Pub/Sub.

Step-Up Re-Verification (X-Bryfo-Step-Up)

Privileged /admin/* mutations require a 10-minute session-bound X-Bryfo-Step-Up token (POST /api/v1/auth/step-up):

  • Verified via live 6-digit TOTP (or single-use recovery code) when totp_enabled = true, or local password / fresh (<= 5m) OIDC login otherwise.
  • 5 consecutive failed Step-Up attempts within 15 minutes lock out Step-Up for that (user, IP) pair.
  • Origin Change Guard (API_KEY_REQUIRED_ON_ORIGIN_CHANGE): Stored upstream API keys are never returned unmasked; changing an upstream endpoint URL requires re-entering the API key.

The 9 /admin/* Workbenches

RouteKey Controls
/admin14-day telemetry trends, user/mailbox totals, and subsystem health summary
/admin/usersUser search, role promotion, plan/credit overrides, and 5-way atomic containment (revokes sessions, SSE, IDLE, pending MCP approvals, and /mcp tokens)
/admin/ai@earendil-works/pi-ai catalog, custom gateways, embeddings (halfvec HNSW for 2001–4000 dims), and token-to-credit pricing
/admin/privacyMandatory global outbound PII baseline (obfuscate vs. placeholder)
/admin/infraSHA-256 deduplication telemetry, live Local ↔ S3 / R2 / Garage / OSS switching (DynamicStore), manual GC trigger, and LOG_LEVEL / METRICS_TOKEN / IDLE_* tuning
/admin/mailserverStalwart v1.2.1 JMAP connection, DNS ownership/MX/SPF/DKIM/DMARC verification, and managed mailboxes
/admin/securityRegistration policy, System SMTP, OIDC SSO, Google/Microsoft Mail XOAUTH2, Cloudflare Turnstile, IP/domain blocklist, 5 emergency circuit breakers, and immutable security_audit_logs
/admin/plans(Cloud / BILLING_ENABLED=true) Dual-currency (USD/CNY) tiers and batch SHA-256 redeem codes
/admin/orders(Cloud / BILLING_ENABLED=true) Stripe, Alipay, WeChat Pay V3, EPay gateways, manual fulfill, and snapshot-restoring refunds

5 Emergency Blue-Team Circuit Breakers

Toggleable instantly under /admin/security:

  1. emergency_read_only — Blocks state-changing user mutations across HTTP and /mcp.
  2. outbound_smtp_paused — Pauses all user SMTP submissions and scheduled sends.
  3. mcp_disabled — Rejects all /mcp traffic instance-wide.
  4. ai_disabled — Pauses site AI chat, classification, briefs, and pre-drafts.
  5. invite_and_oidc_register_paused — Freezes invite-code and OIDC auto-registration.

On this page