Repository navigation
Add Cloudflare sandboxes with Tailscale SSH - #67
Merged
Merged
Conversation
czpython
force-pushed
the
codex/cloudflare-sandbox
branch
from
October 18, 2026 11:37
5ed1b71 to
0fbd0c0
Compare
Starts Cloudflare containers from a Worker in the operator's account. They join the tailnet and serve Tailscale SSH. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017378pkgrKkDT9egx2xjwoE
czpython
force-pushed
the
codex/cloudflare-sandbox
branch
from
October 18, 2026 12:35
fa6c942 to
2ecb1eb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Paulo · project thread
Before: Drukbox could not create hosts on Cloudflare.
After:
POST /hostswithprovider: cloudflarestarts a Cloudflare container. The container joins the tailnet and serves Tailscale SSH asroot. Deleting the host, or the janitor at lease expiry, deletes the container.How: Cloudflare starts containers only from a Durable Object, so the operator deploys
deploy/cloudflare/worker.jswith Wrangler, with no npm tooling.CloudflareAPIcalls the Worker with a bearer token. As in Cloudflare's Linux sandbox guide, the Worker starts the container from an image alias, runs bootstrap once per host name, and keeps the container awake with an alarm. The image has no SSH host keys, so Tailscale SSH makes its own for each box. CI runs a Wrangler dry run, which builds the image.Not verified live: container create and delete, the
tailscaledstart, and SSH over the tailnet. These need a Cloudflare account with Containers enabled.🤖 Generated with Claude Code
https://claude.ai/code/session_017378pkgrKkDT9egx2xjwoE