You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 561fd68
Browse filesBrowse the repository at this point in the historyBrowse files
docs: security pages and extending recipes match today's code
The recipes name Records, out.emit, SecretBytes::text, the channels'
notified slice and Registered list, Google's endpoints and the provider
credentials rule, and the migration example adds a column that doesn't
exist yet. The security pages give the operator name's sources, every
link the token digest key derives, where IPs live, the reasons every
admin change needs, and the rate categories by link.
Copy file name to clipboardExpand all lines: docs/dev/security/boundaries.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,7 +130,7 @@ frontend or into the image.
130
130
| --- | --- | --- | --- |
131
131
| Key-encryption keys, `AUTH_KEY_ENCRYPTION_KEY` and `_ACCEPTED`| Generated by piqueld | Seals the signing keys stored in PostgreSQL with AES-256-GCM, so a database dump holds no usable private key | Auth's containers |
132
132
| Signing keys | Generated by auth, stored sealed in `signing_keys`| Sign ID, access and logout tokens ([signing keys](../operations/signing-keys.md)) | Auth, with the key-encryption key |
133
-
| Token digest keys, `AUTH_TOKEN_DIGEST_KEY` and `_ACCEPTED`| Generated by piqueld | Refresh tokens, codes and pending logins are stored as HMAC digests under them; rotated refresh tokens' successors and email verification, recovery and unsubscribe link tokens derive from them (`config/keys.rs`) | Auth's containers |
133
+
| Token digest keys, `AUTH_TOKEN_DIGEST_KEY` and `_ACCEPTED`| Generated by piqueld | Refresh tokens, codes and pending logins are stored as HMAC digests under them; rotated refresh tokens' successors and the email verification, recovery, invitation, unsubscribe and sign-out link tokens derive from them (`config/keys.rs`) | Auth's containers |
134
134
| Audit key, `AUTH_AUDIT_KEY_PROVIDER`| Stored by hand for staging and production, generated for previews | Signs audit checkpoints; its verifier keys are compiled in from `audit-key.pub` ([the audit key](audit-history.md#the-audit-key)) | Auth's containers |
135
135
| Client secrets | Generated by auth, or supplied by `client apply`| Authenticate confidential clients; auth stores only their SHA-256 digest (`ClientSecret` in `crates/crypto/src/lib.rs`) | The client's owner, once |
136
136
| GitHub and Google client secrets | Stored by hand ([sign-in providers](../operations/sign-in-providers.md)) | Auth's OAuth apps at the providers | Auth's containers |
@@ -151,9 +151,11 @@ database, so they work while auth is down
151
151
connects as the runtime role and runs the same `AdminService` and
152
152
`AccountService` operations as the dashboard, with the same safety rules, but
153
153
needs no passkey: whoever can run it is trusted. It records its changes as
154
-
`Actor::Cli`, with `$USER` and the host name (`Operator::terminal` in
155
-
`apps/auth-service/src/admin/operator.rs`). The `keys` commands also need the
156
-
key-encryption key, and `user recover` the token digest key.
154
+
`Actor::Cli`, with its operator's name, from `--operator`, else `AUTH_OPERATOR`,
155
+
else `$USER`, and the host name (`Operator::terminal` in
156
+
`apps/auth-service/src/admin/operator.rs`). The `keys` commands that change
157
+
signing keys also need the key-encryption key, and `user recover`,
158
+
`invite create` and `keys digest-usage` the token digest key.
157
159
158
160
Database access is therefore the root of trust. Nothing SourceOrigin runs on may
159
161
require auth to sign in ([recovering auth](../architecture/surfaces.md#recovering-auth)),
Copy file name to clipboardExpand all lines: docs/dev/security/properties.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,7 +102,7 @@ detail.
102
102
The one exception is `/unsubscribe`, which mail clients post to from anywhere
103
103
(RFC 8058): its link's token is its credential, and it only turns one
104
104
account's announcements' email off.
105
-
- Request throttling and expiring-state cleanup use PostgreSQL. Throttling uses separate login, token, userinfo, account and page budgets per client IP, and covers every API route except health probes and discovery.
105
+
- Request throttling and expiring-state cleanup use PostgreSQL. Throttling uses a separate budget per client IP for each rate category ([rate limit](../architecture/request-lifecycle.md#rate-limit)), and covers every route except health probes and discovery.
106
106
By default it uses the direct peer IP; only peers in `AUTH_TRUSTED_PROXIES`
107
107
may supply a single overwritten `X-Forwarded-For`. Configure this when terminating TLS
108
108
at a reverse proxy so users do not share the proxy’s budget. Untrusted headers
0 commit comments