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

net/http: http.Transport: support HSTS (Strict-Transport-Security) #10697

StalkR opened this issue May 5, 2015 · 1 comment


None yet
3 participants
Copy link

commented May 5, 2015


It doesn't seem that net/http's http.Transport supports HSTS (HTTP Strict-Transport-Security, Is it something we could add?

Initially, I'm thinking just the http->https upgrade bit and not certificate pins. Also, just dynamic mode and not static configuration like Chromium has.
That is: if we receive an HSTS header we remember it in the current http.Transport and upgrade any future http request to https, but terminating the program means we forget about it.


This comment has been minimized.

Copy link

commented May 5, 2015

This doesn't seem relevant to the net/http package because we don't receive raw user strings like in an Omnibar from Chrome or Firefox. We work in terms of complete URLs, so it's up to the calling application to do HSTS if they want.

Plus, any HSTS state should usually persist longer than the lifetime of a given Go process, so it necessarily involves writing state somewhere, which is outside the scope of the net/http package.

Tentatively closing this bug, unless I'm convinced otherwise.

/cc @agl for opinions, if any.

@bradfitz bradfitz closed this May 5, 2015

@golang golang locked and limited conversation to collaborators Jun 25, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.