Commit Graph
6 Commits
Author SHA1 Message Date
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 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 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 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