Conversation
Sandboxes have no dialable address: the daemon stops them when idle and owns the data plane. The gateway is the SSH path. A caller connects with the per-host key and the host name as the username; the gateway opens an sbx exec session, which wakes a stopped sandbox and keeps it awake while connected. A shell and command execution only.
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.
Part of #14 (M1 + M2).
Summary
Sandboxes have no dialable address: the daemon stops them when idle and owns the data plane. The gateway gives their hosts a normal SSH path.
The gateway authenticates the key against the host's stored public key, requires the username to name the same host, and opens an
sbx execsession. A stopped sandbox wakes on connect (~6 s) and stays awake while connected. A shell and command execution only; SFTP, scp, and port forwarding are refused.Changes
src/gateway/: the asyncssh server,python -m gateway.server.docker-sbxdialssbx exec, with a local PTY pair when the caller requests a terminal, and a separate error stream in pipe mode.0003:hosts.public_keystores the public half of the per-host keypair.known_hostspins the gateway's host key.docs/deploy.md: gateway section and settings.Verification
DEFAULT_HOST_PROVIDER=docker-sbx): 9 passed, 1 skipped in both modes