Repository navigation
Description
Why ARTEX needs Kubernetes
ARTEX runs autonomous agents that execute real tools against real targets. Every task gets its own sandbox: a worker, an egress proxy and an allowlist built from operator-approved scope. Today that model is tied to one Docker host.
That limits where ARTEX can go:
- Scale. One host caps how many engagements can run at once. A team running continuous testing across many targets needs sandboxes that spread over a cluster, start on demand and disappear when idle.
- Where teams already run software. Security teams and MSSPs deploy on EKS, GKE, AKS, OpenShift and on-prem clusters. They need a chart, not a compose file on a VM.
- Security posture. On a cluster the Docker backend means mounting the node's container runtime socket into a pod, which gives that pod root on the node. A pentest platform should not need that. Kubernetes already has the primitives ARTEX's sandbox model needs: pods with locked-down security contexts, NetworkPolicy, RBAC scoped to a namespace, and RuntimeClass for gVisor or Kata.
- Operations. Rolling upgrades, health probes, persistent volumes, resource quotas and cluster-autoscaler come with the platform instead of being rebuilt around one host.
- People are asking. Deploying on Kubernetes Best Practises #620 shows users trying to deploy ARTEX on Kubernetes and getting stuck on the security context.
What Kubernetes support should mean
Kubernetes is a first-class target, not a port of the compose file:
- Native sandbox. Each task runs in its own worker pod behind its own egress-proxy pod, created through the Kubernetes API. No runtime socket anywhere. Per-task NetworkPolicies enforce the same boundary as the Docker backend: the worker reaches only its proxy, and the proxy reaches only approved scope.
- One-command install. A Helm chart with hardened defaults: default-deny networking, generated secrets, namespace-scoped RBAC, and a panel security context that passes the isolation self-test.
- Elastic capacity. Idle sandboxes scale to zero and come back on the next command with their workspace intact. A cap bounds active sandboxes. On clusters with cluster-autoscaler, nodes follow demand.
- Visibility. Operators see what is running: every task's worker and proxy, their health, scaling state, and every allowed and denied connection.
- No unrestricted fallback. Even with the sandbox turned off, the panel's egress stays limited to approved scope.
- Proven on real clusters. Every piece is tested live: k3d in CI, plus cluster-autoscaler on a real multi-node cluster.
What it looks like
The Sandbox page under System shows every task sandbox live: the runner, each task's worker and egress proxy, the scaling state, and every allowed and refused connection. The screenshots use example data.
Topology. Every task's worker reaches the network only through its own proxy. Refused traffic goes to Blocked, and idle sandboxes are shown scaled to zero.
Operator view. One row per task with health, idle countdown, pods and egress counts. Below it, egress is grouped by destination and can be filtered by outcome, task and text.
Scaling. The capacity in use against the cap, cold-start p50/p95, per-task idle countdowns, and the scale history, which is kept across runner restarts.
Delivery
The work is split into focused PRs. Each one says what it depends on.
- feat(sandbox): Kubernetes backend for artex-runner #780 Kubernetes backend for
artex-runner: per-task worker and egress-proxy pods, per-task NetworkPolicies, exec through the Kubernetes API. - feat(deploy): Helm chart with the Kubernetes sandbox #783 Helm chart with default-deny NetworkPolicies and generated secrets, a k3d e2e script and a CI job. Answers Deploying on Kubernetes Best Practises #620. Depends on feat(sandbox): Kubernetes backend for artex-runner #780.
- feat(sandbox): Sandbox page, scale-to-zero and capacity cap for the Kubernetes backend #791 Sandbox view and autoscaling: runner status API; a Sandbox page under System with a topology graph and task and egress tables; idle scale-to-zero; a cap on active sandboxes; scaling history kept across restarts; placement settings for cluster-autoscaler; a cluster-autoscaler e2e script. Depends on feat(deploy): Helm chart with the Kubernetes sandbox #783.
- feat(deploy): scope-restricted panel egress for sandbox off mode #792 Scope-restricted panel egress for
sandbox.mode=off. Depends on feat(deploy): Helm chart with the Kubernetes sandbox #783.
Related fix: #775.
Later
- More than one panel or runner replica. This needs the runner's task state out of memory.
- RuntimeClass presets (gVisor, Kata) tested in CI.
- Operator-facing quotas per company or engagement.









Activity
github-actions commentedon Dec 1, 2026
This is a feature request: add first-class Kubernetes support for the per-task sandbox so ARTEX can run in a cluster without mounting any container runtime socket — a Kubernetes backend for
artex-runner(worker + egress-proxy pod per task, per-task NetworkPolicies, exec via the Kubernetes API), a Helm chart with panel/runner/PostgreSQL/default-deny policies and generated secrets, a Sandbox view with runner status API and autoscaling, and panel egress control forsandbox.mode=off. The issue already breaks this into dependent PRs with a test strategy (fake API server unit tests, k3d e2e, cluster-autoscaler testing) and clear out-of-scope items, which is a good shape for tracking. Since the repository documents the sandbox indocs/SANDBOX.mdand ships Docker-based sandbox/runner pieces, it would help to state in the description how the chart relates to those docs and whetherdocs/SANDBOX.mdordocs/OPS.mdwill be updated by the chart PR, so reviewers know where the new deployment guidance will land.🤖 automated reply from the repo bot. A human maintainer reads everything. Ping me in any comment with
@artex-bot.[-]Kubernetes deployment with the per-task sandbox[/-][+]We need Kubernetes: run ARTEX and its sandbox natively on clusters[/+]thecorporatetractor commentedon Dec 1, 2026
@BaaRai All four Kubernetes PRs are open and green, so the series is ready for review:
kubernetesCI job runs the backend on k3d)sandbox.mode=off#791 and #792 both build on #783 and can merge in either order. Whichever goes second needs a small rebase, and I'll do that. Screenshots are in the issue description above.
thecorporatetractor commentedon Dec 2, 2026
@BaaRai thanks for the review notes on #780, #783, #791 and #792. I'm splitting the Kubernetes work into PRs under 2,500 lines and 15 files. They target
main, so each one opens after the one before it merges. This issue is the tracking issue for the series.Order:
#783, #791 and #792 stay parked as the reference for the full feature. I'll close each one when its parts are open.