Passkin signs people in to other people's sites. A mistake here does not leak
one site's data; it lets someone be someone else, everywhere. Each rule below
has a test in apps/auth-broker/tests or packages/db/tests.
Who can get a code for whom
- A code is issued only to a registered redirect URI, compared exactly
(
oidc/clients.ts → redirectAllowed). Until the URI is known to be the site's, every error is a page on Passkin, never a redirect. - PKCE S256 is required for every client. A code is bound to the client, the redirect URI and the challenge, lives two minutes, and works once. A second redemption ends the session the first one created.
- Codes and refresh tokens are stored as SHA-256 hashes; a dump of the database (or of Redis, if one is used) hands out nothing usable.
Websites and apps
A project's applications share its users and keys; each is held to what its
platform can keep (oidc/clients.ts, tests/applications.test.ts).
- Each type may register only the addresses it can safely use: https for
websites (http only on loopback, and never in production); a
reverse-domain private scheme (
com.example.app:) or https for iOS and Android; loopback on any port, a private scheme or https for desktop.javascript:,data:,file:and the like are refused for every type, and a URL of the wrong kind never matches even if it was somehow stored. - An app on a device or a page cannot keep a secret, so a secret sent with
an
spa,ios,androidordesktopclient id is refused, not ignored. They are held to PKCE. - A code, a refresh token and a session belong to one application: a code issued to the iPhone app cannot be redeemed as the website, and its refresh token does not work for another client id. Deleting an application ends every session that came through it.
- Any app on a phone or a computer can claim a private scheme or listen on a
loopback port, so a code for one of those addresses is never handed out
without the person pressing Continue — even when they allowed the app
before, and
prompt=noneanswersinteraction_required(RFC 8252 §8.6). A Universal Link or App Link is https proven by the domain, and is answered like a website. - The id token's audience is the application; the access token's is the
project, so one backend accepts every application's tokens and reads
client_idto know which one called. - The page names who is asking: the host of a website, or «iOS app · com.example.shop» for an app.
Native sign-in
An app that signs in with the phone's Google sheet or Sign in with Apple
presents the provider's ID token (native.ts, tests/native.test.ts). With
no redirect URI to prove which app is talking, the token must:
- verify against Google's or Apple's published keys, with their issuer, and be at most ten minutes old;
- be addressed to the project's Google web client or to the app's own client,
and issued to the app's own client at the provider (Google's
azp, Apple'saud). Those client ids are registered per application and unique across Passkin — the first registration wins, so a token one customer's app received is never accepted for another's. On Passkin's shared Google app only Passkin's operators attach Google clients (from a developer's request naming the app's package and certificates), so no developer can register a client id that is not theirs; - carry a nonce Passkin issued for that very application, spent on first use whatever the outcome — a token copied from a log, or replayed, is refused.
Then the same path as the browser: unverified email refused, bans and the
temporary-address policy applied (join.ts is shared), and a secret from the
app refused.
Who the person is
- Identity comes from Google's
id_token(issuer, audience and nonce checked), from GitHub's verified emails (/user/emails, never the profile's public field), or from a code sent to the address. - A passport is found by the upstream account first, by verified email second. An unverified address never reaches anyone's passport.
- There is no simulated provider in production code. Tests inject a fake
upstream through
createBrokerApp({ upstreams }).
Passkeys
Each rule has a test in apps/auth-broker/tests/passkeys.test.ts.
- Credentials are discoverable and require user verification: presence alone is refused. Passkin stores a credential id and a public key — never a face, a fingerprint or a secret.
- A challenge is one-use: taken from the shared store when verified, so a replayed or late answer is expired, a failed try spends it too, and it lasts five minutes.
- The origin and the relying-party id must match (
PASSKIN_RP_ID); another origin or another relying party is refused. A configuration whose id is not the host or a parent of it stops the broker from starting. - A signature counter that goes backwards is refused (a cloned authenticator).
- The user handle the authenticator returns must be the passport the credential was made for.
- The JSON endpoints are as safe as the forms: this browser's own sign-in, this origin, the page's CSRF token in a header.
- A passkey never makes a product recognise someone it has not met: it signs in only to a product the person has joined, until Passkin ID.
- Bans, the disposable-email policy and consent apply to passkey sign-in exactly as to the others (
join.tsis shared). - Unknown credentials are answered so the passkey manager can drop them (WebAuthn Signal API).
Passwords and the second factor
Tests: packages/credentials/tests, apps/auth-broker/tests/password-mfa.test.ts.
- Passwords are optional per project and never the default. Rules follow NIST SP 800-63B-4: at least 15 characters alone (8 with a second factor), 256 accepted, any Unicode, no composition rules, a screen against common and breached passwords (k-anonymity range query: only five characters of a hash leave).
- Stored as argon2id over a peppered HMAC (the pepper derives from the master key), parameters inside the hash; a hash from another system (bcrypt, argon2, PBKDF2, scrypt, Firebase scrypt) is verified once and replaced by ours while the password is in hand.
- A wrong password and an address nobody has give the same answer and take the same time (a dummy hash is verified); guesses are limited per caller and per address before any hash is computed.
- Until Passkin ID, a password signs in only to a product the person has joined.
- The authenticator app (RFC 6238) is encrypted at rest, counts only after a first code is confirmed, and a step is accepted once (the update that records it only moves forward); recovery codes are shown once, stored as a keyed hash and spent in the statement that finds them. Five wrong codes end the sign-in.
- A second factor is asked after every first factor except a passkey, which already proved the device and the person. Tokens say how:
amr["password","otp","mfa"]. - Requiring more than one factor (STEP-UP.md): a project can demand a second step of everyone (
mfa_policy), and an application can ask for one at a sign-in (acr_values, enforced, not a preference). A person with none gets no session and no code, only the page that sends them to set one up; a one-factor Passkin session is never reused to get around it; the token saysacronly when Passkin knows (a second factor, or a passkey — every passkey requires user verification), never for single sign-on. The phone's native sign-in sheet cannot ask a second step, so it is refused (interaction_required) for anyone who has one or whose project requires one — it was a way around a second factor, and is closed. - A phone number (SMS.md) is the weakest second factor and is treated so: its token says
["…","sms","mfa"], nototp; it never recovers an account or signs in alone; the number is encrypted at rest (a keyed hash for limits, the last four digits and the country in the clear); a code is six digits, ten minutes, one use, five wrong guesses; one text per thirty seconds, 10 a day per person, 20 an hour per address, 5 an hour per number, and a whole-service hourly ceiling against SMS pumping; only a number the person confirmed is texted at sign-in; the legal policy is asked at the number's country every time.
Passkin ID and "Continue with Passkin"
Tests: apps/id/tests (sign-in, account center, and connect.test.ts end to end with both apps).
- Separate service: its own origin, its own
__Host-session cookie, its own CSP (default-src 'none', the passkey script only under its nonce,connect-src 'self'). A compromise of one origin does not hand over the other's cookie. - Sessions are random tokens stored as SHA-256; every change to the account needs the session's CSRF token and this origin; a change to how the person gets in (passkeys, password, authenticator app, recovery codes, export, delete) needs a proof from the last ten minutes, else the person proves again and returns. The return address is always a path on this site.
- Every change leaves an emailed notice and a line on the person's activity; changing a password ends every other session; disconnecting a product ends the sessions there and tells the developer in the product's activity log.
- The broker, not a link, says who is asking. The product's name, address and scopes reach Passkin ID in a pushed request (RFC 9126 style) on an authenticated back channel (HTTP Basic, a shared secret of at least 32 characters, compared in constant time); the browser carries only an opaque id, bound to the first browser that opens it. A request can return only to the broker's own callback, and may ask only for
openid email profile. - A code works once, for two minutes, for the broker, with the PKCE verifier it started with and the same return address; a failed try spends it. It is stored hashed.
- Nothing reaches a product before the person agrees; agreement is a link they can end. A product's own id for the person is its own (pairwise); only the broker ever sees their Passkin ID.
- Passkin never receives a face or a fingerprint: passkeys are unlocked on the person's device.
Webhooks and imports
Tests: apps/auth-broker/tests/webhooks.test.ts, migration.test.ts, packages/kit/tests/safe-fetch.test.ts.
- Events are signed with the endpoint's own secret (HMAC-SHA256 over
timestamp.body, a five-minute window against replay; the secret is encrypted at rest and shown once). A developer's endpoint is their server, so Passkin treats the address as hostile input: https only, no credentials, public addresses only — checked on the address actually connected to (so DNS rebinding fails), with no redirects followed and a ten-second limit. A failing receiver never delays or breaks the sign-in that caused the event. - Imports are records, not accounts. An imported person has no passport until they prove their mailbox; nothing an import says (a "verified" flag, a hash) can attach an identity to a passport or put a credential on one. The old password is checked, within cost bounds (a hash is chosen by the importer and checked at sign-in, so bcrypt cost, argon2 and scrypt memory and PBKDF2 rounds are capped), only to decide whether to send a mailbox code, and is deleted on arrival: it never becomes a Passkin password. Imports and exports are scoped to the key's project, rate limited, and written to the activity log. Exports never contain password hashes. CSV output neutralises spreadsheet formulas.
Who may join
Tests: apps/auth-broker/tests/access.test.ts.
- The address rules and the sign-up mode are applied in one place that browser sign-in and native sign-in both pass through, and before the passkey offer and the consent screen. People a project already has are never locked out by the sign-up mode.
- An invitation is permission for an address, proven by signing in: there is no token in the email to steal or forward. It expires, can be revoked, and is accepted once.
- Passkin's mail goes out on a project's behalf, so it cannot become a relay: an invitation's link can only point at the project's own registered sites, never an address the inviter picks, and sending is capped per project (100 an hour, 500 a day). The public waitlist form is rate limited per caller and answers the same whether or not an address is already listed.
Impersonation
Tests: apps/auth-broker/tests/impersonation.test.ts.
- An actor token is a random secret stored as a hash, valid for minutes, spent atomically on first use, and bound to an application when asked. Using it still needs the application's own PKCE verifier to redeem the code.
- It starts no Passkin session, so impersonation cannot leak into the person's other sign-ins; the session it creates is short, flagged, and its tokens carry
actso a backend can tell and limit. - It is refused for a person who has not signed in, is banned, or has disconnected the product — the person's choice stands. The dashboard can only name the person signed in there as the actor. Every use is in the activity log and a webhook.
Enterprise single sign-on
Tests: apps/auth-broker/tests/sso.test.ts.
- Domains are proved, not claimed: a DNS TXT record with a random per-organization token; one verified owner per domain per project; public mailbox providers refused. Only a verified domain routes sign-ins to an organization's identity provider, and only an address on it is believed from that provider — a validly signed assertion for another address is refused, whoever signed it.
- A custom domain is proved, and then it is that project's sign-in and nothing else: a TXT record only the owner can set (and a CNAME to the service) before a single request is answered as the project; on it the management, backend, operator, SCIM and SAML surfaces do not exist, and another project's endpoints are 404; a host that is not an active custom domain is never answered as a project, whatever DNS says; the host it hands a provider's redirect on to is the one stored with the sign-in, never one taken from the request; passkeys are bound to the domain they were made on (CUSTOM-DOMAIN.md).
- SAML: the response must verify against the certificate on file, be addressed to this connection's audience and recipient, come from the configured issuer, have a Success status, be inside its validity window, and answer an AuthnRequest this service sent — which is spent on use, so IdP-initiated responses and replays fail. The library does not check the issuer or recipient of a login; Passkin does, and has tests that sign real responses with the right key and still refuse them. Metadata is parsed with no DTDs and a size cap; certificates and URLs are validated; fetched addresses go through the guarded fetch.
- OIDC: the ID token is verified against the issuer's published keys (refetched once on rotation), for this client and nonce; the discovery document must name the issuer asked for.
- The sign-in binds to the browser that started it: the cross-site POST back from a SAML IdP carries no cookies, so it is validated and parked under a one-time token, and the redirect to
/sso/completeis where the sign-in's own cookie is checked. - No Passkin session is started by an SSO sign-in, and there is no consent screen: an employer's identity provider cannot become a way into a person's other products through Passkin, and the organization's admin made the decision.
- Require SSO closes every other method for the organization's verified domains, including silent re-authentication from an older session.
- The Admin Portal link opens once, becomes a two-hour cookie session scoped to one organization, has no script, needs a CSRF token and this origin for every change, and writes to the project's activity log.
Directory sync
Tests: apps/auth-broker/tests/scim.test.ts.
- A SCIM bearer token is a random secret stored as a hash, shown once, scoped to one directory (the id is in the path and must match), rate limited, and revocable by rotating, pausing or deleting.
- A directory can provision only addresses on a domain its own organization has verified; deactivating or deleting someone removes their membership and ends the sessions acting in that organization (refresh tokens stop, back-channel logout is sent). With a directory, SSO admits only people it has pushed and not deactivated.
- SCIM never creates a passport or a credential: a provisioned person is a project record that a sign-in later claims, like an import.
The audit log
Tests: apps/auth-broker/tests/audit.test.ts.
- Every project's events are numbered and hash-chained under a row lock (so concurrent writes make one chain);
verifyfinds an event edited in place, removed from the middle or the end, or with a changed link. It cannot stop a database administrator rewriting the whole chain from a point on — streamingaudit.logto a system they do not control is the answer, and is documented. - Exports neutralise spreadsheet formulas; the per-organization view and the Admin Portal show an organization only its own events.
The Shield
Tests: apps/auth-broker/tests/shield.test.ts, packages/trust-shield/tests/pow-risk.test.ts.
- It sits in front of email-code sending, password sign-in and single-sign-on lookup, and adds work or refuses — it never replaces the fixed limits (per address, per recipient, five guesses per code), which still apply behind it.
- A challenge is verified on the server, bound to one sign-in, spent when presented (right or wrong) and expiring in 15 minutes; a malformed id or counter fails. The page's script only finds the number.
- It uses counts, not people: nothing about the person, no fingerprint, no third party. Addresses in counters and in the log are keyed hashes; the log has no email or IP and is pruned after 30 days.
- Country rules are believed only behind a trusted proxy, and an unknown country is let through: the Shield does not refuse what it cannot see. The new-account ceiling never touches people the project already has.
offis the developer's choice and changes only the Shield: ban state, sign-up policy, allow/block lists and every rate limit still apply.
Third-party access (OAuth and MCP)
Tests: apps/auth-broker/tests/oauth.test.ts, apps/auth-broker/tests/device.test.ts, packages/nextjs/tests/resource.test.ts.
- Off until the developer turns it on. A client id means nothing, no registration endpoint answers, and the token endpoint is not opened to other origins, before then.
- Consent first, and only if it was seen. Nothing is issued to a third party before its consent page was put in front of the person in that sign-in; an Allow posted from another page of the flow (a passkey offer) is refused. The page names the client and where the person goes next, says how far the client is vouched for (set up by the developer / identified by a document / registered itself, not verified), escapes everything the client wrote about itself and never loads its logo.
- PKCE (S256) for every client, no secret from a public client, exact redirect URLs (loopback on any port) with errors as pages before the redirect is known to be the client's, scopes the resource defines and the client may have (unknown ones refused), one resource per token.
- A token is for its resource. The audience is the resource; the project's claim templates are never applied to a third party's tokens (they could carry private metadata); a token for the project itself is not accepted by a resource and the reverse.
- Dynamic registration is for untrusted strangers: authorization-code clients only (never
client_credentials), redirect URLs of allowed kinds, limited per address, per project and in total, removed when unused for 30 days, neverfirst_party. Client metadata documents are fetched through the guarded fetch (public hosts, https, no redirects, 1 MB), must name themselves, may not hold a secret or keys, and are looked up at most a few times a minute per address. - Machines are never people, and people's clients are never machines; a machine names the resources and scopes it may have, its secret is stored as a hash, and rotating it ends the old one.
- Taking access back works: a revoked grant, a switched-off or deleted client, a removed resource or a ban ends the sessions and refresh tokens at once; refresh checks the grant, refuses to widen scope and belongs to its client (not to the project's own applications).
- A replayed code ends the session it started; a spent refresh token coming back ends the session.
- A token can be useless without its key (DPoP, RFC 9449): a proof must be a
dpop+jwtsigned by a public key it carries, for this method and address, at most 60 s old, with ajtiused once (five minutes, by key); a bound refresh token is refused before it is rotated unless the proof is from the same key; a bound token is no bearer token — userinfo and the end-user API refuse it and the SDK's resource server refuses it without a proof; a client can be required to use it. - Delegation is visible and short: a token issued to an app or agent for a person carries
act(the client, its name and whether it was vouched for) besidesub(the person); a client may have its own access token lifetime of 60 s – 1 h (never more than an hour for any third party), kept at every refresh; a machine token carries noact. - A device code is never a silent yes. The device flow always shows the consent page — even for a client the person allowed before or one marked
first_party— with the user code and a warning against codes sent by someone else; the code is eight letters typed at most ten times per address per ten minutes, wrong/spent/expired/other-project read the same, the form takes only posts from our own origin, the device code is stored as a hash, lives ten minutes, is redeemed once and only by the client it was issued to (authenticating again if it is confidential), and polling too fast is slowed down.
The token vault
Tests: apps/auth-broker/tests/vault.test.ts.
- A provider's token leaves only to the project's secret key, one at a time, and every issue is in the audit log. No list, export, sync, webhook, audit entry or end-user endpoint carries one, so a script that steals a person's session can disconnect an account and cannot read a token. Stored encrypted with the master key.
- The browser that completes a connection must be the person it was started for (the Passkin session in it must be theirs): otherwise a link made for oneself and sent to a victim would attach the victim's account to the sender's user. The state is one use, ten minutes, and its use is the only way back to the application's redirect URL, which must be one the application registered.
- What can be requested is the developer's list, checked before the provider is contacted; a built-in provider is used only with the developer's own OAuth app, never Passkin's shared one; a provider of the project's own is called only at public https addresses (token, userinfo, revoke).
- A broken connection says so (
reauthorization_required) instead of returning a stale token; a provider outage never forgets one; refreshes are single-flight per account (rotating refresh tokens survive concurrent requests). - Disconnecting revokes at the provider (best effort) and deletes the tokens regardless; deleting the user or the provider's definition deletes the connections.
Blocking hooks
Tests: apps/auth-broker/tests/hooks.test.ts, packages/server/tests/hooks.test.ts.
- The call is Passkin's and fresh: HMAC-SHA-256 over
timestamp.bodywith the hook's own secret (hsk_…, shown once, stored encrypted, rotatable), five minutes' tolerance; the receiver in the SDK checks it in constant time before anything else. - Only to addresses a person may be sent to: https, no credentials in the URL, a public host checked when saved and again at connect time (DNS rebinding included), no redirects, 64 KB answers, a timeout of 200 ms – 5 s.
- An answer is checked whole or not used: a claim with a reserved or malformed name (
sub,iss,aud,sid,scope,org_*,act,email…), too many or too large, unknown token kinds, metadata with bad keys — all are failures, never half applied; claims are literal and never rendered (a string that looks like a template stays text); a message shown to a person is cleaned of control and direction characters and escaped. - A failing server cannot take sign-in down with it: the developer chooses deny (default) or allow on failure, and five failures in a minute skip the hook for thirty seconds. A hook can only tighten: bans, allow/block lists, sign-up mode, SSO enforcement and the Shield run before it and an
allowcannot override them. - A third party's tokens carry no hook claims, as they carry no project claim templates.
Signals from Google, and signals to you
Tests: apps/auth-broker/tests/signals.test.ts.
- A signal is believed only if Google signed it:
RS256by a key in Google's published key set (the configuration is read from the issuer, never from the token), issued by Google, addressed to a Google client this service uses, fresh, with ajtinot seen before — anything else is refused with the RFC 8935 error and acts on nothing; a delivery is acted on once. - A takeover signal ends everything: the person's Passkin ID sessions and every site session in every project, with refresh tokens and back-channel logout notices; it is on their activity and in each project's audit log. A signal about nobody known, or one that is no reason to sign anyone out, changes nothing.
- The service account that registers the stream is read from the environment when an operator asks, never stored, logged or returned; registering is an operator's act (an API key never reaches it).
- Signals Passkin sends (signal streams, SIGNALS.md): signed with the project's own key (the receiver verifies against its
jwks.json), addressed to the receiver (aud), with the person only as the issuer'ssub— no email, no name; the receiver's address must be public https (no private networks, no redirects), its token is stored encrypted and never returned; only four events go down a stream; an event that names nobody sends nothing.
The legal policy and the Verified layer
Tests: packages/db/tests/legal.test.ts, apps/auth-broker/tests/legal.test.ts, apps/id/tests/verified.test.ts.
- A face is never collected by Passkin. Passkeys unlock with the device's own biometric; the optional Verified check is run by a partner, and only its outcome is stored — no image, video, template or document detail (a failure is a short code, never the partner's words).
- Closed by default. The feature is blocked everywhere until an operator records a clearance for a place; clearing a country does not clear the regions inside it that have their own statute (IL, TX, WA); a place that cannot be established is treated as closed; loosening any default needs the reference to counsel's written sign-off; a face check can never be merely "allowed".
- Nothing starts without all of it: the place allows it, counsel's approval of the exact text is on record (a changed word voids it), the person ticked two boxes nobody ticked for them with a proof from the last ten minutes, and a partner is configured. The person is told only "not available".
- The operator's decisions are a record, not a setting: who, what, where, why and on whose sign-off, never deleted. Only operators reach it; an API key never does.
- Withdrawing is always possible, needs no recent proof, works when the feature has since been closed, ends the outcome at once and asks the partner to delete (retried until it has); a deleted account asks first. A partner's result is believed only with its signature, once, and an unknown assurance level is the lowest.
The end-user API
Tests: apps/auth-broker/tests/me.test.ts, packages/nextjs/tests/sdk.test.ts.
- It answers to the access token only, and checks a live session and the person's ban state on every call, so revocation is immediate. CORS answers the project's own sites only.
- Credentials are not here. Passwords, passkeys, authenticator apps and recovery codes live at the Passkin ID on its own origin; a product — or a script injected into one — cannot read or change them. The profile shows only facts (counts, on/off).
- A person acts on organizations only as far as their database-evaluated permissions go; never a role stronger than their own; an organization they are not in reads as not found; the last admin cannot leave, be demoted or delete their account away.
- The Next.js proxy keeps the access token in the encrypted cookie, reaches only
/v1/me…, and refuses changes from another origin.
The passport session
- The cookie holds 32 random bytes; the database holds their hash.
__Host-prefixed,Secure,HttpOnly,SameSite=Laxin production. - A fresh sign-in replaces the session in that browser. (Previously the passport id lived in the cookie and overrode a new sign-in, so the next person on a shared computer was signed in as the last.)
- A sign-in transaction is bound to the browser that started it (a random browser id cookie), so a half-finished sign-in link cannot be completed by a victim and delivered to someone else.
The hosted pages
- No JavaScript, except one small script on the pages that offer passkeys, allowed by that response's own nonce with
connect-src 'self'(it can run nothing else and reach nothing else);default-src 'none'. Without it every page still works. Styles under a per-response CSP nonce;frame-ancestors 'none'andX-Frame-Options: DENY(no clickjacked consent);Cache-Control: no-store;Referrer-Policy: same-origin. - Every form carries a per-transaction CSRF token, and posts are refused when
the browser reports another origin (
Origin,Sec-Fetch-Site). - Everything shown is escaped (
http/html.ts); colours and logos from a site's branding are validated before use. - Every page shows the domain that will receive the person, not only the name the site chose — or, for an app, that it is an app and its bundle id or scheme.
- CSP
form-actionalso governs where a form's redirect may go, so it names the one place this sign-in returns to: the site's origin, or the app's scheme.
Projects are separate
- A Passkin session in the browser is reused only for someone who has signed
in to that project before. Someone known from another developer's
project gets the ordinary sign-in page — no «Continue as», nothing that
says Passkin knows them — and
prompt=noneanswerslogin_required. - Passkin shows no consent page of its own; a site that wants one asks with
prompt=consent. - Deleting a person from the last project that had them deletes Passkin's record of them (email, sign-in methods, sessions), unless they are a developer with a workspace.
Tokens
- Each project signs with its own RS256 key, encrypted at rest under the master key; JWKS serves only public members.
- Refresh tokens rotate on every use. A rotated token presented again (after a ten-second grace for racing tabs) ends the whole session.
- Refresh stops at the site's lifetime or idle limit, when the site ends the
session, or when the site bans them.
/userinfochecks the session in the database, so a revocation is visible there at once.
Cross-origin
- Discovery and JWKS are public (
Access-Control-Allow-Origin: *). - Token, userinfo and revocation answer a browser only from the origins its websites and single-page apps list, and never with credentials. No endpoint reads the passport cookie cross-origin.
Abuse
- Rate limits (shared across instances, in Postgres or Redis): authorize per IP, token per IP, email codes per IP and per address, code guesses per IP and five per code.
- The client IP is read from the right of
X-Forwarded-For, pastTRUSTED_PROXY_HOPS; IPv6 is grouped by /64.
Operations
- Production refuses to start with a missing or public master key, a non-https
PASSKIN_URL, an embedded database, or the development sign-in. - Logs carry method, path and status, never the query string (codes, states).
- Unhandled errors return an id; the message stays in the log.
- Site actions through the Backend API, bans, deletions and detected refresh-token reuse are written to the audit log.