Run with a read-only root filesystem #233

Closed
opened 2026-11-18 05:14:42 +00:00 by jcoffey-dev · 4 comments
Owner

K-A1 · size S · part of inbuxa for Kubernetes (tracking issue in inbuxa-charts)

nginx temp and cache paths to emptyDir; documented.

Done when

  • Runs read-only under Pod Security restricted

Depends on: S2

**K-A1** · size S · part of inbuxa for Kubernetes (tracking issue in inbuxa-charts) nginx temp and cache paths to emptyDir; documented. **Done when** - Runs read-only under Pod Security restricted **Depends on:** S2
jcoffey-dev added this to the 27.1 milestone 2026-11-18 05:14:42 +00:00
jcoffey-dev added the securityenhancement labels 2026-11-18 05:14:42 +00:00
Author
Owner

Found while testing (spike S2): the console image exits under a read-only root filesystem. Two startup scripts write into the image:

  • docker/listen-ipv6.sh (11-listen-ipv6) rewrites /etc/nginx/conf.d/default.conf to add the IPv6 listener.
  • docker/entrypoint.sh (40-api-base-url) rewrites index.html with the API base URL.

So this is a code change, not just mounts (resizing to M). Likely shape: render both into an emptyDir at start (e.g. /tmp/nginx/) and point nginx's include and root at it, or serve the API base URL from a small generated config.js in the emptyDir instead of editing index.html. Keep plain Docker behaviour the same.

Found while testing (spike S2): the console image exits under a read-only root filesystem. Two startup scripts write into the image: - `docker/listen-ipv6.sh` (11-listen-ipv6) rewrites `/etc/nginx/conf.d/default.conf` to add the IPv6 listener. - `docker/entrypoint.sh` (40-api-base-url) rewrites `index.html` with the API base URL. So this is a code change, not just mounts (resizing to M). Likely shape: render both into an emptyDir at start (e.g. `/tmp/nginx/`) and point nginx's include and root at it, or serve the API base URL from a small generated `config.js` in the emptyDir instead of editing `index.html`. Keep plain Docker behaviour the same.
jcoffey-dev self-assigned this 2026-11-18 06:28:50 +00:00
jcoffey-dev added the
priority
p2
label 2026-11-18 06:28:50 +00:00
Author
Owner

Folded into the checklist on inbuxa/inbuxa-charts#14 to keep the issue list short. The details stay here; reopen this when work on it starts.

Folded into the checklist on inbuxa/inbuxa-charts#14 to keep the issue list short. The details stay here; reopen this when work on it starts.
Author
Owner

Reopened: work on this is in progress.

Reopened: work on this is in progress.
Author
Owner

Shipped in 27.1-rc.20 (e4c2a68). The startup scripts render the listener and index.html into /tmp/inbuxa-admin, and nginx caches in /var/cache/nginx. The chart gives both an emptyDir.

Proven under Pod Security restricted, enforced, on the kind lab (inbuxa/inbuxa-charts#21, inbuxa/inbuxa-k8s-lab#22): the console pods were re-admitted, they run with a read-only root, and the console sign-in test passes.

Shipped in 27.1-rc.20 (e4c2a68). The startup scripts render the listener and `index.html` into `/tmp/inbuxa-admin`, and nginx caches in `/var/cache/nginx`. The chart gives both an emptyDir. Proven under Pod Security restricted, enforced, on the kind lab (inbuxa/inbuxa-charts#21, inbuxa/inbuxa-k8s-lab#22): the console pods were re-admitted, they run with a read-only root, and the console sign-in test passes.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: inbuxa/inbuxa-admin#233