-
Notifications
You must be signed in to change notification settings - Fork 79
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
First pass at adding HTTPS support to CPAN. #119
base: master
Are you sure you want to change the base?
Conversation
https support, and a having a default urllist pointing to an https site seems like a great thing to have. References: |
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.
Looks good to me on the parts I know about.
May want to consider adding LWP::Protocol::https as a new preferred-but-optional dependency? Wasn't sure of the best place to add that. |
Oh, sorry, I haven't been paying enough attention, not sure how it happened. Now I looked and I'm not happy when I see such a line in a patch:
Probably not tested? |
Hi, @andk! Thanks for the feedback and review. Let me: Do you think there should be a config setting to disable HTTPS? |
>>>> On Tue, 19 May 2020 09:34:03 -0700, "David E. Weekly" ***@***.***> said:
Hi, @andk! Thanks for the feedback and review.
Let me:
A) Fix the typo.
B) Add more tests.
C) Handle if HTTPS is not available gracefully.
Thank you, I'm looking forward to another PR.
Do you think there should be a config setting to disable HTTPS?
I think this is most probably a good way forward.
Thanks again and good luck,
--
andreas
|
@andk Before proceeding much further, I thought it would be helpful to articulate the vision and plan here to get your input on the direction: https://docs.google.com/document/d/1DRkiCJhJu4RDI0u_JppBpFa0djouskxEyNHax912U_w/edit?usp=sharing |
Thanks a lot. I think I'm through with commenting now. I have added 5 comment boxes |
@dweekly FYI, some sections of that document are now resolved by nature of the CPAN mirror network now being redundant - see https://log.perl.org/2021/02/cpan-mirror-list-changes.html |
@Grinnz - thanks for flagging. I think it's fair that dealing with a diversity of CPAN endpoints will now be moot with the deprecation of the MIRRORED.BY list, but CPAN should still ensure that the connection to www.cpan.org is secure and authenticated (namely, using >=TLS 1.2 with hostname verification to ensure you're talking to the real CPAN.org) in order to close off a range of MITM attacks on Perl users and services. |
To address #118
Adds HTTPS to MIRRORED.BY and enforces cert checks with LWP using Mozilla::CA.