-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Security cleanup #2475
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
Security cleanup #2475
Conversation
Looks like both commits in this PR have been merged already. |
This actually broke the ability to not use the default in memory auth. The change on this line from configure to init (e42fa79#diff-9fddf220548c41d170820f76c509875aR137). This change causes auth.isConfigured to always be false even when there is another configuration. This is due to the AuthenticationManagerBuilder.performBuild not being called until init is complete. When the method was configure, the user defined security would be used and configured prior. |
I'm still using custom user details in a bunch of projects that seem to work. Can you open a new issue, please, anyway, and attach a sample project if possible? The spring-boit-issues project is a good place to send sample projects as pull requests. |
Yes, will try to. Look at your startup in your projects. You will see that it now shows: org.springframework.boot.autoconfigure.security.AuthenticationManagerConfiguration#147 - Using default security password: ad3ece3e-f4bd-4f3f-b71c-403bf510260d |
@mikemosseri Thanks for the report. This sounds like a duplicate of #2567 EDIT I was able to reproduce it so that the logging occurred, but it appears that both the custom authentication and the generated credentials work. Can you please follow up on that ticket? |
@rwinch Yes, it is thanks. I couldn't find something similar earlier. |
@michaelbrand Did you see my EDIT? Specifically can you follow up on that ticket as to if both custom and generated credentials work? If so, I can push my fixes and perhaps you can verify against the latest snapshot. Thanks! |
My one concern is this seems like the changes I made may impact #1556 but I did not see any tests for that issue, so I'm not sure if I broke anything there.
cc @dsyer