-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Private upstream #2
Comments
I can add a feature flag like BTW, the server end of |
Sure, a feature flag would be fine. I'm not familiar enough with rust binaries to know if cargo install supports feature flags, but I know cargo build does, which works well enough for my needs. And thanks for the heads up on crates-io-proxy not supporting TLS. I'm running it behind a reverse proxy (traefik) that takes care of the tls termination, and I'm assuming(?) the |
Can you please test that #3 indeed solves your issue? Build it with
|
Thanks @ravenexp ! I should be able to test it soon and let you know. |
Sorry the validation took longer than I expected. #3 did indeed solve my issue - It is now reading the system CAs as expected. Many thanks! |
Thanks, I'll then merge this PR and prepare a new minor version release soon. BTW, out of curiosity, does you private registry support the sparse index protocol or does it use the git index? |
We're actually right in the middle of a transition from git index to cargo's sparse protocol. The git index is just too heavy/slow. |
We have a private upstream server hosting index/crates that I'd like to use crates-io-proxy to cache locally.
Unfortunately it is tls protected using a private CA, which ureq fails at with "tls connection init failed: invalid peer certificate: UnknownIssuer".
A cursory examination shows crates-io-proxy is using ureq with webpki-root default which bakes in the CA certs into the binary. Is it possible to use rustls-native-certs instead as descibed at https://github.com/algesten/ureq#trusted-roots ? Not sure if there's a install feature flag I missed with crates-io-proxy.
The text was updated successfully, but these errors were encountered: