D1: lutra-deploy crate: SFTP, FTP/FTPS and folder transports, keychain secrets, known hosts, path mappings

Pure Rust (D27): russh + russh-sftp with ring, suppaftp with rustls/ring,
keyring (Windows Credential Manager, macOS Keychain). Lutra's own
known-hosts file, refuse on mismatch. In-process SFTP and FTP test
servers behind the testserver feature.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
danny 2026-11-02 19:09:17 +01:00
parent 33a7185d75
commit 0644b044f2
16 changed files with 5250 additions and 13 deletions

43
crates/deploy/Cargo.toml Normal file
View file

@ -0,0 +1,43 @@
[package]
name = "lutra-deploy"
description = "Deployment: upload and download over SFTP, FTP, FTPS or to a folder, with credentials in the OS keychain"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
authors.workspace = true
publish.workspace = true
[package.metadata.lutra]
layer = 3
[dependencies]
keyring = { version = "3", default-features = false, features = ["windows-native", "apple-native"] }
russh = { version = "0.63", default-features = false, features = ["ring", "rsa", "flate2"] }
russh-sftp = "3"
rustls = { version = "0.23", default-features = false, features = ["ring", "std", "tls12"] }
rustls-native-certs = "0.8"
serde = { version = "1.0.229", features = ["derive"] }
serde_json = "1.0.154"
suppaftp = { version = "12", default-features = false, features = ["rustls-ring"] }
thiserror = "2.0.21"
tokio = { version = "1", features = ["rt", "net", "io-util", "sync", "time", "macros"] }
lutra-vfs.workspace = true
[lints]
workspace = true
[dev-dependencies]
proptest.workspace = true
tempfile.workspace = true
[features]
testserver = []
[[test]]
name = "transfer"
required-features = ["testserver"]
[[example]]
name = "testserver"
required-features = ["testserver"]