-
Notifications
You must be signed in to change notification settings - Fork 741
chore(dependencies): upgrades to spring-boot 2 and spring-security 5 #794
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
Conversation
WIP - this compiles but many tests are broken
Reworks authentication using spring security 5.
fixes excess logging from AuthenticatedRequest updates
The following commits need their title changed:
Please format your commit title into the form:
This allows us to easily generate changelogs & determine semantic version numbers when cutting releases. You can read more about commit conventions here. |
LGTM! |
Now uses kork BOM for dependency management.
The most significant change in here is that with Spring-Security 5 each WebSecurityConfigurerAdapter creates its own filter chain, and the first (by
@Order
) that matches a request will handle that request.In kork we moved the couple of WebSecurityConfigurerAdapters to high precidence, and restricted them to only match requests to the relevant paths (/health, /metrics).
In gate we support one type of SSO / user facing auth enabled, as well as x509.
The WebSecurityConfigurerAdapter for x509 is set to match any request but at a lower-than-default precidence (2000) while the other WebSecurityConfigurerAdapters remain at order 1000 and install a request matcher that checks whether there are multiple ports configured in the web server. If so, it will only match requests where the localPort equals the server.port allowing x509 auth to handle any other API ports that are configured.