Skip to content

fix(sandbox): show Shell when a sandbox provider is ready, clearer setup failures, and chart-derived sandbox defaults - #10767

Merged
waleedlatif1 merged 5 commits into
stagingfrom
waleed/selfhost-sandbox-fixes
Dec 5, 2026
Merged

waleedlatif1 merged 5 commits into
stagingfrom
waleed/selfhost-sandbox-fixes

Conversation

@waleedlatif1

@waleedlatif1 waleedlatif1 commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • The Function block's Shell option appears whenever a remote sandbox provider is ready (as on hosted); the Sandbox selector and Settings → Sandboxes stay behind the SANDBOXES_ENABLED entitlement. The server already ran Shell without the entitlement, so self-hosters just couldn't pick it
  • Kubernetes sandboxes: a running container whose agent never answers fails after 60s as a configuration error naming the app→sandbox path on TCP 49983, or as a crash with the termination reason when it restarted, instead of a retryable capacity error after 3 minutes
  • A sandbox admission-policy denial now names the policy and points at chart/app version skew
  • The app logs once at startup when the sandbox capability is configured but invalid (including TRIGGER_DEV_ENABLED with the Kubernetes provider); "requires a remote code sandbox" errors link the docs
  • Chart (1.21.0):
    • restricted egress allows the node-local DNS caches (GKE NodeLocal DNSCache, AKS LocalDNS)
    • the sandbox quota is derived from pods × (resources + overhead), and an explicit quota below that floor fails to render
    • prePull uses the release's Function image (written into the published chart at publish time), so it no longer pins the app's image
    • TRIGGER_DEV_ENABLED with Kubernetes sandboxes fails to render
    • NOTES warns when session sandbox cleanup is off
  • Docs: Shell vs custom sandboxes, node-local DNS, AKS Kata taint, EKS Nitro ephemeral-storage and GKE seccomp caveats, installer RBAC, verify-install NetworkPolicy snippet
  • Intentional docs code-example changes (the AKS taint and verify-install NetworkPolicy snippets): the compatibility baseline records their new hashes

Type of Change

  • Bug fix

Testing

  • Vitest: Function block Shell gating, deployment projection, startup (fake timers: unreachable agent, crash-looping agent, unscheduled pod), errors (admission policy), execute-request docs URL, boot report — each red against the pre-fix code; 434 tests in the touched areas pass
  • helm-unittest 245/245 (new: DNS, derived/explicit quota, prePull with and without the bundled image, TRIGGER refusal, cleanup warning); helm lint --strict
  • write-chart-sandbox-images.ts against v0.9.73 (writes and verifies the rendered pre-pull image) and v0.9.72 (no list: notice, exit 0); actionlint on helm.yml

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Dec 5, 2026 12:27am UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 31 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread .github/workflows/helm.yml Resolved
Comment thread .github/workflows/helm.yml Resolved
Comment thread helm/sim/templates/_helpers.tpl Resolved
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 33 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread .github/workflows/helm.yml Resolved
@waleedlatif1
waleedlatif1 force-pushed the waleed/selfhost-sandbox-fixes branch from 8614dbb to 9e88fa7 Compare December 5, 2026 00:04
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 34 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread helm/sim/templates/_helpers.tpl Resolved
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 34 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@waleedlatif1
waleedlatif1 merged commit b0e9ae1 into staging Dec 5, 2026
100 checks passed
@waleedlatif1
waleedlatif1 deleted the waleed/selfhost-sandbox-fixes branch December 5, 2026 00:48

This branch was successfully deployed

1 active deployment
Preview — a71b6309 Deployed Dec 5, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant