swarm-nats-auth: refuse a service client id that fits a hive or a second role
This commit is contained in:
parent
ac7d6d1c44
commit
d5f5ee21be
1 changed files with 274 additions and 1 deletions
|
|
@ -161,6 +161,16 @@ The signature and the sender key stay unchecked on purpose, for three reasons.
|
|||
|
||||
The guard is the module-eval case `the callout account has exactly one member and no system account is configured` in `nix/module-eval/nats-authelia.nix`. An extra member of `AUTH` could subscribe to the subject and read every client's token, which no signature check would stop. Revisit this decision if that case changes: when `AUTH` gains a member, or the server gets a system account.
|
||||
|
||||
## Which role a queue client id gets
|
||||
|
||||
The responder gives a client id the first role it fits: a hive if the id starts
|
||||
with `--hive-client-prefix`, then the controller's reader role, then the review
|
||||
classifier, builder, claude login, notify router and speech-to-text roles. An id
|
||||
under two of them gets only the first one's grant, so the responder refuses to
|
||||
start when a service role's id starts with the hive prefix or appears under two
|
||||
roles, and the message names both. The module says the same at evaluation, with
|
||||
an assertion naming the six ids, so a clash fails the build before a deploy.
|
||||
|
||||
## Per-principal identities
|
||||
|
||||
Bao matches a cert-auth role on the certificate's subject, so a certificate is an
|
||||
|
|
|
|||
Loading…
Reference in a new issue