-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
config: allow bool values for repo cert #5719
Conversation
Deploy preview for website ready! ✅ Preview Built with commit f7d3625. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM -- I especially like that PyPI is tamperproof the way you've added this, as well as the dataclass encapsulation of invariants/configuration.
Yeah. But couldn't think of a better way of grouping it. |
This change allows certificates.<repo>.cert configuration to accept boolean values in addition to certificate paths. This allows for repositories to skip TLS certificate validation for cases where self-signed certificats are used by package sources. In addition to the above, the certificate configuration handling has now been delegated to a dedicated dataclass. Co-authored-by: Celeborn2BeAlive <laurent.noel.c2ba@gmail.com> Co-authored-by: Maayan Bar <maayanbar13@gmail.com>
Still have error with version 1.2.0b2
|
This doesn't resolve the problem, because false is added as a string in auth.toml
It should be:
I suppose this command is the culprit. It's probably casting the command line argument to a string since it would have always been a string prior to this commit.
|
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. |
boolean values in addition to certificate paths. This allows for repositories to skip TLS certificate validation for cases where self-signed certificats are used by package sources.
In addition to the above, the certificate configuration handling has now been delegated to a dedicated dataclass.
Closes: #3676
Resolves: #1556