blockmaster refuses --insecure-external-bind (a non-loopback --listen needs
mutual TLS; the runtime HTTP listener stays on loopback), and
--launcher-master-tls-secret-prefix makes each generated volume mount its
server's node certificate Secret and dial with it. The chart, the launcher
renderer, the alpha/g15b/g15d manifests and gate scripts mount the Secrets
and pass the TLS flags; network.externalStatus and the frontend runtime
HTTP option fail the render. scripts/k8s-alpha-certs.sh issues development
certificates and the role file. The systemd startup gate runs its
off-loopback master with mutual TLS.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Phase 0, S6: AuditLog writes one JSON line per event: every operator and
admin call (accepted or refused, including a handler's RequireRole
refusal), refused node calls at most once a minute per (fingerprint,
result, method), and every role-file reload with its outcome; accepted
node calls are not recorded. blockmaster --audit-log turns it on (with
authentication only).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Phase 0, S3 (core part): the unary and stream interceptors authenticate
every call (PeerIdentity), apply the method's rule (people from a minimum
role up; nodes where allowed; a method without a rule is refused), and put
the principal on the context for RequireNode (own server id) and
RequireRole. A stream re-authenticates before every send and at every
role-file reload, so a removed caller loses its open stream at the reload.
Development mode marks calls explicitly; a call no interceptor saw is
refused by the handler checks (fail closed).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
core/auth (phase 0, S2): ParseRoleFile/LoadRoleFile (sha256:<hex> role id),
an Authenticator whose table swaps atomically (a failed reload keeps the
previous table), and PeerIdentity: the leaf certificate the TLS handshake
verified to the client CA, its fingerprint bound to a role and id, CN equal
to that id, not expired on the master's clock; every failure is
UNAUTHENTICATED. authtest issues test CAs and certificates.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>