Watch
0
0
Fork
You've already forked hyperhive
0

grant-bootstrap re-applies the granter and restarts failed policy units; setup treats a refused granting unit as not done

This commit is contained in:
maia 2026-11-19 06:18:04 +01:00 • committed by mara
commit c7d37ca455

View file

@ -116,7 +116,11 @@ It writes the `bao-bootstrap` policy, places a 24h grant token for
`swarm-bao-granter-role` and restarts that unit. The token comes from the
hidden prompt, or from stdin when stdin isn't a terminal; never from an
argument or environment variable. If the granter exists already, it
says so and does nothing. To do both steps in one go,
runs the same steps again: this is also how a change to the granter's own
policy or to `bao-bootstrap` reaches an existing store, because a deploy
changes the text on the host and not in the store. Afterwards it resets and
restarts every failed `swarm-bao-*-policy` unit, which otherwise stays down once
it hits its start limit. To do both steps in one go,
without re-typing the root token, run `swarmctl bao init --and-grant`
instead (it needs the `pkcs11` seal, which unseals itself).