-
Notifications
You must be signed in to change notification settings - Fork 6k
X509 Reactive Support #5038
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
Comments
Hey @rwinch, are there any updates on that issue? Is seems it was scheduler for 5.1 but I cannot find it there. WebFlux seems to be supporting that now https://jira.spring.io/browse/SPR-15964 |
@alek-sys Thanks for the nudge. We just haven't had time to add the support. Would you be interested in contributing this support? |
I'm happy to! If there is any guidance you'd like to provide it is much appreciated. Should it be just an implementation of |
Thanks! I think that it could be done by creating a |
@rwinch I followed the documentation for x509 auth for reactive applications(my app is a spring cloud gateway application) as mentioned here: However I noticed some weird behaviour, where even after creating a chain like this:
and setting the authenticationManager to accept certs with the common name I want:
it still defaults to http basic auth. Also since there is no debug logging in spring security for reactive apps( #5758), it is especially hard to debug inside PCF as the java buildpack takes the client cert from the go routers as a header and injects it into the keystore, and Spring Security just logs the GET/POST event but does not log any Let me know if you want this as a separate issue, I am pretty sure I am doing something wrong here as the implementation does make sense. |
@samhaque Please create a separate issue and provide a complete sample/directions to reproduce. |
Hey @samhaque, keep in mind mTLS via XFCC header on PCF is tricky. There are two important things to consider:
|
We have a isolated segment for mTLS, so it's not a HAproxy issue. Is it possible to review that PR so the certificate mapping issue can be fixed in the next release? |
I'm not sure. Feel free to comment on the PR to show your interest, but even when it is merged it'll take some time to update and release JBP. For now you can just bring this filter to your codebase, unitl JBP is updated. |
Closing this as a duplicate of the merged PR gh-6336 |
Summary
Now that Spring Framework provides X509 information, we should provide authentication mechanism using it. See https://jira.spring.io/browse/SPR-15964
The text was updated successfully, but these errors were encountered: