Repository navigation
feat: enroll SSH hosts as machines without a manual installer - #3667
Closed
adhyaay-karnwal wants to merge 1 commit into
Closed
adhyaay-karnwal wants to merge 1 commit into
adhyaay-karnwal wants to merge 1 commit into
Conversation
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
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. |
3 tasks done
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.
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
environment-ssh-sandbox(ssh-sandboxmachine provider + project-checkout composition).MachineExecutoroverssh: destination/port inputs, optional server-localidentityFile, host-key policy, private stdin for the bootstrap bundle.experimental_machines.bootstrap.bb ssh-sandbox probe --destination user@host [--port N] [--json].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.tsinlined 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