certbot/certbot-apache
Joona Hoikkala 3877af6619 Gradually increasing HSTS max-age (#5912)
This PR adds the functionality to enhance Apache configuration to include HTTP Strict Transport Security header with a low initial max-age value.

The max-age value will get increased on every (scheduled) run of certbot renew regardless of the certificate actually getting renewed, if the last increase took place longer than ten hours ago. The increase steps are visible in constants.AUTOHSTS_STEPS.

Upon the first actual renewal after reaching the maximum increase step, the max-age value will be made "permanent" and will get value of one year.

To achieve accurate VirtualHost discovery on subsequent runs, a comment with unique id string will be added to each enhanced VirtualHost.

* AutoHSTS code rebased on master

* Fixes to match the changes in master

* Make linter happy with metaclass registration

* Address small review comments

* Use new enhancement interfaces

* New style enhancement changes

* Do not allow --hsts and --auto-hsts simultaneuously

* MyPy annotation fixes and added test

* Change oldest requrements to point to local certbot core version

* Enable new style enhancements for run and install verbs

* Test refactor

* New test class for main.install tests

* Move a test to a correct test class
2018-06-21 07:27:19 -07:00
..
certbot_apache Gradually increasing HSTS max-age (#5912) 2018-06-21 07:27:19 -07:00
docs added new docs links 2016-05-04 17:03:52 -07:00
LICENSE.txt s/letsencrypt/certbot letsencrypt-apache 2016-04-13 16:30:57 -07:00
local-oldest-requirements.txt Gradually increasing HSTS max-age (#5912) 2018-06-21 07:27:19 -07:00
MANIFEST.in s/letsencrypt/certbot letsencrypt-apache 2016-04-13 16:30:57 -07:00
README.rst s/Let's Encrypt/Certbot certbot-apache 2016-04-13 16:36:53 -07:00
readthedocs.org.requirements.txt s/letsencrypt/certbot letsencrypt-apache 2016-04-13 16:30:57 -07:00
setup.cfg Tell the world we're Python 3 compatible (#4568) 2017-04-28 16:06:45 -07:00
setup.py Gradually increasing HSTS max-age (#5912) 2018-06-21 07:27:19 -07:00

Apache plugin for Certbot