infinitesunrise / carsinbikelanes

A browsable geographic database for crowdsourced traffic violation reporting
GNU General Public License v3.0
63 stars 18 forks source link

Use HTTPS (and HSTS) on carsinbikelanes.nyc #20

Open paulschreiber opened 8 years ago

paulschreiber commented 8 years ago

HTTPS

mattkime commented 8 years ago

@infinitesunrise i think you'd need to drive this since you own the site. let me know if you'd like some help.

infinitesunrise commented 8 years ago

Definitely want to support HTTPS, just don't have the know-how yet / haven't gotten around to it. Received #30 today with the same goal in mind that removes the 'http:' from all hard-coded URLs, will likely merge it in tonight. Not sure if that alone makes the site https-ready (I actually hadn't been aware that it didn't fully support https until this issue).

mattkime commented 8 years ago

@infinitesunrise its a few trivial code changes like that if you already have a cert installed.

mattkime commented 8 years ago

this would be a good addition - https://help.dreamhost.com/hc/en-us/articles/215747758-How-do-I-force-my-site-to-load-securely-with-an-htaccess-file-

otherwise you're requiring people to type in https://

paulschreiber commented 8 years ago

I'm happy to help on the server/configuration/admin side. Email me if you'd like.

paulschreiber commented 8 years ago

The fixes in #30 are wrong. You should no longer use them http://www.paulirish.com/2010/the-protocol-relative-url/

Use https for all assets, even when your site isn't yet https.

infinitesunrise commented 8 years ago

Haha go figure. I'll switch the links over to https when I have some time this week. I have a few domains with certs installed that I can then test it out on (carsinbikelanes.nyc also has a Let's Encrypt cert installed). Any other https considerations I should keep in mind, besides link URLS?

paulschreiber commented 8 years ago

Look out for (and fix) mixed-content warnings once it's up and running. Be sure you have the 301 redirect (on http connections) and Strict-Transport-Security (on https connections). Once it's working, submit to https://hstspreload.appspot.com/.

infinitesunrise commented 8 years ago

Great! Thank you!