MACROSTRATEGIES

Stack

Cloudflare services
LayerServiceUsed for
RuntimeCloudflare WorkersServes the sign-in pages and the OIDC endpoints. Custom domain only; workers.dev and preview URLs are off.
StateDurable Objects (SQLite)One instance per email for codes (hash only, 10 minutes), and one per sign-in or authorization code. Cleared by alarm.
Rate limitsWorkers Rate Limiting bindingPer IP and per email on code sends, code checks, /authorize, and /token.
EmailCloudflare Email Sendingsend_email binding. From login@macrostrategies.ai with SPF, DKIM, and DMARC on the domain.
Access controlCloudflare AccessUses this service as a generic OIDC login method. Access checks its own policies and issues the session cookie.
LogsWorkers LogsStructured JSON events. No codes, tokens, secrets, or full email addresses.
Libraries in the Worker
PackageVersionLicenseUsed for
hono4.13.14MITRouter
jose6.2.13MITSigns ID tokens (ES256)
Archivo (variable)@fontsource-variable/archivo 5.3.0OFL-1.1Display and body type, self-hosted (no CDN)
JetBrains Mono 500latin 500OFL-1.1Labels, self-hosted (no CDN)
MACROSTRATEGIES design systemtokens v3PrivateColors, type, and components (design/tokens.json, design/ms-login.css)

Randomness, SHA-256, and constant-time comparison come from Web Crypto in the Workers runtime. No cryptography is written by hand.