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

Issue #3483 Add cert retrieval for requests #5320

Merged
merged 3 commits into from
Apr 14, 2022
Merged

Issue #3483 Add cert retrieval for requests #5320

merged 3 commits into from
Apr 14, 2022

Conversation

ITProKyle
Copy link
Contributor

@ITProKyle ITProKyle commented Mar 15, 2022

The authenticator.py code already retrieves credentials from the config for every request based on url matching.
This change makes the authenticator also retrieve certs from the config for each request based on url matching.

Also includes unit tests.

supersedes #3490 by rebasing to current master.

If accepted, I can also backport it to the 1.1 branch to ship this feature sooner than the 1.2 release as its a blocker for some users of private repositories.

Pull Request Check List

Resolves #3483

  • Added tests for changed code.
  • Updated documentation for changed code.

@ITProKyle ITProKyle changed the title Issue#3483Add cert retrieval for requests Issue#3483 Add cert retrieval for requests Mar 15, 2022
@ITProKyle ITProKyle changed the title Issue#3483 Add cert retrieval for requests Issue #3483 Add cert retrieval for requests Mar 15, 2022
@dusktreader
Copy link
Contributor

Thank you for this!

@finswimmer finswimmer requested a review from a team March 24, 2022 05:08
Copy link
Member

@radoering radoering left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some minor type hints quirks. Otherwise looks fine.

src/poetry/utils/authenticator.py Outdated Show resolved Hide resolved
src/poetry/utils/authenticator.py Outdated Show resolved Hide resolved
src/poetry/utils/authenticator.py Outdated Show resolved Hide resolved
dusktreader and others added 3 commits April 14, 2022 08:56
The authenticator.py code already retrieves credentials from the config
for every request based on url matching. This change makes the
authenticator also retrieve certs from the config for each request based
on url matching.

Also includes unit tests.

- Fixed style issues with black
- Fixed broken unit test
- Fixed broken unit test for windows
- Fixing path issue in unit tests for windows
- Fixed cert handling for pathlib paths
- Style change to make the linter happy
- Rebased and fixed type hint
- Fixed a style issue
- Applied updates from code review
- more revisions based on code review feedback
- Some revisions based on code review
- Applied code review suggestions and fixed unit tests
- Fixed broken code from rebase
- Applied fix for linting issue and improved test coverage
- Fixed issues with linting and type-checking
@ITProKyle
Copy link
Contributor Author

@radoering - your requested changes have been made. When you get a chance, would you please take another look at this. Thanks!

@radoering radoering merged commit 819d6d4 into python-poetry:master Apr 14, 2022
@kasteph kasteph mentioned this pull request May 30, 2022
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrading packages from private repositories fails using cert and client-cert
3 participants