Skip to content

We need Kubernetes: run ARTEX and its sandbox natively on clusters #781

Backlog

Description

@thecorporatetractor

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:

  1. 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.
  2. 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.
  3. 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.
  4. Visibility. Operators see what is running: every task's worker and proxy, their health, scaling state, and every allowed and denied connection.
  5. No unrestricted fallback. Even with the sandbox turned off, the panel's egress stays limited to approved scope.
  6. 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.

Sandbox topology, dark

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.

Sandbox list, light

Expanded task row

Expanded task row

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.

Scaling

Node details, mobile, Docker backend, runner down

Node details drawer

Mobile, dark

Docker backend, topology

Docker backend, list

Runner unreachable

Delivery

The work is split into focused PRs. Each one says what it depends on.

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

  1. github-actions commented on Dec 1, 2026

    @github-actions

    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 for sandbox.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 in docs/SANDBOX.md and ships Docker-based sandbox/runner pieces, it would help to state in the description how the chart relates to those docs and whether docs/SANDBOX.md or docs/OPS.md will 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.

  2. changed the title [-]Kubernetes deployment with the per-task sandbox[/-] [+]We need Kubernetes: run ARTEX and its sandbox natively on clusters[/+] on Dec 1, 2026
  3. thecorporatetractor commented on Dec 1, 2026

    @thecorporatetractor
    ContributorAuthor

    @BaaRai All four Kubernetes PRs are open and green, so the series is ready for review:

    1. feat(sandbox): Kubernetes backend for artex-runner #780 backend
    2. feat(deploy): Helm chart with the Kubernetes sandbox #783 Helm chart (its kubernetes CI job runs the backend on k3d)
    3. feat(sandbox): Sandbox page, scale-to-zero and capacity cap for the Kubernetes backend #791 Sandbox page, scale-to-zero and capacity cap
    4. feat(deploy): scope-restricted panel egress for sandbox off mode #792 scope-restricted panel egress for 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.

  4. thecorporatetractor commented on Dec 2, 2026

    @thecorporatetractor
    ContributorAuthor

    @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:

    1. Backend
    2. Helm
      • H1: chart templates and values.
      • H2: chart tests, k3d e2e script, CI job and install docs.
    3. Scaling
      • S1: scale-to-zero.
      • S2: capacity cap (HTTP 429 when full).
      • S3: scaling history kept across runner restarts.
    4. Sandbox page
      • P1: status API.
      • P2: topology model and its tests.
      • P3: topology view.
      • P4: list, egress and scaling panels.
      • P5: cluster-autoscaler test script.
    5. Off-mode panel egress
      • E1: policy model.
      • E2: proxy and chart config.
      • E3: tests.

    #783, #791 and #792 stay parked as the reference for the full feature. I'll close each one when its parts are open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions