8000 chore(dependencies): upgrades to spring-boot 2 and spring-security 5 by cfieber · Pull Request #794 · spinnaker/gate · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 20 commits into from
May 10, 2019

Conversation

cfieber
Copy link
Contributor
@cfieber cfieber commented May 9, 2019

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.

@cfieber cfieber requested review from dibyom and robzienert May 9, 2019 21:31
@spinnakerbot
Copy link
Contributor

The following commits need their title changed:

  • 9f2b383: Merge remote-tracking branch 'upstream/master' into boot2

  • c2213cd: Merge remote-tracking branch 'upstream/master' into boot2

  • 8a8cd05: Merge remote-tracking branch 'upstream/master' into boot2

  • e33b4b9: Merge remote-tracking branch 'upstream/master' into boot2

  • 72a43d4: Merge remote-tracking branch 'upstream/master' into boot2

  • 93197b9: Merge remote-tracking branch 'upstream/master' into boot2

Please format your commit title into the form:

<type>(<scope>): <subject>, e.g. fix(kubernetes): address NPE in status check

This allows us to easily generate changelogs & determine semantic version numbers when cutting releases. You can read more about commit conventions here.

@emjburns
Copy link
Contributor
emjburns commented May 9, 2019

LGTM!

@cfieber cfieber merged commit 70024a3 into master May 10, 2019
@cfieber cfieber deleted the boot2 branch May 10, 2019 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0