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

Convert any remaining mixed content (http/https) to prepare for Chrome change #6391

Closed
jywarren opened this issue Oct 4, 2019 · 17 comments · Fixed by #6557, #6558, #6559, #6560 or #6561
Closed

Convert any remaining mixed content (http/https) to prepare for Chrome change #6391

jywarren opened this issue Oct 4, 2019 · 17 comments · Fixed by #6557, #6558, #6559, #6560 or #6561
Labels
feature explains that the issue is to add a new feature fto-candidate issues which are meant to be solved by first timers but aren't well-formatted yet help wanted requires help by anyone willing to contribute

Comments

@jywarren
Copy link
Member

jywarren commented Oct 4, 2019

Chrome will soon start blocking any http content loaded from an https page - not just scripts and iframes, but images, etc.

https://www.bleepingcomputer.com/news/google/google-chrome-to-gradually-start-blocking-mixed-content-by-default/

We did this for iframes and scripts a while back but we should plan to scan for any http:// in our codebase and fix it! It could make for good first timer issues, too. The standard GitHub search is not bad for finding things like this, so please paste in code links in the comments as you find them.

Then, we'll have to develop a script to do this for all site database content as well. That'll be harder.

Any help appreciated!

@jywarren jywarren added help wanted requires help by anyone willing to contribute fto-candidate issues which are meant to be solved by first timers but aren't well-formatted yet feature explains that the issue is to add a new feature labels Oct 4, 2019
@deboragaleano
Copy link

Could I claim this issue? Thanks!

@deboragaleano
Copy link

Hi @jywarren. I just did a standard GitHub search and it gives me 78 code results, see below:

Screen Shot 2019-10-05 at 11 36 40

Here are some examples of code links that I found (there are more, of course!):

https://github.com/publiclab/plots2/blob/7c9d0637170ec8d39be8f773c6761a225ce7cf87/static/index.html

https://github.com/publiclab/plots2/blob/5c0d96274bd0be15feba69d8f30093082402ace5/public/422.html

https://github.com/publiclab/plots2/blob/5c0d96274bd0be15feba69d8f30093082402ace5/public/404.html

However, I'm not so sure how to go about converting or developing a script to fix all these links.

@nstjean
Copy link
Contributor

nstjean commented Oct 10, 2019

@deboragaleano Can you do a replace -> replace all in your text editor program? I know VSCode has that option.

@deboragaleano
Copy link

Hi @nstjean, yes sure, thanks for your message. I use VSCode so I'll try to a replace :)

@IvetaHron
Copy link
Contributor

Hi @deboragaleano, do you need any help with this issue?

@deboragaleano
Copy link

Hi @IvetaHron, I've been having issues with my computer so this may take a while. If you want to go ahead, please do ;)
Thanks!

@IvetaHron
Copy link
Contributor

Hi @deboragaleano, thank you. I will start to work on it tomorrow. I will keep you posted.

@SidharthBansal
Copy link
Member

Thanks for your PR.
I will review it in a minute

@SidharthBansal
Copy link
Member

I think we are still left with some http.
@IvetaHron can you please help in creating the FTOs instead of opening PRs for Google Code In.
Thanks

@jywarren
Copy link
Member Author

jywarren commented Oct 31, 2019 via email

@IvetaHron
Copy link
Contributor

Hi @SidharthBansal, @jywarren thank you for reviewing my PRs. I have created new FTO issue - #6834 for GCI, but I could not add the GCI label to it. I will continue creating more new issues in coming days.

@SidharthBansal
Copy link
Member

SidharthBansal commented Nov 28, 2019 via email

@stale stale bot added the stale label Oct 7, 2020
@publiclab publiclab deleted a comment from stale bot Oct 8, 2020
@stale stale bot removed the stale label Oct 8, 2020
@Karska-dev
Copy link
Contributor

Hi! Can I work with this?

@noi5e
Copy link
Contributor

noi5e commented Oct 15, 2020

Hi, I just wanted to give a heads-up and say that I'm going to make some FTO issues out of this one...

There are still a few places in the codebase with http links. Some of them seem to be irrelevant to this issue. (Like, one of them seems to be a footer in an automated email from the server, and there are a few that are simply Ruby and JS commented code snippets.)

However there are a few I'm thinking would be good to update to https.

I was thinking I would make a single issue listing out multiple places in the app, so multiple first-timers can link and pull to just a single issue. (In the style of something like issue 8545). Should be done by end of day.

(Outreachy applicant here, and pretty new to Public Lab's codebase, so open to pointers!)

@jywarren
Copy link
Member Author

Just noting this is a great idea, and plenty of places to do this! For some cases, you can use // instead of https:// and it will just default to whatever the current page is using. But that won't work in, for example, an email template.

Anyways, this is awesome, thanks!!!

@ebarry
Copy link
Member

ebarry commented Oct 19, 2020

Thanks @noi5e ! Looks like your new issue got a lot of uptake with 5+ contributors writing code towards it, thank you for unblocking these contributions!
Once that issue is closed, let's be sure to come back here and close this one too :)

@jywarren
Copy link
Member Author

I just went through https://github.com/publiclab/plots2/search?q=http:// and didn't find any that look like an issue! Closing this! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature explains that the issue is to add a new feature fto-candidate issues which are meant to be solved by first timers but aren't well-formatted yet help wanted requires help by anyone willing to contribute
Projects
None yet
8 participants