-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Add preload support to Strict-Transport-Security #6321
Conversation
Pull request for github issue: |
@ankurpathak |
@OArtyomov Nope. I provided support for Java Config. |
0ebcfaa
to
7297d14
Compare
@OArtyomov I added xml support for it as well. |
2c97d48
to
975726c
Compare
@@ -142,7 +142,7 @@ public void sizeWhenReadingFilesystemThenIsCorrectNumberOfSchemaFiles() | |||
|
|||
String[] schemas = resource.getFile().getParentFile().list((dir, name) -> name.endsWith(".xsd")); | |||
|
|||
assertThat(schemas.length).isEqualTo(13) | |||
assertThat(schemas.length).isEqualTo(14) | |||
.withFailMessage("the count is equal to 12, if not then schemaDocument needs updating"); | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if the fail message needs updating?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rmartinus I think it must be updated to 14. As its reading 14 files and I have added xsd for Spring Security 5.2. I am waitnig for review from @rwinch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ankurpathak yeah, 14 makes sense to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rmartinus Thanks. Fail message changed to reflect 14.
975726c
to
abd2702
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @ankurpathak! Overall the code looks good. Can you please add documentation? I'd also like a link to how user's are able to add their site to be preloaded and the recommended process for adding the preload flag. The site https://hstspreload.org is a good start for external links.
I have already provided documentation for methods. Also added link to hstspreoad.org for additional details. |
6b8be5f
to
ff4a58d
Compare
@ankurpathak Sorry that I was not clear. I was speaking in reference to adding documentation at https://github.com/spring-projects/spring-security/blob/0656d2bc052358b2d8fc5fd1be2be682f3e8169e/docs/manual/src/docs/asciidoc/_includes/reactive/headers.adoc#webflux-headers-hsts |
1. Preload support in Servlet Security(XML & Java) 2. Preload support in Reactive Security 3. Test for preload support in Servlet Security 4. Test for preload support in Reactive Security Fixes: spring-projectsgh-6312
ff4a58d
to
3fcc95d
Compare
Documention done for both servlet and reactive part both in headers.adoc file. |
Thanks @ankurpathak! This is now merged into master |
Fixes: gh-6312