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.
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.