You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can mitigate this risk by setting a short 'max-age' or by not including the subdomain option, since both are required for preload listing. But if anyone ever got caught, it would take them many months and a lot of effort to get it fixed.
The preload option is a special flag only needed for a short time while you are registering a domain for preload. After that you can remove it, since you are now preloaded forever. I don't think this should be the default, and if it is needed, it should be separate option to add it.
Is that reasonable? Can we just remove preload? Or do people need it.
(I think HSTS should ideally be per Ingress, since one size doesn't fit all, for all the domains that might go to a particular Ingress controller. But that is a bigger change, to add annotation support for that.)
The text was updated successfully, but these errors were encountered:
whereisaaron
changed the title
HSTS feature always adds 'preload', creates risk of domain sabotage
[nginx] HSTS feature always adds 'preload', creates risk of domain sabotage
Mar 18, 2017
If the HSTS feature is enabled, the current template always adds
preload
to theStrict-Transport-Security
header. There is no way to disable it.https://github.com/kubernetes/ingress/blob/master/controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl#L224
Having
preload
there enables someone to maliciously submit your domain for browser pre-loading and prevent HTTP working for your domain for all time.You can mitigate this risk by setting a short 'max-age' or by not including the subdomain option, since both are required for preload listing. But if anyone ever got caught, it would take them many months and a lot of effort to get it fixed.
The
preload
option is a special flag only needed for a short time while you are registering a domain for preload. After that you can remove it, since you are now preloaded forever. I don't think this should be the default, and if it is needed, it should be separate option to add it.Is that reasonable? Can we just remove
preload
? Or do people need it.(I think HSTS should ideally be per Ingress, since one size doesn't fit all, for all the domains that might go to a particular Ingress controller. But that is a bigger change, to add annotation support for that.)
The text was updated successfully, but these errors were encountered: