Commit 51c8df0
k8s: drop host Docker socket mount from instant-api (P1-W5-14)
The instant-api Deployment mounted the node's /run/docker.sock as a
hostPath volume and set DOCKER_HOST. Write access to the host Docker
socket is equivalent to root on the node — a container-escape primitive
on the public, internet-facing api service.
Prod builds run via kaniko-in-k8s (verified: instant-config
COMPUTE_PROVIDER=k8s), so the Docker socket is unused. Remove:
- the docker-sock hostPath volume
- its volumeMount on the api container
- the DOCKER_HOST env var
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 8343d62 commit 51c8df0
1 file changed
Lines changed: 0 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | 54 | | |
60 | 55 | | |
61 | 56 | | |
62 | 57 | | |
63 | 58 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | 59 | | |
68 | 60 | | |
69 | 61 | | |
70 | 62 | | |
71 | | - | |
72 | | - | |
73 | 63 | | |
74 | 64 | | |
75 | 65 | | |
| |||
0 commit comments