Skip to content

Sandbox isolation matrix is red on production #236

Backlog

Description

@github-actions

The weekly sandbox isolation matrix failed on production (exit 1).

Probe output:

==> validate live target and open private control-plane forwards
==> create a short-lived bootstrap principal and default-workspace grant
==> remove fixtures an earlier run left behind
    workspace tea-dc2od8sb6mms7391kn60 (m35-b-1124124359-2491)
    workspace tea-dc2opqiq373s73au5ntg (m35-b-1124131054-2399)
    workspace tea-dc2pfliq373s73au5ou0 (m35-b-1124135730-2326)
    workspace tea-dc2pkd2q373s73au6a3g (m35-b-1124140735-2418)
    workspace tea-dc2pshiq373s73au6qi0 (m35-b-1124142458-247)
==> create two disposable workspaces through the control-plane tenant API
==> billing-exclude the disposable workspaces (ADR046 paid-intent gate)
==> create four independent owner/member/admin principals
==> wait for NamespaceReconciler sandbox regimes
deployment "opensandbox-server" successfully rolled out
deployment "opensandbox-controller-manager" successfully rolled out
==> run the complete gVisor/Cilium/OpenFGA adversarial matrix
==> preflight hardened cluster before creating any fixture
PASS: hardening, immutable workloads, admission, Cilium, and GitOps ownership are live
==> sandbox groups: create, duplicate name, list, workspace default
PASS: sandbox groups are created in Render's shape, the first is the workspace's default, and a duplicate name is refused
==> create three sandboxes in workspace A and one in workspace B
PASS: public create returns each Render network policy durably for distinct principals
==> verify owner/member/admin and cross-workspace behavior
PASS: create-time env is accepted, reserved names are refused, and no read returns a value
PASS: owner isolation fails closed and can_manage is the sole override
PASS: a command run through bex's exec path sees the sandbox's create-time env
PASS: execution history lists the exec and the upload with Render's fields, and only to the sandbox's readers
PASS: a relative remote path resolves under the sandbox user's home
PASS: a command starts in Render's home, /home/render, where a relative upload is readable by its relative path
PASS: a command is interpreted by bash, and /bin/bash exists for #!/bin/bash scripts
go: downloading k8s.io/apimachinery v0.37.1
go: downloading sigs.k8s.io/controller-runtime v0.25.1
go: downloading golang.org/x/sync v0.24.0
go: downloading golang.org/x/time v0.15.0
go: downloading k8s.io/api v0.37.1
go: downloading k8s.io/client-go v0.37.1
go: downloading k8s.io/klog/v2 v2.140.0
go: downloading k8s.io/utils v0.0.0-20260626114624-be93311217bd
go: downloading sigs.k8s.io/randfill v1.0.0
go: downloading k8s.io/kube-openapi v0.0.0-20260721132016-d427ff9ee9ad
go: downloading sigs.k8s.io/structured-merge-diff/v6 v6.4.2
go: downloading github.com/rs/xid v1.6.0
go: downloading github.com/evanphx/json-patch/v5 v5.9.11
go: downloading github.com/go-logr/logr v1.4.4
go: downloading sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730
go: downloading gopkg.in/inf.v0 v0.9.1
go: downloading github.com/json-iterator/go v1.1.12
go: downloading go.yaml.in/yaml/v2 v2.4.4
go: downloading sigs.k8s.io/yaml v1.6.0
go: downloading github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822
go: downloading golang.org/x/net v0.61.0
go: downloading github.com/fxamacker/cbor/v2 v2.9.1
go: downloading github.com/google/gnostic-models v0.7.0
go: downloading go.yaml.in/yaml/v3 v3.0.4
go: downloading github.com/go-openapi/jsonreference v1.0.0
go: downloading github.com/go-openapi/swag v0.27.1
go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: downloading github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee
go: downloading golang.org/x/term v0.47.0
go: downloading golang.org/x/oauth2 v0.36.0
go: downloading google.golang.org/protobuf v1.36.12
go: downloading github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc
go: downloading github.com/x448/float16 v0.8.4
go: downloading github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2
go: downloading github.com/go-openapi/jsonpointer v1.0.0
go: downloading github.com/go-openapi/swag/cmdutils v0.27.1
go: downloading github.com/go-openapi/swag/conv v0.27.1
go: downloading github.com/go-openapi/swag/fileutils v0.27.1
go: downloading github.com/go-openapi/swag/jsonutils v0.27.1
go: downloading github.com/go-openapi/swag/loading v0.27.1
go: downloading github.com/go-openapi/swag/mangling v0.27.1
go: downloading github.com/go-openapi/swag/netutils v0.27.1
go: downloading github.com/go-openapi/swag/stringutils v0.27.1
go: downloading github.com/go-openapi/swag/typeutils v0.27.1
go: downloading github.com/go-openapi/swag/yamlutils v0.27.1
go: downloading golang.org/x/sys v0.49.0
go: downloading github.com/google/uuid v1.6.0
go: downloading golang.org/x/text v0.43.0
go: downloading github.com/emicklei/go-restful/v3 v3.13.0
go: downloading github.com/go-openapi/swag/pools v0.27.1
PASS: attacker-controlled probes run inside real gVisor sandbox Pods
==> verify the shipped exec path uses the same owner boundary
PASS: owner/admin exec succeeds while cross-owner and cross-workspace exec hide existence
PASS: own Pod loopback execd allowed
PASS: same-workspace peer execd denied
PASS: cross-workspace peer execd denied
PASS: same-workspace peer Pod user port denied
PASS: same-workspace peer Service denied
Warning: would violate PodSecurity "restricted:latest": allowPrivilegeEscalation != false (container "m35-20261201215852-3453-hosting" must set securityContext.allowPrivilegeEscalation=false), unrestricted capabilities (container "m35-20261201215852-3453-hosting" must set securityContext.capabilities.drop=["ALL"]), runAsNonRoot != true (pod or container "m35-20261201215852-3453-hosting" must set securityContext.runAsNonRoot=true), seccompProfile (pod or container "m35-20261201215852-3453-hosting" must set securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost")
PASS: sandbox to same-workspace hosting namespace denied
PASS: sandbox to lifecycle API denied
PASS: sandbox to Kubernetes API denied
PASS: sandbox to node/kubelet denied
PASS: sandbox to the egress meter on its node denied
PASS: sandbox to cloud metadata denied
PASS: allow-all resolves any public name allowed
PASS: allow-all reaches any public HTTPS host allowed
PASS: allow-all reaches a public non-HTTPS port allowed
PASS: private Kubernetes API target with approved SNI denied
PASS: allow-all to a private-range address denied
PASS: deny-all DNS resolution denied
PASS: deny-all public HTTPS by IP denied
PASS: deny-all public non-HTTPS port denied
PASS: unapproved DNS name resolution denied
PASS: unique DNS-exfiltration query denied
PASS: approved FQDN with TLS SNI allowed
PASS: approved FQDN through the libc resolver allowed
PASS: approved FQDN fetched by name over HTTPS allowed
PASS: unapproved public FQDN denied
PASS: approved destination by literal IP/wrong SNI denied
PASS: learned approved public IP with approved SNI allowed
PASS: allow-list non-HTTPS port to the approved address denied
PASS: allow-list private Kubernetes API target with approved SNI denied
PASS: allow-list to cloud metadata denied
PASS: each Render network policy enforces its own destinations above the platform floor
PASS: bex-api-sandbox-egress refuses to widen an allow-list
==> verify agent-session setup/agent egress phases (registries open in both)
PASS: bex-sandbox-pods refuses relabeling an existing sandbox Pod
PASS: setup-phase package registry allowed
PASS: tenant allowlisted destination allowed
PASS: setup-phase non-allowlisted destination denied
PASS: agent-phase package registry allowed
PASS: agent-phase GitHub baseline allowed
PASS: agent-phase tenant allowlisted destination allowed
PASS: agent-phase non-allowlisted destination denied
PASS: agent-phase same-workspace cross-sandbox isolation denied
PASS: session-posture DNS-exfiltration query denied
PASS: agent phase keeps the exact baseline, the package registries and the prepared tenant widening
PASS: bex-api label spoof on the default ServiceAccount denied
PASS: bex-api label spoof to sandbox exec gateway denied
PASS: bex-api namespace + ServiceAccount + workload identity allowed
PASS: bex-api identity to sandbox exec gateway allowed
PASS: lifecycle-server label spoof on the default ServiceAccount denied
PASS: lifecycle-server namespace + ServiceAccount + workload identity to execd allowed
PASS: lifecycle-server fixed tenant-resolver DNS allowed
PASS: lifecycle-server tenant-resolver connection allowed
PASS: lifecycle-server DNS exfiltration denied
PASS: controller identity to Kubernetes API allowed
PASS: controller DNS exfiltration denied
==> verify lifecycle-server ServiceAccount least privilege
Warning: resource 'namespaces' is not namespace scoped

Warning: resource 'clusterroles' is not namespace scoped in group 'rbac.authorization.k8s.io'

PASS: server SA mutates only provisioned sandbox namespaces and reads no Secrets
Warning: resource 'namespaces' is not namespace scoped

PASS: controller SA also has cluster reads plus sandbox-namespace writes only
==> verify sandbox Pod runtime admission boundary
Warning: would violate PodSecurity "restricted:latest": allowPrivilegeEscalation != false (container "probe" must set securityContext.allowPrivilegeEscalation=false), unrestricted capabilities (container "probe" must set securityContext.capabilities.drop=["ALL"]), runAsNonRoot != true (pod or container "probe" must set securityContext.runAsNonRoot=true), seccompProfile (pod or container "probe" must set securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost")
PASS: API server rejects sandbox runtime bypass and admits the exact gVisor Pod shape
==> verify NamespaceReconciler admission boundary
Warning: resource 'namespaces' is not namespace scoped

PASS: NamespaceReconciler admission denies platform/regime escalation and admits exact tenant projections
==> require Hubble evidence for the denied flows
PASS: Hubble attributes policy drops to the attacker and agent-session sandboxes
==> sandbox groups: placement, list filter, concurrency limit (429), cross-workspace isolation
PASS: sandboxes are placed in, read with, and filtered by their group
PASS: a group at its concurrencyLimit answers 429 while another admits, and terminating a sandbox frees its slot
==> sandbox groups: a resume into a full group answers 429
FAIL: POST /v1/sandboxes/sbx-dc7k95rfqctc73fvvpjg/pause?ownerId=tea-dc7k5skapn1c738n73t0 returned 404, want 204
WARNING: deleting fixture workspace tea-dc7k5skapn1c738n73tg (m35-b-1201215744-2932) failed; the next run's stale sweep retries it

These are adversarial checks across the owner/member/admin/cross-workspace matrix (docs/ADR042-sandbox-cluster-substrate.md, w3/m35). A failure means a principal reached a sandbox or credential outside its authorization. The wrapper removes its own fixtures on every exit path; if the run died mid-provision, confirm no m35-a-*/m35-b-* workspace or bootstrap client survives before closing.

Activity

  1. added
    sandbox-isolation-down
    on Nov 24, 2026
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

    sandbox-isolation-down

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions