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

I want SSL only without HSTS #66

Open
ianeiloart opened this issue Jun 27, 2017 · 2 comments
Open

I want SSL only without HSTS #66

ianeiloart opened this issue Jun 27, 2017 · 2 comments
Labels

Comments

@ianeiloart
Copy link

I want a back-out path from ssl-only. Currently, if I deploy SSL only HSTS headers get issued, which mean I have no way to back out if I have problems with certificate renewal or spot a problem with the way the SSL site renders

So, maybe I could make a file
config/ssl-only-no-sts
to get ssl throughout the site, and when I'm confident that I can commit to this configuration, then deploy STS.

@patch0
Copy link
Contributor

patch0 commented Jul 10, 2017

That can be fixed by setting the header to zero in the apache config snippet.

So in /etc/apache2/sites-enabled/my-brilliant-site.com.conf change

Header always set Strict-Transport-Security "max-age=15768000"

to

Header always set Strict-Transport-Security "max-age=0"

and reload apache.

service apache2 reload

This will inform the clients that they should stop regarding the site as one that uses HSTS.

@patch0 patch0 closed this as completed Jul 10, 2017
@patch0 patch0 added the wontfix label Jul 10, 2017
@jamielinux
Copy link
Contributor

jamielinux commented Jun 18, 2018

So, best practice for enabling SSL for a website (regardless of Symbiosis or not) is:

  1. Run SSL and non-SSL side-by-side.
  2. Force redirect from non-SSL to SSL.
  3. Enable HSTS with a long max age (eg, 6 months).

Symbiosis compresses (2) and (3) into one step. This isn't ideal; if you've got problems with SSL and need to go back to non-SSL, the HSTS header makes this kind of hard. Visitors coming back won't be able to access the non-SSL site unless you change the template to specify max-age=0. (Changing templates is something we don't want most Symbiosis customers to have to worry about. Also HSTS is an area of lots of confusion.)

Patrick's suggestion is to have the Symbiosis SSL vhost template publish the max-age=0 HSTS header by default when ssl-only is off. This solves the problem nicely. MR to follow.

@jamielinux jamielinux reopened this Jun 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants