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
Copy file name to clipboardExpand all lines: web-sidecar-common/README.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,3 +75,10 @@ It's main use-case is to prevent the requests from reaching the main application
75
75
### Error page compatibility
76
76
77
77
Ensure that registered Web-Server error pages are accessible.
78
+
79
+
### HTTP Security
80
+
81
+
Controls how Security Matchers are applied to Sidecars.
82
+
83
+
By default, it ALWAYS uses `PathPatternRequestMatcher` instead of the internally used `MvcRequestMatcher (deprecated)` (or `AntPathRequestMatcher` if MVC is not present) when calling `HTTPSecurity#securityMatcher(String...)`.
84
+
This prevents unexpected bugs that can occur when a url mapping (e.g. `/2025/*`) is registered for a servlet, which can result in unwanted paths being picked up (e.g. `/2025/actuator`).
Copy file name to clipboardExpand all lines: web/README.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,3 +31,13 @@ public MainLayout {
31
31
}
32
32
}
33
33
```
34
+
35
+
### HSTS
36
+
37
+
Configures HSTS, automatically picked up by sidecars for configuration.
38
+
39
+
Spring Boot has HSTS <ahref="https://docs.spring.io/spring-security/reference/features/exploits/headers.html#headers-hsts">enabled by default</a> which means that it always checks if a request is secure or not. If the request is determined to be secure it injects an HSTS header. This is unnecessary as HSTS is nearly always handled by the reverse proxy upstream that also handles certificates.
40
+
41
+
The default implementation therefore disables HSTS when
0 commit comments