Attila Bukor has posted comments on this change. ( http://gerrit.cloudera.org:8080/18253 )
Change subject: [webserver] add HSTS header for HTTPS responses ...................................................................... Patch Set 2: Code-Review-1 (2 comments) http://gerrit.cloudera.org:8080/#/c/18253/2/src/kudu/server/webserver.cc File src/kudu/server/webserver.cc: http://gerrit.cloudera.org:8080/#/c/18253/2/src/kudu/server/webserver.cc@93 PS2, Line 93: 31536000 > nit: maybe 365 * 24 * 60 * 60 is also more easily verifiable? I don't know if this feature makes any sense for Kudu, but either way, I don't think it should be disabled by default, as it might break other web UIs on the same host. http://gerrit.cloudera.org:8080/#/c/18253/2/src/kudu/server/webserver.cc@694 PS2, Line 694: if (IsSecure() && FLAGS_webserver_hsts_max_age_seconds > 0) { HSTS specifies that a value of 0 effectively disables HSTS, so it should be treated as a valid value, and use -1 for not sending any HSTS header. -- To view, visit http://gerrit.cloudera.org:8080/18253 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: Id844b9588196b3d608765d0f16f5caec1c414d41 Gerrit-Change-Number: 18253 Gerrit-PatchSet: 2 Gerrit-Owner: Alexey Serbin <[email protected]> Gerrit-Reviewer: Abhishek Chennaka <[email protected]> Gerrit-Reviewer: Andrew Wong <[email protected]> Gerrit-Reviewer: Attila Bukor <[email protected]> Gerrit-Reviewer: Kudu Jenkins (120) Gerrit-Comment-Date: Fri, 18 Feb 2022 08:05:02 +0000 Gerrit-HasComments: Yes
