Expand description
Control-plane auth assembly: build the Auth from
the resolved root-key settings, and the fail-closed bind guard that refuses
to expose an unauthenticated control plane on a public listener.
Moved out of the boatramp binary’s serve path so an in-process embedder —
or a fidelity test — assembles auth exactly as boatramp serve does.
Structs§
- Shared
Authz - The multi-writer
shared-mode authz guard the node bootstrap handsconfigure_auth(MF-3 stale-authz fence + MF-4 fail-closed). Built ONLY when the control-plane KV backend declaresWriterModel::MultiWriter; a single-writer backend passesNoneand keeps the unchanged authz path.
Functions§
- configure_
auth - Build the control-plane
Authfrom the resolved root-key settings (flag/env >serveconfig). For an issuing node (a private key or an external signer) it also setsoptions.issuerso the token-create and OIDC-exchange routes can mint. No key ⇒ auth disabled (dev). - enforce_
auth_ bind - Fail-closed bind guard: refuse to expose an unauthenticated control plane on a non-loopback listener unless the posture explicitly allows it, and warn loudly for any auth-disabled listener.