Watch
0
0
Fork
You've already forked hyperhive
0

the queue's exporter asks every request for a login the gateway supplies

This commit is contained in:
atlas 2026-11-27 15:42:53 +01:00
commit 893b693b46

View file

@ -2245,8 +2245,8 @@ let
}
{
# Create without update: the first value stored is the one every later
# run reads, and no run replaces it. The two leaves are the stores'.
name = "the store credential publisher's grant is create and read on the two stores' credentials and nothing else, and the PKI unit signs its leaf";
# run reads, and no run replaces it. Two leaves are the stores', the third the exporter's.
name = "the store credential publisher's grant is create and read on the two stores' and the queue exporter's credentials and nothing else, and the PKI unit signs its leaf";
ok =
let
s = baoGrantHere.systemd.services.swarm-bao-store-auth-policy.script;
@ -2262,7 +2262,12 @@ let
"create"
"read"
]
&& lib.length grants == 2
&&
(grantFor grants "secret/data/swarm/services/nats/exporter-auth").caps == [
"create"
"read"
]
&& lib.length grants == 3
&& lib.hasInfix "auth/cert/certs/swarm-store-auth" s
&& lib.hasInfix "allowed_common_names=swarm-store-auth" s
&& lib.hasInfix "token_policies=swarm-store-auth" s