Skip to content

feat: enroll SSH hosts as machines without a manual installer - #3667

Closed
adhyaay-karnwal wants to merge 1 commit into
get-bb:mainfrom
adhyaay-karnwal:feat/ssh-sandbox-machine-provider
Closed

adhyaay-karnwal wants to merge 1 commit into
get-bb:mainfrom
adhyaay-karnwal:feat/ssh-sandbox-machine-provider

Conversation

@adhyaay-karnwal

Copy link
Copy Markdown

Human comments

What was wrong

Remote sandboxes that already speak SSH (Daytona, E2B, a VM) could only join BB through Manual machine setup: SSH in, paste the installer, wait. Modal proves core bootstrap-over-an-executor, but there was no shared SSH transport, so every vendor had to reinvent enrollment. See #3666.

What changed

  • New official plugin environment-ssh-sandbox (ssh-sandbox machine provider + project-checkout composition).
  • MachineExecutor over ssh: destination/port inputs, optional server-local identityFile, host-key policy, private stdin for the bootstrap bundle.
  • Preflight checks node/npm/curl before core experimental_machines.bootstrap.
  • CLI/RPC: bb ssh-sandbox probe --destination user@host [--port N] [--json].
  • Removing the BB machine revokes access and does not destroy the remote host.
  • Docs/skills: CLI guide, configuration, bb-guide machines/plugins, plugin skill.

No HOST_DAEMON_PROTOCOL_VERSION change. No new public Plugin SDK members.

How you verified

  • pnpm exec turbo run test typecheck lint --filter=bb-plugin-environment-ssh-sandbox — 21 tests, typecheck, oxlint clean.
  • pnpm exec vitest run --config apps/server/vitest.config.ts test/services/plugins/official-plugins.test.ts test/services/plugins/builtin-plugins.test.ts test/services/plugins/builtin-registry.test.ts test/services/plugin-catalog/bb-official-generator.test.ts — 50 tests.
  • builtin-server-artifacts.test.ts inlined the SSH plugin server entry (other provider-plugin cases in that file failed in this checkout because the SDK dist was not fully built; those are unrelated).

I did not enroll a live Daytona/E2B box in this environment.

Fixes #3666

AGENT GENERATED

Add an official SSH sandbox plugin that bootstraps any SSH-reachable
host through core machine enrollment, so Daytona, E2B, and similar
boxes do not require logging in to run the installer by hand.

Fixes get-bb#3666
@github-actions

Copy link
Copy Markdown
Contributor

Thanks @adhyaay-karnwal for the PR. This repo needs approval before a PR. Join the #contributors channel in Discord (https://discord.gg/kvBU6tJhcJ) and explain what you want to open a PR for and why. A maintainer then adds you to the allow list. This PR now closes on its own. Reopen it or open a new one after approval.

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.

feat: enroll SSH sandboxes without a manual installer

1 participant