Repository navigation
fix(seed): support CA directories, tilde paths, and client certs in index lookups - #3793
Open
TranHoaiPhu wants to merge 3 commits into
Open
TranHoaiPhu wants to merge 3 commits into
TranHoaiPhu wants to merge 3 commits into
Conversation
TranHoaiPhu
marked this pull request as ready for review
December 5, 2026 13:50
The three new tests repeated the same setup, and the plain certificate directory case duplicated the tilde one; one parametrized test covers a CA directory, a CA file, a client certificate and both together.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🐛 The lookup that checks pip's index for yanked releases now reads pip's TLS settings the way pip does:
cert(orPIP_CERT) may name a directory of CA certificates, such as/etc/ssl/certs. It was always passed ascafile=, which fails on a directory.certandclient-certexpand a leading~, as pip's path options do.client-cert(orPIP_CLIENT_CERT) is now loaded, so indexes that require a client certificate work. An encrypted key fails at once instead of waiting for a passphrase on stdin.The paths come from pip's configuration files and
PIP_*variables and are only handed tossl. A missing, invalid or encrypted file raisesOSError, and the lookup reports the yank status as unknown, as it already does for other unreadable indexes.Checklist
ruff,flake8-lazy,simplint,codespell,docstrfmt,ty)docs/changelog/+index-cert-dir-and-client-cert.bugfix.rstfragment