-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Add ROLE_INFRASTRUCTURE to infrastructure beans #8407
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
Thanks for the report. I think there are two issues here. I don't believe these logs are directly related to beans you are creating not getting proxied. The logs are just informational since the configuration beans are not marked with ROLE_INFRASTRUCTURE. Can you update the sample to demonstrate how your beans are not being proxied properly? |
While trying to create a sample for demonstration, it turned out, that there was a misunderstanding. There actually weren't any proxying problems. Although the logs are informational, couldn't it happen, that at some time, proxying problems occur, because, as the logs say, some beans are not eligible for getting processed by all BeanPostProcessors? |
Only the |
Yes, I would be interested in that PR, but it could take some time, since I am quite busy at the moment. |
@Lyannic if you dont have time for this I could send a PR about it. (But I can keep searching for another issue if you want to work on this! :) ) |
@dadikovi If you are looking for a PR and are interested in this one, you can go for it. I am not calling dibs on it :) |
Okay, thank you! :) |
Added ROLE_INFRASTRUCTURE annotation for them. Closes spring-projectsgh-8407
Describe the bug
I get info logs during application startup, that a couple of Beans are not eligible for getting processed by all BeanPostProcessors.
I am using Spring Boot 2.2.6.RELEASE.
I thought, this was Spring Boot concerned, so I already created a ticket there but got sent over here. Link to the Spring Boot issue.
Since this leads to proxying problems, some method level security annotations are being ignored, which leads to unsecured endpoints at runtime. However I think that seeing this logs messages at application start is already a bug, since there shouldn't be any problems with BeanPostProcessors, because nothing custom is defined.
To Reproduce
Use
@EnableGloabeMethodSecurity
and have spring-data-jpa in the project. When you then start your web applications, you get the before mentioned log messages.Expected behavior
I expect none of the before mentioned log messages at application start.
Sample
I created this minimal, reproducible sample which basically consists of nothing, but the
@EnableGlobalMethodSecurity
annotation and the needed dependencies.The text was updated successfully, but these errors were encountered: