docs: say what the nats pod does and doesn't isolate
This commit is contained in:
parent
a2cb2346d8
commit
22db35102a
1 changed files with 12 additions and 5 deletions
|
|
@ -248,11 +248,18 @@ holds the container back until the pod has gone.
|
|||
host's `swarm-bao-nats-tls`. The key lands in a volume in memory. The
|
||||
callout's keys and the responder's own reads go through the role
|
||||
`swarm-nats-auth`. A pod has one ServiceAccount, `swarm-nats`, so both roles
|
||||
bind it. A fourth container, `tls-renew`, runs the same script every five
|
||||
minutes beside the server. It leaves a leaf in the first half of its 30 days
|
||||
alone, and issues a new one after that. Then it sends `SIGHUP` to the server,
|
||||
which reloads its TLS files for new connections, so the pod shares its
|
||||
processes among its containers. A connection already open keeps the old leaf.
|
||||
bind it, and any container that holds its token can log in as either. The
|
||||
split between the leaf-issuing identity and the callout-key identity holds
|
||||
between the host's units but not inside the pod, and a container added to the
|
||||
pod inherits both. A fourth container, `tls-renew`, runs the same script
|
||||
every five minutes beside the server. It leaves a leaf in the first half of
|
||||
its 30 days alone, and issues a new one after that. Then it sends `SIGHUP` to
|
||||
the server, which reloads its TLS files for new connections, so the pod
|
||||
shares its processes among its containers. A connection already open keeps
|
||||
the old leaf. The shared process namespace isolates nothing: the
|
||||
network-facing server sees the responder's and `tls-renew`'s processes, and
|
||||
under the same user can read their `/proc/<pid>/environ` and
|
||||
`/proc/<pid>/root`. The container had the same exposure, as one container.
|
||||
- **The host's units.** `swarm-nats-auth-secrets` and
|
||||
`swarm-bao-nats-callout-xkey` deliver into the container, so the configuration
|
||||
turns them off. `swarm-bao-nats-tls` stays: it issues the host's own copy of
|
||||
|
|
|
|||
Loading…
Reference in a new issue