the operator's bao works on a store host without a hive
This commit is contained in:
parent
039896c506
commit
32155f70aa
1 changed files with 169 additions and 9 deletions
|
|
@ -125,6 +125,14 @@ store's host signs them and the operator copies them to the host that needs
|
|||
them and names them in config. The service principals' leaves are at the top of
|
||||
`/var/lib/swarm-bao-pki/`, named after the principal.
|
||||
|
||||
The host's `bao` wrapper presents the hive's own `client.pem` where a hive runs
|
||||
on the host, and otherwise `operator.pem`, which `swarm-bao-pki` mints on every
|
||||
store host (subject `deploy.bao.operatorCommonName`, `operator` by default; key
|
||||
`0600` root). No cert-auth role accepts that subject, so it opens the TLS
|
||||
handshake and logs in to nothing: `bao status`, `operator init` and `operator
|
||||
unseal` need no token and work on a store host without a hive, and every other
|
||||
call still needs a token. Don't copy it to another host.
|
||||
|
||||
For every hive in `swarm.hives` other than its own, the store's host signs
|
||||
that hive's two leaves into `/var/lib/swarm-bao-pki/hives/<hive>/`:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue