Skip to content
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

strip user without password #13

Merged
merged 2 commits into from
Apr 5, 2023

Conversation

jakecoffman
Copy link
Member

@jakecoffman jakecoffman commented Mar 31, 2023

When specifying a Git dependency in certain ecosystems, using an SSH URL to GitHub like ssh://[email protected] will result in the Git-Shim creating https://[email protected] which is mostly harmless and technically correct, but since there's no password it's creating confusion in our downstream Proxy which won't inject credentials if it thinks there's already credentials on the request.

So this changes it to remove the user from the URL if there is no password.

main.go Outdated Show resolved Hide resolved
@jakecoffman jakecoffman merged commit af162fe into main Apr 5, 2023
@jakecoffman jakecoffman deleted the jakecoffman/strip-user-without-password branch April 5, 2023 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants