1.5 KiB
1.5 KiB
Design
Use this page as the English entry point for the current design tradeoffs behind accounts.svc.plus.
Primary Decision Record
The main design record is architecture/design-decisions.md. It captures the implementation choices that are actually true in the current codebase, including:
- session-first authentication instead of a JWT-only control plane,
store.Storeas the boundary around primary business persistence,- GORM used only for specific admin-side models,
- agent pre-shared token authentication through
agentserver.Registry, - XWorkmate secret locator plus Vault-backed secret persistence,
- Xray config generation and periodic convergence as the control model.
Suggested Reading Order
Design Snapshot
- Runtime truth is meant to come from the current store / runtime contracts, not from duplicated local config-center state.
- Session, MFA challenge, email verification, password reset, and OAuth exchange state are process-local by design in the current implementation.
- Admin policy and homepage customization are intentionally separated into GORM-backed services rather than folded into the primary store abstraction.
- Agent mode reuses the same Xray generation primitives as server mode instead of introducing a second configuration model.