Title: feat: optional read-only root filesystem for run pods in the Kubernetes supervisor · Issue #5078 · triggerdotdev/trigger.dev · GitHub
Open Graph Title: feat: optional read-only root filesystem for run pods in the Kubernetes supervisor · Issue #5078 · triggerdotdev/trigger.dev
X Title: feat: optional read-only root filesystem for run pods in the Kubernetes supervisor · Issue #5078 · triggerdotdev/trigger.dev
Description: Is your feature request related to a problem? Please describe. Self-hosters running Trigger.dev on Kubernetes with Pod Security / policy engines (Kyverno, OPA Gatekeeper, CIS benchmarks, some compliance scanners) are often required to ru...
Open Graph Description: Is your feature request related to a problem? Please describe. Self-hosters running Trigger.dev on Kubernetes with Pod Security / policy engines (Kyverno, OPA Gatekeeper, CIS benchmarks, some compl...
X Description: Is your feature request related to a problem? Please describe. Self-hosters running Trigger.dev on Kubernetes with Pod Security / policy engines (Kyverno, OPA Gatekeeper, CIS benchmarks, some compl...
Opengraph URL: https://github.com/triggerdotdev/trigger.dev/issues/5078
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat: optional read-only root filesystem for run pods in the Kubernetes supervisor","articleBody":"### Is your feature request related to a problem? Please describe.\n\nSelf-hosters running Trigger.dev on Kubernetes with Pod Security / policy engines (Kyverno, OPA Gatekeeper, CIS benchmarks, some compliance scanners) are often required to run containers with `readOnlyRootFilesystem: true`. The supervisor's `KUBERNETES_RUNNER_SECURITY_CONTEXT` (off/baseline/restricted) doesn't set it, and no Pod Security Standards level requires it, so there is currently no way to get it on run pods without patching the supervisor.\n\n### Describe the solution you'd like to see\n\nAdd two opt-in supervisor env vars:\n\n- `KUBERNETES_RUNNER_READ_ONLY_ROOT_FILESYSTEM` (boolean, default `false`). When true, sets `securityContext.readOnlyRootFilesystem: true` on the run-controller container. It composes with any `KUBERNETES_RUNNER_SECURITY_CONTEXT` level, including `off`.\n- `KUBERNETES_RUNNER_TMP_VOLUME_SIZE_LIMIT` (default `256Mi`, blank = no per-volume cap). When read-only is enabled, an `emptyDir` is mounted at `/tmp` so tasks keep a writable `os.tmpdir()`.\n\nThe runner runtime itself doesn't write to disk (IPC over socketpair, logs to stdout, OTLP over HTTP), so a single `/tmp` volume is sufficient. Default behavior is unchanged.\n\n### Describe alternate solutions\n\n- A mutating admission webhook injecting `readOnlyRootFilesystem` and a `/tmp` volume. This works but adds cluster-side machinery for something the supervisor can do natively.\n- Maintaining a fork of the supervisor. This is what we do today and what we'd like to stop doing.\n- Making `KUBERNETES_RUNNER_SECURITY_CONTEXT=restricted` imply the flag. This would break existing users, since `restricted` doesn't imply a read-only root.\n\n### Additional information\n\nWe already run this in a private fork (including unit tests for `runnerSecurityContext` and the new `runnerTmpVolume` helper). The change touches `apps/supervisor/src/env.ts`, `workloadManager/kubernetes.ts` and `workloadManager/kubernetesPodSpec.ts`, and is roughly 60 lines of source. If this direction is acceptable, we'd be happy to open a PR once vouched, so we can drop our fork.\n","author":{"url":"https://github.com/gungoren","@type":"Person","name":"gungoren"},"datePublished":"2026-10-26T22:20:50Z","url":"https://github.com/triggerdotdev/trigger.dev/issues/5078"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ce040bd2-2d70-9a91-60d4-8d3dee1dc653 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8922:A0E7C:6F277D:9E9C7B:6AFAD887 |
| html-safe-nonce | fd27af2520250caad4963dfe286a3eaf21aa58eb95ef1424fbb073c20ed8a519 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTIyOkEwRTdDOjZGMjc3RDo5RTlDN0I6NkFGQUQ4ODciLCJ2aXNpdG9yX2lkIjoiMjA2NzMyNTU2NDM0Njk5NTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d3fa1e98780d384e10cffb7fba671f06c8b7ff985dfb817a85739800e73bf6d5 |
| hovercard-subject-tag | issue:6049203340 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/triggerdotdev/trigger.dev/5078/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9d5de4c2066c06f1fe7e388fd7ed411aea5fcfc7b189a5ad42f8e22a00219b44/triggerdotdev/trigger.dev/issues/5078 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9d5de4c2066c06f1fe7e388fd7ed411aea5fcfc7b189a5ad42f8e22a00219b44/triggerdotdev/trigger.dev/issues/5078 |
| og:image:alt | Is your feature request related to a problem? Please describe. Self-hosters running Trigger.dev on Kubernetes with Pod Security / policy engines (Kyverno, OPA Gatekeeper, CIS benchmarks, some compl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gungoren |
| hostname | github.com |
| expected-hostname | github.com |
| None | 02f4c00e74911c7cd779fc232c3130cee49eb39fd0ed4bfe3eea3b82c7c18084 |
| turbo-cache-control | no-preview |
| go-import | github.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git |
| octolytics-dimension-user_id | 95297378 |
| octolytics-dimension-user_login | triggerdotdev |
| octolytics-dimension-repository_id | 572570113 |
| octolytics-dimension-repository_nwo | triggerdotdev/trigger.dev |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 572570113 |
| octolytics-dimension-repository_network_root_nwo | triggerdotdev/trigger.dev |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 33c41e9d150e44415272934d676dc63c57d89c3b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width