You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(sandbox): run the Kubernetes install's sandbox sessions in a namespace of their own #5386
#5210 (part 3 of #5052) moves the Kubernetes install's edge to Traefik.
Traefik's Kubernetes Ingress provider watches every Secret in the namespace it serves. RBAC resourceNames cannot narrow that watch: Traefik v3.7.17 starts a Secret informer with the fixed selector owner!=helm (pkg/provider/kubernetes/ingress/client.go, as found on TALE-297).
The guide's sandbox sessions run in that same namespace, tale:
SANDBOX_K8S_NAMESPACE: tale, at docs/en/self-hosted/install/kubernetes.md:623;
the spawner keeps each session's TALE_RUNNERD_TOKEN and TALE_SESSION_ENV (the session's environment) in a Secret there (services/sandbox/src/backend/kubernetes/k8s-session-backend.ts:275, k8s-session-pod-spec.ts:339).
So the edge, the part of the install that faces the internet, could read every session's token and environment.
What to do
Run the sandbox sessions in a namespace of their own in the Kubernetes install: the spawner's default, tale-sandbox. The namespace the edge watches then holds no session Secret.
Let the session egress policy reach sandbox-egress across namespaces.
Give the spawner only the namespaced Role it needs in the sessions' namespace, nothing wider.
Update the guide in en/de/fr, with the upgrade step for an install whose sessions run in tale today.
Done when
On a fresh cluster (kind is enough), sessions start in their own namespace and reach the egress proxy and nothing else.
The edge's Role covers none of the sessions' Secrets.
Where the worker cannot run a cluster, what was not run is written down.
The guide's RBAC section says which namespace holds which Secrets.
This waits for #5210 to land on feature-train, since both edit the same guide. The feature line's release of the Traefik edge on Kubernetes waits for this. priority: high. Line: feature. Decided by the Lead on TALE-297 (#5210).
Activity