From 22db35102a5a5377efcd1a98b3b892f22c5dbec4 Mon Sep 17 00:00:00 2001 From: atlas Date: Sun, 22 Nov 2026 20:59:50 +0100 Subject: [PATCH] docs: say what the nats pod does and doesn't isolate --- docs/4-implementation/k8s/runtime.md | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/docs/4-implementation/k8s/runtime.md b/docs/4-implementation/k8s/runtime.md index d5fc6ad6f..60b6a68b6 100644 --- a/docs/4-implementation/k8s/runtime.md +++ b/docs/4-implementation/k8s/runtime.md @@ -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//environ` and + `/proc//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