Skip to content

feat(orchestrator): websocket#950

Merged
binarybaron merged 3 commits intomasterfrom
feat/orchestrator-cloudflare-tunnel
Apr 10, 2026
Merged

feat(orchestrator): websocket#950
binarybaron merged 3 commits intomasterfrom
feat/orchestrator-cloudflare-tunnel

Conversation

@binarybaron
Copy link
Copy Markdown

@binarybaron binarybaron commented Apr 10, 2026

Note

Medium Risk
Changes the orchestrator’s generated docker-compose.yml and mutates config.toml when Cloudflare env vars are set, with panics on misconfiguration/port collisions that could break deployments at runtime.

Overview
Adds opt-in Cloudflare Tunnel support to the orchestrator via CLOUDFLARE_TUNNEL_* env vars.

When enabled, the compose generator injects a cloudflared service (new pinned cloudflare/cloudflared image) and the orchestrator patches the ASB config.toml to include a /ws listen Multiaddr and advertise a /wss external address, with validation to prevent internal port collisions and user-facing setup instructions. Tests are updated to cover compose generation variants (tor on/off, cloudflared on/off), and libp2p is added as a dependency.

Reviewed by Cursor Bugbot for commit 01f5329. Bugbot is set up for automated code reviews on this repo. Configure here.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@binarybaron binarybaron changed the title feat(orchestrator): add optional Cloudflare Tunnel support feat(orchestrator): websocket Apr 10, 2026
…drop expose

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit ca00d0c. Configure here.

The previous test only generated the no-tor / no-cloudflared variant,
so YAML indentation regressions in either optional segment would have
slipped past `validate_compose`. Exercise all four combinations.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@binarybaron binarybaron merged commit a850814 into master Apr 10, 2026
61 of 70 checks passed
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