Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
0b930a4
Vault token preflight: close the refusal gaps, bound the probes, repo…
wshallwshall Dec 2, 2026
8c8286f
Vault token preflight docs: the wider refusing class, the bound, the …
wshallwshall Dec 2, 2026
3c8a128
Vault token preflight: review round one repairs
wshallwshall Dec 2, 2026
8b22a4d
Vault token preflight docs: review round one repairs
wshallwshall Dec 2, 2026
f326a77
Vault token preflight: review round two repairs
wshallwshall Dec 2, 2026
14792d3
Vault token preflight docs: review round two repairs
wshallwshall Dec 2, 2026
1a8cb03
Vault token preflight: repair round three (B1, B2, B4, B5, B6, B8)
wshallwshall Dec 2, 2026
d061c12
Vault token preflight docs: repair round three
wshallwshall Dec 2, 2026
c3252f6
Vault token preflight: repair round three, review repairs
wshallwshall Dec 2, 2026
f5ee743
Vault token preflight docs: repair round three, review repairs
wshallwshall Dec 2, 2026
81de0ce
Vault token preflight: repair round three, second review repairs
wshallwshall Dec 2, 2026
fd85112
Vault token preflight docs: repair round three, second review repairs
wshallwshall Dec 2, 2026
b598d9a
PHI coverage: bind VaultPrivilegeHopView.detail to no store column (B…
wshallwshall Dec 2, 2026
da8b5e1
ADR 0216 Amendment B: the cross-hop refusal and the probe bound (BACK…
wshallwshall Dec 2, 2026
965f0e6
PHI coverage: cite the vault ledger for the Vault posture entry (BACK…
wshallwshall Dec 2, 2026
689a659
ADR 0216 Amendment B: state the preconditions and the bound's real lo…
wshallwshall Dec 2, 2026
bee1ebe
ADR 0216 Amendment B: one-way check, tighten versus loosen, index row…
wshallwshall Dec 2, 2026
e6530fa
Merge origin/main into b20055-4851b
wshallwshall Dec 2, 2026
548a087
A Vault probe ended by the bound keeps its token reference
wshallwshall Dec 2, 2026
3137278
Docs name the 150 s Vault probe bound as the case that only warns
wshallwshall Dec 2, 2026
d1b0030
Review round 1: docs and comments match the kept token reference
wshallwshall Dec 2, 2026
b656bdb
Vault preflight waits for each probe again: remove the 150 s probe bound
wshallwshall Dec 2, 2026
71d8d9f
Vault preflight: a clock-jump control for the no-bound test, and docs…
wshallwshall Dec 2, 2026
89fb66a
Vault preflight tests: clock jump on a private loop, cancelled probe …
wshallwshall Dec 2, 2026
0075eb7
Vault preflight: a probe thread always delivers a reading, and two cl…
wshallwshall Dec 2, 2026
88e3596
Vault preflight: the probe thread only probes and delivers; the loop …
wshallwshall Dec 2, 2026
33ea671
Vault preflight: fail closed on a raising classifier, log a late rais…
wshallwshall Dec 2, 2026
4b85490
Vault preflight frees a failed probe's frames and keeps its text out …
wshallwshall Dec 2, 2026
9f0dbdf
Vault preflight frees a chained probe raise's frames too
wshallwshall Dec 2, 2026
f2b229d
Vault preflight clears late raises and logs a raise handed over just …
wshallwshall Dec 2, 2026
24beee0
Vault preflight keeps the second sentence the hold left in place
wshallwshall Dec 2, 2026
2807198
Vault preflight drops the run frame comment's second sentence again
wshallwshall Dec 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- The Vault token preflight now also refuses an enforcing start on a token holding a grant on an audit device, `sys/seal`, raw storage, or the root-token generation or rekey endpoints, or one that can create, rewrite or delete a Transit key the engine uses, or trim, import over, BYOK-export, restore or export one version of it; and on a connector-secret token, on the same Vault address as the store, that can do so to the store key, or that holds any grant but read or list on a path, other than a key's own path, that the store calls with one of its keys, such as `update` on the decrypt path, when the store hop holds another token. Such a grant still only warns in at least these cases: the store hop holds this same token, or whether it does is unknown because a token went unread. The probes run side by side, and the start still waits for each one to finish. A token whose lookup-self is denied says its own policies went unasked. `GET /security/posture` reports what the preflight read of each token, under `vault_privilege`. (BACKLOG #4851)
6 changes: 4 additions & 2 deletions docs/DEPLOY-SERVER-DB.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,10 @@ It also probes each Vault token the engine uses and the AD bind account, when th
configured. A Vault token that holds more than the engine needs, or an AD bind account in an
administrative group, makes it exit 3. A Vault or AD probe that cannot run makes it exit 4. An AD
finding is reported only and never stops a start. `serve` probes each Vault token too, at every
start: under `enforcement = enforce` a token holding the root policy or a grant on an administrative
path refuses the start, and every other Vault finding only warns
start: under `enforcement = enforce` a token holding a grant in the refusing class
([SECURITY.md](SECURITY.md#each-backend-hops-least-privilege-the-engine-probes-the-store-vault-and-ldap)
lists it) refuses the start, and at least the warning-class grants and a probe stopped by a network
failure, a timeout or a 403 only warn
([ADR 0216](adr/0216-the-gravest-vault-token-grants-refuse-start-under-enforce-with-an-audited-opt-out.md)).
The `serve:` line says which applies.

Expand Down
12 changes: 7 additions & 5 deletions docs/SECURITY-LOOSENING.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ Earlier versions of this guide called this an open owner question. The 2026-10-2
| | `max_session_hours` | `12` (a value above `12` is named. A value below `1` or above `8760` hours is refused at load) |
| Alert transport | `allow_unverified_alert_smtp_tls` | `false` |
| Store principal | `allow_over_granted_store_principal` | `false` (ADR 0199: accept an over-granted store login under `enforce`, audited) |
| Vault token | `allow_over_granted_vault_token` | `false` (ADR 0216: accept a Vault token holding the root policy or an administrative grant under `enforce`, audited) |
| Vault token | `allow_over_granted_vault_token` | `false` (ADR 0216: accept a Vault token holding a refusing-class grant under `enforce`, audited) |
| Interpreter | `allow_remote_debugging` | `false` (vault BACKLOG #2700: lifts the start refusal under `enforce` while the interpreter's remote debugging is on; reported) |
| Backend credentials | `require_nonstatic_credentials` | `false` (*not* a loosening — it TIGHTENS, refusing backend hops on a static credential or none. Opt-in by owner decision, because several hops have no compliant kind in the product) |
| | `static_credential_accepted` | `{}` (each opt-out is a loosening while `require_nonstatic_credentials` is on, and is reported as `static_credential_accepted`; with the refusal off an opt-out does nothing and is not reported) |
Expand Down Expand Up @@ -2292,10 +2292,12 @@ count is above `0` (vault BACKLOG #2613).
> **A switch.** `[security].allow_over_granted_vault_token`, default `false`.
> [ADR 0216](../docs/adr/0216-the-gravest-vault-token-grants-refuse-start-under-enforce-with-an-audited-opt-out.md), ASVS 13.2.2.
- **What you lose:** the refusal under `enforce` that a Vault token the engine uses earns when the
startup probe finds it holding the root policy, any grant on an administrative path (a policy
write, including one of its own policies, an identity group, a mount, an auth method or
`auth/token/create`), or a Transit key's `config`, `rotate`, `export` or `backup`. Any grant there
but `deny` counts, a read included. A write there lets the token widen its own reach, or take the
startup probe finds it holding a grant in the refusing class, which
[SECURITY.md](SECURITY.md#each-backend-hops-least-privilege-the-engine-probes-the-store-vault-and-ldap) lists: at least the root policy, any
grant on an administrative path, a Transit key's control, export, backup or restore path, a
grant that creates, rewrites or deletes a Transit key, or any grant but `read` or `list` on a
path that uses another hop's key. On an administrative, control, export,
backup or restore path any grant but `deny` counts, a read included. A write there lets the token widen its own reach, or take the
store key out of Vault, and any code path that reaches the token inherits that.
- **When acceptable:** on a lab box run with a Vault dev-server root token. Not as a steady state.
- **It is never silent:** a WARNING line starting `AUDIT:` at every start it lets through,
Expand Down
62 changes: 53 additions & 9 deletions docs/SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -1147,9 +1147,9 @@ backend hops that present a static credential or none (the *Delegated identity*
| Store, SQL Server | the `[store]` login: the service account under `auth = "integrated"`, else `[store].username` | `db_datareader` + `db_datawriter`, plus `db_ddladmin` only under `schema_management = "auto"`; under `key_provider = "host"`, the login that runs `provision-admin` needs more, at least what [DEPLOY-SERVER-DB.md §1.1](DEPLOY-SERVER-DB.md#11-integrated-gmsa-authentication--sql-server-worked-example-99) names; `UPDATE` and `DELETE` denied on `audit_log`; no server role | **Yes**, at every start and by `check-privileges`; an over-grant refuses start under `enforce` |
| Store, PostgreSQL | `[store].username` | a `LOGIN` role with no attributes: `CONNECT`, `USAGE` on the store schema and row grants, only `INSERT` and `SELECT` on `audit_log`; it owns that schema only under `auto` | **Yes**, at every start and by `check-privileges`; an over-grant refuses start under `enforce` |
| Store, SQLite | the service account | only that account may read and write the `.db` file and its `-wal`/`-shm` sidecars | No: reported **not applicable**; the filesystem ACL governs it |
| Vault, store key provider | the token in `MEFOR_STORE_VAULT_TOKEN` | `read` on `transit/keys/<KEK>` and `update` on `transit/decrypt/<KEK>`; plus `read` on `auth/token/lookup-self` and `update` on `sys/capabilities-self` for the privilege probe `serve` and `check-privileges` run | **Yes**, at every start and by `check-privileges` (hop `vault.store`); the root policy or an administrative grant refuses start under `enforce`, anything else warns |
| Vault, Transit cipher | the token in `MEFOR_STORE_VAULT_TOKEN` | `read` on the data and audit keys under `transit/keys/`; `update` on `transit/encrypt/` and `transit/decrypt/` for the data key and `transit/hmac/` and `transit/verify/` for the audit key (the verify grant is for the row seals of ADR 0217); plus `read` on `auth/token/lookup-self` and `update` on `sys/capabilities-self` for the privilege probe `serve` and `check-privileges` run | **Yes**, at every start and by `check-privileges` (hop `vault.store`); the root policy or an administrative grant refuses start under `enforce`, anything else warns |
| Vault, connector secrets | the token in `MEFOR_SECRETS_VAULT_TOKEN` | `read` on the KV v2 data path of each `*_secret` reference, and nothing else; plus `read` on `auth/token/lookup-self` and `update` on `sys/capabilities-self` for the privilege probe `serve` and `check-privileges` run | **Yes**, at every start and by `check-privileges` (hop `vault.secrets`); the root policy or an administrative grant refuses start under `enforce`, anything else warns |
| Vault, store key provider | the token in `MEFOR_STORE_VAULT_TOKEN` | `read` on `transit/keys/<KEK>` and `update` on `transit/decrypt/<KEK>`; plus `read` on `auth/token/lookup-self` and `update` on `sys/capabilities-self` for the privilege probe `serve` and `check-privileges` run | **Yes**, at every start and by `check-privileges` (hop `vault.store`); a refusing-class grant (listed below) refuses start under `enforce`, a warning-class one warns |
| Vault, Transit cipher | the token in `MEFOR_STORE_VAULT_TOKEN` | `read` on the data and audit keys under `transit/keys/`; `update` on `transit/encrypt/` and `transit/decrypt/` for the data key and `transit/hmac/` and `transit/verify/` for the audit key (the verify grant is for the row seals of ADR 0217); plus `read` on `auth/token/lookup-self` and `update` on `sys/capabilities-self` for the privilege probe `serve` and `check-privileges` run | **Yes**, at every start and by `check-privileges` (hop `vault.store`); a refusing-class grant (listed below) refuses start under `enforce`, a warning-class one warns |
| Vault, connector secrets | the token in `MEFOR_SECRETS_VAULT_TOKEN` | `read` on the KV v2 data path of each `*_secret` reference, and nothing else; plus `read` on `auth/token/lookup-self` and `update` on `sys/capabilities-self` for the privilege probe `serve` and `check-privileges` run | **Yes**, at every start and by `check-privileges` (hop `vault.secrets`); a refusing-class grant (listed below) refuses start under `enforce`, a warning-class one warns |
| LDAP (AD) | `[auth].ad_bind_dn` | read and search on the user and group search bases; no write and no administrative group | **Partly**, by `check-privileges`: identity and administrative groups; delegated ACLs not read; never gates a start |
| SMTP (alerts) | `[alerts].email_username`, or no AUTH account | send as `[alerts].email_from` only | No: printed, not probed |
| IdP (OIDC) | `[auth].oidc_client_id` at `[auth].oidc_issuer` | a confidential client allowed the configured `oidc_scopes` only; no directory or admin API permission | No: printed, not probed |
Expand All @@ -1174,10 +1174,35 @@ The administrative paths it is asked about are at least these:
- two policy writes under a placeholder name, `sys/policies/acl/` and the older `sys/policy/`;
- the same two writes for each policy the token carries, which catches a policy that may rewrite
itself;
- two identity-group paths that can attach a policy, `identity/group` and `identity/group/name/`;
- a secrets mount (`sys/mounts/`), an auth method (`sys/auth/`) and `auth/token/create`;
- two identity-group paths that can attach a policy, `identity/group` and `identity/group/name/`,
and three identity-entity paths that can too, `identity/entity`, `identity/entity/name/` and
`identity/entity-alias`;
- a secrets mount (`sys/mounts/`), an auth method (`sys/auth/`), `auth/token/create`, a token role
(`auth/token/roles/`) and a plugin registration (`sys/plugins/catalog/`);
- an audit device (`sys/audit/`), `sys/seal`, raw storage (`sys/raw/`), and the root-token
generation and rekey endpoints (`sys/generate-root/attempt`, `sys/rekey/init`). Vault serves
those two without a token (`disable_unauthed_rekey_endpoints` closes only the rekey one to
unauthenticated callers), so a token clean there does not mean nobody can start one;
- for each Transit key the engine uses, its `config` (which can make the key exportable), `rotate`,
`export` and `backup` paths.
`trim`, `import`, `import_version`, `export` (every version, and one version), BYOK export,
`backup`, and `restore` with and without the key's name;
- when the connector-secret token talks to the same Vault address as the store (read as written,
so two spellings of one server read as two), every path the store hop calls, and its keys' paths
above. The store key's own path is judged by the Transit-key rule in the next paragraph. On any
other path the store hop calls, which uses the key (such as `update` on
`transit/decrypt/<KEK>`), every grant but `read` and `list` is in the refusing class, and those
two warn. A token shared by both hops is judged as the shared-token rule above says instead.
When either hop's reading names no token, whether the two share one is unknown. At least these
leave it unnamed: an unset token, a client that could not be built, and a probe that raised or
could not start its thread; most other probe failures keep it. Then a refusing-class grant on a
path the store hop calls, other than the key's own, only warns, and the hop says why and is
marked partial: shared, it would only warn. Under `enforce` the start is still refused when the
store hop's own failure is not one the excused list below names (a network failure, a timeout
or a 403).

On a Transit key's own path a `create`, `update`, `patch`, `delete`, `sudo` or `root` grant creates,
rewrites or deletes the key, and is in the refusing class. Any other grant there that the engine
does not need, such as `list`, only warns.

Grants on other paths the engine does not call are not read, so a clean token still needs its policy
read by hand.
Expand Down Expand Up @@ -1253,9 +1278,13 @@ uses with the probe `check-privileges` runs. It builds its client with the provi
constructor and reads the token from the same variable or secrets-directory file the provider reads,
at that moment. The over-grants above fall in two classes:

- **The refusing class:** the `root` policy, and any grant on an administrative path the probe asks
about, which includes a write of the token's own policies and a Transit key's `config`, `rotate`,
`export` and `backup`. Under the shipped `enforcement = enforce` such a token **refuses to start**.
- **The refusing class:** the `root` policy, any grant on an administrative path the probe asks
about (the list above, which includes a write of the token's own policies and each Transit key's
control, export, backup and restore paths; on a path the store hop calls, only the grants that
list names), a grant that creates, rewrites or deletes a Transit key, and any grant but `read` or
`list` on a path that uses the store hop's key. That last grant only warns when either hop's
reading names no token, as the list above says. Under the shipped
`enforcement = enforce` such a token **refuses to start**.
The audited opt-out is `[security].allow_over_granted_vault_token = true`: it logs an `AUDIT:`
line, marks the `vault_privilege_preflight` audit row `over_grant_accepted`, and is named on
`GET /security/posture`.
Expand All @@ -1271,6 +1300,21 @@ token variable, another Vault error status, and an answer that names no capabili
Under `enforce` such a failure **refuses to start**, the audit row names it under `unexcused`, and
the opt-out does not lift it.

The probes run side by side, and `serve` waits for each one to finish; the preflight never turns a
probe into a timeout by itself. A limit on the whole wait was considered and declined (ADR 0216,
Amendment B). Only the Vault client's own per-request timeouts end a request, as they do for the
store open, and they do not end everything: at least a reply that trickles in, or a hung read of
the token file holds the start, before any listener binds, for as long as it lasts. A name lookup
the resolver gives up on is a network failure, which only warns. If a start is cancelled while a probe runs, the start does not wait for it, but
the probe's thread runs on and may go on calling Vault with the token until the probe ends. A
token whose `auth/token/lookup-self` is denied (a 403, so only a warning) cannot name its own
policies, so whether it can rewrite them is not asked; its hop says so. What the preflight read of
each token is on `GET /security/posture`, under `vault_privilege`; a channel-scoped reader is shown each hop's state and counts, not its text. There, as in the audit
row, the refusing reasons and the detail are cut to a length cap, and `refusing_count` keeps the
true count, but nothing marks a reason or detail that was cut. A probe that cannot start its
thread reads as not observed: it warns under `warn` and, being no network failure, timeout or 403,
refuses under `enforce`.

Under `enforcement = warn` nothing refuses. The probe's limits stay: it asks about exact paths only,
so a wildcard grant such as `secret/data/*` would read clean, and a token made with `-no-default-policy` reads
as not observed at every start unless its policy grants the two paths the probe reads. Neither
Expand Down
Loading
Loading