Watch
0
0
Fork
You've already forked hyperhive
0

swarm-stt: the deploy module (deploy.stt.*, sandboxed container, store leaf, queue grants) and its docs

This commit is contained in:
damocles 2026-11-12 08:36:32 +01:00 • committed by mara
commit 96b5b83fa4

View file

@ -194,6 +194,7 @@ let
"swarm-bao-ci-metrics-policy"
"swarm-bao-claude-login-policy"
"swarm-bao-notify-router-policy"
"swarm-bao-stt-policy"
"swarm-bao-attic-policy"
"swarm-bao-archive-policy"
];
@ -2183,6 +2184,27 @@ let
&& lib.hasInfix "allowed_common_names=swarm-notify-router" s
&& lib.hasInfix "token_policies=swarm-notify-router" s;
}
{
name = "the speech-to-text service's grant is read on its own queue client secret alone";
ok =
let
s = baoGrantHere.systemd.services.swarm-bao-stt-policy.script;
grants = grantsIn s;
in
(grantFor grants "secret/data/swarm/services/swarm-stt/oidc/client").caps == [ "read" ]
&& lib.length grants == 1
&& lib.hasInfix "auth/cert/certs/swarm-stt" s
&& lib.hasInfix "allowed_common_names=swarm-stt" s
&& lib.hasInfix "token_policies=swarm-stt" s;
}
{
name = "the PKI unit signs the speech-to-text service's leaf under its own subject";
ok =
let
s = baoGrantHere.systemd.services.swarm-bao-pki.script;
in
lib.hasInfix "/stt.pem ]" s && lib.hasInfix "swarm-stt \"\" clientAuth" s;
}
{
name = "the PKI unit signs the notification router's leaf under its own subject";
ok =