Auth not redacted in string representation of the requirement
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
Research direction
Start in packaging/requirements.py at the Requirement string representation around line 136, then review the linked pip issue for the reported credential exposure. Done means sensitive authentication data in a requirement URL is redacted from its string representation; verify the resulting representation does not reveal those credentials.
Written by the indexing model from the issue text.
Description
Hi there 😄
Inside the Requirement class, the url part of the requirement is added to the string repr without redacting any possible sensitive data.
https://github.com/pypa/packaging/blob/745bb0a763517a21422e74e936a24b043e8dc225/packaging/requirements.py#L136
In pip, there is an issue about this behaviour. Instead of fixing it in the vendored version of pip, we should fix probably fix it upstream instead.
Lemme know what you think 😃
- Dominant language
- Python
- Stars
- 751
- Forks
- 324
- Avg merge
- 12h 58m
- Merged PRs (30d)
- 3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from pypa/packaging
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
enhancement packaging.metadata
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100