Commit Graph
13 Commits
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 e82abea6b8 k8s: Kubernetes installs run blockmaster with mutual TLS; the plaintext off-host bind flag is refused
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>
2026-11-25 00:20:11 -08:00
pingqiuandClaude Opus 5.5 252f41a6c2 fix(auth): a strict call is refused without an audit log (and TLS requires --audit-log); the overflow warning is off the caller path; strict queue-full drops are counted; the census descends into selector receivers
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 16:00:18 -08:00
pingqiuandClaude Opus 5.5 e57773d678 test(auth): red: strict call without an audit log; overflow warning on the caller path; uncounted strict drop; nested bypass reference
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 15:59:02 -08:00
pingqiuandClaude Opus 5.5 ddf7596f96 test(auth): the development-bypass census counts every reference (aliases, initializers, renamed and dot imports) with negative controls
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 15:44:22 -08:00
pingqiuandClaude Opus 5.5 b824366163 feat(auth): mutating operator and admin calls write their audit attempt first or are refused (strict rules); /status/audit counts dropped lines
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 15:38:24 -08:00
pingqiuandClaude Opus 5.5 3007058e46 test(auth): guard: the development-mode bypass has one production caller; docs: two role-file lines with one node id are two keys of one server
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 15:33:14 -08:00
pingqiuandClaude Opus 5.5 c5c818f376 fix(auth): streams re-apply the method's rule for the current role; audit never blocks a call (bounded queue, accepted node calls skip it); a validated reload is published before it is logged
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 15:28:08 -08:00
pingqiuandClaude Opus 5.5 03ce649868 test(auth): red: a downgraded role keeps its stream; a blocked audit writer stalls node responses and revocations
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 15:26:43 -08:00
pingqiuandClaude Opus 5.5 8165ac9414 test(auth): T10 renewal-path cost at 32 volumes; the per-call check never waits for a reload
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 14:28:40 -08:00
pingqiuandClaude Opus 5.5 979b859ae5 auth: DevCall marks in-process handler calls in tests as development mode
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 09:13:56 -08:00
pingqiuandClaude Opus 5.5 7b96570505 feat(auth): the append-only audit log
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>
2026-11-24 09:07:36 -08:00
pingqiuandClaude Opus 5.5 34dbc862cd feat(auth): one interceptor, per-method rules, RequireNode / RequireRole
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>
2026-11-24 08:25:04 -08:00
pingqiuandClaude Opus 5.5 160fcc0d29 feat(auth): the caller is the CA-verified certificate pinned by the role file
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>
2026-11-24 08:23:03 -08:00