-
Notifications
You must be signed in to change notification settings - Fork 1.1k
INT-3663: Fix early BF access for Security Module #1406
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
|
Need some polishing, JavaDocs and Docs. |
|
@garyrussell , let me know if you are OK with the solution and I go ahead for docs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WARN: serialVersionUID
|
Otherwise LGTM |
JIRA: https://jira.spring.io/browse/INT-3663 Previously the `ChannelSecurityInterceptorBeanPostProcessor` was populated with direct `BeanDefinition`s for `ChannelSecurityInterceptor`s. It caused an `early access to BeanFactory`. The issue has been introduced by the `ChannelSecurityInterceptorFactoryBean` * Rework `SecurityIntegrationConfigurationInitializer` do not populate `BeanDefinition`s to the `ChannelSecurityInterceptorBeanPostProcessor`, but just `bean names` * Redesign `ChannelSecurityInterceptorBeanPostProcessor` to the `AbstractAutoProxyCreator` * Introduce `SecuredChannel` annotation to be used on the `@Bean` level for `MessageChannel` definition * Move `access policy` mapping to the `SecuredChannel` annotation
|
Pushed |
|
LGTM; still needs docs etc, though; right? |
|
Yeah... Sure! At least say that we did a deprecation and add a couple samples with JavaConfig |
|
Pushed documentation. |
|
Merged as b6cfd4f |
JIRA: https://jira.spring.io/browse/INT-3663
Previously the
ChannelSecurityInterceptorBeanPostProcessorwas populated with directBeanDefinitions forChannelSecurityInterceptors.It caused an
early access to BeanFactory.The issue has been introduced by the
ChannelSecurityInterceptorFactoryBeanSecurityIntegrationConfigurationInitializerdo not populateBeanDefinitions to theChannelSecurityInterceptorBeanPostProcessor, but justbean namesChannelSecurityInterceptorBeanPostProcessorto theAbstractAutoProxyCreatorSecuredChannelannotation to be used on the@Beanlevel forMessageChanneldefinitionaccess policymapping to theSecuredChannelannotation