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

vcs: fix parsing of basic auth http(s) credentials #791

Merged
merged 3 commits into from
Nov 23, 2024

Conversation

abn
Copy link
Member

@abn abn commented Nov 21, 2024

Poetry today does not correctly handle poetry add 'git+https://username:[email protected]/user/repo.git'. While we do not recommend sensitive values to be persisted in pyptoject.toml, poetry.lock or in any other locations, this is the case today when the values are manually put in the pyproject.toml.

Eventually, we need to figure out a way to parse the credentials and store it into the password manager and not persist it in any files that are distributed. That is largely a change in Poetry and not in core. However, there are aspects of this that should be handled here. I will follow up with another PR to handle env var credentials as specified in PEP610.

I have also removed some unused code.

Closes: #536

@abn abn marked this pull request as ready for review November 21, 2024 16:03
@abn abn requested a review from a team November 21, 2024 16:03
@Secrus
Copy link
Member

Secrus commented Nov 22, 2024

How does this work with #536? Is it a replacement for that PR?

@abn
Copy link
Member Author

abn commented Nov 22, 2024

Closes: #536

@radoering radoering merged commit cc87b3e into python-poetry:main Nov 23, 2024
21 checks passed
@abn abn deleted the git-basic-auth branch November 23, 2024 14:38
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.

3 participants