Repository navigation
DOC Switch insecure http links to https - #32969
Conversation
StefanieSenger
left a comment
There was a problem hiding this comment.
Hello @prakritim01, thanks for your PR, that I find overall useful.
I in total count 442 http: in the whole project (compared to 4700 https:) and I would be happy to replace them all in this PR.
But how do we deal with those pages (like the institute website from my comment) that don't use https? There must be quite a few in the docs.
I would slightly tend to try https on them as well and let user's browser's point out potential risks. Deciding this requires the opinion of another project member.
| The `NeuroDebian <https://neuro.debian.net>`_ project providing `Debian | ||
| <https://www.debian.org/>`_ packaging and contributions is supported by | ||
| `Dr. James V. Haxby <http://haxbylab.dartmouth.edu/>`_ (`Dartmouth | ||
| `Dr. James V. Haxby <https://haxbylab.dartmouth.edu/>`_ (`Dartmouth |
There was a problem hiding this comment.
It seems this site doesn't have a secure HTTPS configuration. At least firefox warns me about it when I try to open this page.
I am not sure what to do with cases like these. Leave them http or make the security risk explicit by trying to use https?
There was a problem hiding this comment.
Thanks for the review! I just pushed a commit to revert the Dartmouth link to http since it doesn't support HTTPS yet.
Regarding the other 400+ links: I am happy to help with those! Would you prefer I try to update them all in this PR, or should we merge this small fix first and handle the bulk update in a separate PR?
There was a problem hiding this comment.
Thanks. I know it is a lot of dull work, but ideally, you would check them all before adding the s and point out any problems that arise. There might be invalid links, websites that have moved and not redirected, etc. You can do it all in this PR.
Once we know the special cases (doesn't support https, has moved, doesn't exist anymore), you can sum it up and suggest what to do with these.
|
🚀 Nice! Thanks for the summary. That is a surprisingly high number of failures (only 8% of requests succeeded) and maybe that is the reason why we hadn't changed these in the past. I'm still not sure how to deal with these cases. Have you searched through the issues if we had discussed this in the past? |
|
I noticed the The error log shows a Since I only modified .rst files in |
Your're right, it is probably related to #32961. |
|
I searched the issues and found that link maintenance is treated as a periodic cleanup task. For example, issues #23631 (2022), #10334 (2017), and #7000 (2016) were all opened to fix broken links and then closed once the "low hanging fruit" was handled. Since ~92% of the remaining http links in my report are failing securely (403/404/SSL errors), I propose we follow that same pattern:
Does that sound like a good plan? |
StefanieSenger
left a comment
There was a problem hiding this comment.
That's pretty fine, thanks for your efforts, @prakritim01!
I think this is one of the uncritical documentation improvements where one maintainer review is enough and I will merge.
Thanks for the review! Happy to see this merged. |
|
Seems I cannot merge while the |
LGTM. The 404 could be manually investigated in a dedicated PR to manually look for alternative resources to link to if some resources have moved to a new URL. |
|
I tried to push 91dfef0 to get a green CI by skipping the doc build, but apparently our doc building CI fails even in that case.
I suppose we would need to find a way to conditionally skip the |
Thanks @ogrisel for the review and for trying to fix the CI! I agree with the plan: I will leave this PR as-is (containing only the valid HTTPS upgrades) and we can handle the 404 investigation in a future PR. I'll stand by while you handle the CI/merge process. Thanks again! |
|
Figshare seems to be back up and I've updated main to re-run the CI (since the last commit skipped docs). |
ogrisel
left a comment
There was a problem hiding this comment.
One more underline fix. Otherwise LGTM.
betatim
left a comment
There was a problem hiding this comment.
I'm happy to have these changes.
In general/for the future though I am not sure if there is much benefit to converting everything to HTTPS. I think that not every single website you visit has to be HTTPS, in particular if you do not enter sensitive information on that website or where the path/query arguments do not contain sensitive information.
TL;DR: not against making these changes but I also think that we could do other things that have more impact.
|
Since internet browsers now always warn users when visiting an http URL, I think linking to https when possible should be considered a UX improvement: lower unnecessary cognitive load to people reading our doc. |
|
I am with Tim on this one, lofty new year resolution: let's try to be better at turning down PRs with too little impact 💪 🤞 😉.
Which browser are we talking about just curious? I tried a few (Firefox, Vivaldi, Chromium, Zen Browser) and didn't get any warning with a |
|
I thought it was the case with firefox, but maybe not... |
|
I think for Firefox you only see the warning when there is no https link and you have enabled HTTPS-Only mode (the default seems to be HTTPS-Only is disabled, but I personally have enabled it a while ago), see this for more details. |
Co-authored-by: Prakriti Manhar <[email protected]> Co-authored-by: Olivier Grisel <[email protected]> Co-authored-by: Lucy Liu <[email protected]>
Co-authored-by: Prakriti Manhar <[email protected]> Co-authored-by: Olivier Grisel <[email protected]> Co-authored-by: Lucy Liu <[email protected]>
I updated several insecure
httplinks tohttpsin the documentation.Files updated:
doc/about.rstdoc/developers/contributing.rstdoc/developers/performance.rst