*Following up on an earlier thread 
here: https://groups.google.com/u/1/a/chromium.org/g/blink-dev/c/gGHOmFGEzQ0*

Contact emails: eric...@microsoft.com

Explainer: None

Specification: HSTS specification is at 
https://datatracker.ietf.org/doc/html/rfc6797; 
this feature proposes an improvement.

Summary

Strict-Transport-Security response headers can cause problems for localhost 
web servers because STS applies host-wide, across all ports. This causes 
compatibility problems for web developers testing locally as well as 
end-users who use software packages that commonly spin up localhost 
webservers for ephemeral reasons (e.g. communication of an auth token from 
a web login to a local software package). If one local listener sets 
Strict-Transport-Security on a localhost response, it will be applied to 
all subsequent localhost requests regardless of port. We resolve this 
problem by ignoring Strict-Transport-Security headers on responses from 
localhost URLs.

Blink component: Internals>Network>DomainSecurityPolicy 
<https://bugs.chromium.org/p/chromium/issues/list?q=component:Internals%3ENetwork%3EDomainSecurityPolicy>

TAG review: None

Risks

Interoperability and Compatibility

The expectation is that this will improve compatibility with services that 
run on localhost by avoiding unexpected interactions across unrelated 
packages. 

*Gecko*: Shipped/Shipping

*WebKit*: No signal

*Web developers*: Positive (
https://issues.chromium.org/issues?q=HSTS%20localhost) Web Developers who 
test their sites locally commonly report problems with 
Strict-Transport-Security headers applying unexpectedly across unrelated 
localhost services under tests.

*Other signals*:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that 
it has potentially high risk for Android WebView-based applications?

None


Debuggability

HSTS upgrades show in the F12 Network pane as "307 Internal Redirect." In 
the absence of such an upgrade, the 307 is not shown.

Will this feature be supported on all six Blink platforms (Windows, Mac, 
Linux, ChromeOS, Android, and Android WebView)? Yes.

Is this feature fully tested by web-platform-tests 
<https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md>
? No, HSTS is not tested by Web Platform tests. The change is tested by 
Chrome unit and browser tests.

Flag name on chrome://flags: None

Finch feature name: None

Non-finch justification: None

Requires code in //chrome? All of the functional changes are in /net/ but 
tests under /chrome/ require updates to use non 'localhost' test endpoints.

Tracking bug https://issues.chromium.org/issues/41251622; CL: 
https://chromium-review.googlesource.com/c/chromium/src/+/5923046  
<https://chromium-review.googlesource.com/c/chromium/src/+/5923046>

Estimated milestones
Shipping on desktop
132
Shipping on Android
132

Anticipated spec changes

Open questions about a feature may be a source of future web compat or 
interop issues. Please list open issues (e.g. links to known github issues 
in the project for the feature specification) whose resolution may 
introduce web compat/interop risk (e.g., changing to naming or structure of 
the API in a non-backward-compatible way).
None

Link to entry on the Chrome Platform Status: 
https://chromestatus.com/feature/5134293196865536?gate=5113092281991168

Links to previous Intent discussions: 
https://groups.google.com/u/1/a/chromium.org/g/blink-dev/c/gGHOmFGEzQ0


-- 
You received this message because you are subscribed to the Google Groups 
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to blink-dev+unsubscr...@chromium.org.
To view this discussion visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/8d6c447c-32ba-46af-b04e-828e69b38322n%40chromium.org.

Reply via email to