Watch
0
0
Fork
You've already forked hyperhive
0

require k8s: swarm services with a pod run in the cluster only

This commit is contained in:
atlas 2026-11-26 00:36:09 +01:00 • committed by maia
commit 57d40ae8ea

View file

@ -2779,7 +2779,7 @@ let
# The controller's whole reach on any PKI mount: one role's issue
# endpoint. It cannot rewrite the role, sign a CSR of its choosing or
# touch the issuer, so the role's narrowing is the narrowing.
name = "the controller's only PKI grant is update on the agent role's issue path";
name = "the controller's only PKI grants are update on the agent role's issue path and on its listener's";
ok =
let
cg = grantsIn baoGrantHere.systemd.services.swarm-bao-controller-policy.script;
@ -2789,6 +2789,12 @@ let
path = "pki-agents/issue/swarm-agent";
caps = [ "update" ];
}
# The listener's own leaf, which the controller's pod issues now that the
# listener is on by default.
{
path = "pki/issue/swarm-controller-tls";
caps = [ "update" ];
}
]
&& lib.all (p: grantFor cg p == null) [
"pki-agents/roles/swarm-agent"