WhiteBoard Wednesday: HTTP Strict Transport Security
In this edition of Whiteboard Wednesday, we discuss the topic of HTTP Strict Transport Security (HSTS). This interconnected world is quickly moving toward encrypting everything, and it's nice to know some of the capabilities that are available today. This video highlights what HSTS is, how it can be used, and how you can implement it using the BIG-IP. Enjoy!
Related Resources:
Implementing HSTS using iRules
Update - Implementing HSTS in Policy:
ltm policy hsts_handling { controls { forwarding } requires { http tcp } rules { hsts_header_insert { actions { 0 { http-header response insert name Strict-Transport-Security value "max-age=31536000; includeSubDomains; preload" } } ordinal 2 } nonssl_redirect { actions { 0 { http-reply redirect location https://[HTTP::host][HTTP::uri] } } conditions { 0 { tcp port values { 80 } } } ordinal 1 } } strategy first-match }
- mcaplin_59639NimbostratusFor those of us on newer versions, would you be able to link to a devcentral article that demonstrates how to implement HSTS via LTM Policy?
- Will_NimbostratusI see there was no response. Is there a way to implement HSTS in policy as is stated in the video?
- JRahmAdminHi guys, updated the article above to include an example on how the policy might be configured. Note that preload and includeSubDomains are optional, the latter which can be detrimental to your implementation if not planned carefully.
- Will_NimbostratusJason, Many thanks for posting. I was able to create a policy, but this is a more elegant approach. Regards
- Will_NimbostratusAny idea why they did not include the preload option in the HTTP profile implementation on version 12.0?
- ltwagnonRet. Employee@Will: not sure why the preload option wasn't included in version 12.0. I talked to some guys here at F5 and they are putting in a request to have this option added in an upcoming release. Thanks!
- Rocky213NimbostratusIt was added to release 12.1. Thank you !
- ltwagnonRet. EmployeeThanks Rocky213!! Good to know!
- am_gliAltostratus
I'm running 12.1.2 HF1 and the "preload" setting is missing. Can't find anything in the release notes, that it was removed again... any ideas?
According to https://support.f5.com/csp/article/K40243113 it should be there...
- ltwagnonRet. Employee
@am.gli, thanks for the question. honestly, i'm not sure why it's not there in 12.1.2. I asked around and will post here if I find any definitive answers on the change. In the meantime, you can still use an iRule to accomplish the same effect as the checkbox in the HTTP profile. Thanks!