k8s: stt's pod gets a network policy: dns and four host ports out, nothing in
This commit is contained in:
parent
4ea3b0e10d
commit
02cc38d89e
1 changed files with 262 additions and 22 deletions
|
|
@ -101,16 +101,18 @@ With `deploy.stt.runtime = "k8s"` on a host that runs the cluster
|
|||
(`deploy.k8s.enable`), the service runs as a pod and the host has no container.
|
||||
The pod has the unit's memory and CPU ceilings as limits and its cache on a
|
||||
volume of the cluster. The systemd sandbox stays on the host, and the pod has
|
||||
the security shape every pod has; neither restricts the network. Nothing moves
|
||||
in a switch, so each side keeps the cache it last had; see
|
||||
[the runtime switch](../k8s/runtime.md).
|
||||
the security shape every pod has. The pod's NetworkPolicy lets it reach cluster
|
||||
DNS and the store, identity provider, queue and hive collector on the host and
|
||||
nothing else, and admits no ingress. Nothing moves in a switch, so each side
|
||||
keeps the cache it last had; see [the runtime switch](../k8s/runtime.md).
|
||||
|
||||
The audio comes from rooms with outside people, so the service runs as its own
|
||||
unprivileged user under a tight systemd sandbox, with a memory ceiling and
|
||||
a CPU quota. Its network isn't restricted: the decoder runs in the same
|
||||
network namespace as the service and can read its credentials, so a decoder
|
||||
unprivileged user under a tight systemd sandbox, with a memory ceiling and a CPU
|
||||
quota. In the container its network isn't restricted: the decoder runs in the
|
||||
same network namespace as the service and can read its credentials, so a decoder
|
||||
exploit could read them and send them anywhere the container can reach. Closing
|
||||
that's for the strict-egress work on service containers, or for running the
|
||||
decode with no network and no credentials. The file's first bytes must look like an audio container
|
||||
before anything decodes it. Its leaf and its queue client work as the notification router's
|
||||
do.
|
||||
decode with no network and no credentials. In the pod the policy limits where
|
||||
they can go to those four host services. The file's first bytes must look like
|
||||
an audio container before anything decodes it. Its leaf and its queue client
|
||||
work as the notification router's do.
|
||||
|
|
|
|||
Loading…
Reference in a new issue