feat(ssh): add ssh/scp/sftp builtins with russh transport#945
Open
feat(ssh): add ssh/scp/sftp builtins with russh transport#945
Conversation
e1169ff to
2c5af74
Compare
2c5af74 to
362d0ac
Compare
- SSH support as opt-in feature (ssh), following git/http_client pattern - SshHandler trait for pluggable transport, default RusshHandler (russh 0.52) - SshAllowlist with glob patterns and port restrictions (default-deny) - SshConfig builder: timeouts, response limits, session limits, auth - ssh builtin: remote exec, heredoc, shell sessions (ssh supabase.sh) - scp builtin: upload/download between VFS and remote hosts - sftp builtin: non-interactive put/get/ls via heredoc/pipe - Auth: none (public services), pubkey, or password - Shell injection fix (TM-SSH-008): remote paths are shell-escaped - Example: ssh supabase.sh — no credentials needed - 24 mock integration tests + 2 real connection tests - Spec 015, SSH rustdoc guide, cargo-vet exemptions, cargo-audit ignore
362d0ac to
271ee72
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.
Summary
ssh), following the same pattern asgitandhttp_clientSshHandlertrait for pluggable transport, defaultRusshHandlerbacked by russh 0.52SshAllowlistwith glob patterns (*.supabase.co) and port restrictions (default-deny)SshConfigbuilder: timeouts, response limits, session limits, default user/key/passwordsshbuiltin: remote command exec, heredoc, shell sessions (ssh supabase.sh)scpbuiltin: upload/download between VFS and remote hostssftpbuiltin: non-interactive put/get/ls via heredoc/pipessh supabase.sh— no credentials neededTest plan
ssh supabase.shconnect + allowlist rejection--features sshcargo fmt --checkcleancargo clippy --features ssh -- -D warningsclean