semi-spread example: name the store's CA on the machines without the store
This commit is contained in:
parent
1ad4ebdd7b
commit
250118d558
1 changed files with 36 additions and 13 deletions
|
|
@ -170,10 +170,12 @@ addresses for you, so the key steps above go away. Three things change:
|
|||
## Reading the store
|
||||
|
||||
Only `swarm-central` runs the secret store, and every service on the other
|
||||
machines reads it with a client certificate that the store's host mints. The
|
||||
example names each leaf under `/var/lib/swarm-pki/` on the machine that uses
|
||||
it. After the first deploy of `swarm-central`, copy the files from
|
||||
`/var/lib/swarm-bao-pki/` there over the VPN (for a hive, from
|
||||
machines reads it with a client certificate that the store's host mints, and
|
||||
checks the store against its CA (`ca.pem`). The example names each leaf, and
|
||||
`ca.pem`, under `/var/lib/swarm-pki/` on the machine that uses it. Without
|
||||
`ca.pem` the machines don't trust the store's certificate. After the first
|
||||
deploy of `swarm-central`, copy the files from `/var/lib/swarm-bao-pki/` there
|
||||
over the VPN (for a hive, `ca.pem` and the files from
|
||||
`/var/lib/swarm-bao-pki/hives/<name>/`), then deploy the other machines. The
|
||||
private keys travel over a channel you trust and stay readable by root only.
|
||||
[`credentials.md`](credentials.md) lists which leaf each service reads and what
|
||||
|
|
|
|||
Loading…
Reference in a new issue