frewsxcv / rust-crates-index

Rust library for retrieving and interacting with the crates.io index
https://docs.rs/crates-index/
Apache License 2.0
72 stars 37 forks source link

feat: Allow for fetching indexes from private registries via SSH key #106

Closed rohanku closed 1 year ago

rohanku commented 1 year ago

Currently, fetch only supports username and password plaintext credentials.

With this PR, if the ssh feature is enabled and an SSH_KEY credential is allowed, fetch attempts to retrieve a credential from ssh-agent.