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

--emit-index-annotation should redact usernames and passwords in index URL #3106

Closed
nicodemus26 opened this issue Apr 17, 2024 · 3 comments · Fixed by #3112
Closed

--emit-index-annotation should redact usernames and passwords in index URL #3106

nicodemus26 opened this issue Apr 17, 2024 · 3 comments · Fixed by #3112
Labels
bug Something isn't working help wanted Contribution especially encouraged

Comments

@nicodemus26
Copy link

nicodemus26 commented Apr 17, 2024

e.g.

# from https://aws:asupersecretpasswordorauthtoken@my-account-123.d.codeartifact.us-west-2.amazonaws.com/pypi/my-private-repo/simple

->

# from https://my-account-123.d.codeartifact.us-west-2.amazonaws.com/pypi/my-private-repo/simple
@charliermarsh charliermarsh added the bug Something isn't working label Apr 17, 2024
@charliermarsh
Copy link
Member

Makes sense!

@charliermarsh charliermarsh added the help wanted Contribution especially encouraged label Apr 17, 2024
@zanieb
Copy link
Member

zanieb commented Apr 17, 2024

See also #1714

@zanieb
Copy link
Member

zanieb commented Apr 17, 2024

Something like...

let _ = url.set_password(Some("****"));

@nicodemus26 nicodemus26 changed the title --emit-index-annotation should redact passwords in index URL --emit-index-annotation should redact usernames and passwords in index URL Apr 17, 2024
charliermarsh pushed a commit that referenced this issue Apr 18, 2024
## Summary

resolves #3106

## Test Plan

added a simple test where the password provided in `UV_INDEX_URL` is
hidden in the output as expected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Contribution especially encouraged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants