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
Languages
Go 84.5%
Rust 7.9%
Shell 2.7%
templ 1.6%
Java 1%
Other 2%