Open babinskiy opened 1 year ago
This is an issue with the git2-curl
crate, since it doesn't support authentication. I think it roughly needs to handle the authentication similar to handle_auth
where it would need to detect an unauthorized response and do all the callback stuff.
In the meantime, I would recommend using net.git-fetch-with-cli
.
Problem
In our current setup, we have a private registry hosted on cloudsmith.io, and we utilize git-credentials authorization to access the repository successfully. However, we have encountered a couple of issues that we need to address.
When we attempt to modify some Cargo parameters, the authorization process stops working.
Steps
or
cargo fetch
:Possible Solution(s)
There is a workaround - putting the authentication token in repo's URL, as described here: https://help.cloudsmith.io/docs/cargo-registry#registry-setup
However, it is important to note that this approach is insecure and may result in token leakage
Notes
I played with different parameters:
Version