require k8s: swarm services with a pod run in the cluster only
This commit is contained in:
parent
272af0b3e8
commit
57d40ae8ea
1 changed files with 1044 additions and 3125 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue