Skip to content

Conversation

@artembilan
Copy link
Member

JIRA: https://jira.spring.io/browse/INT-3663

Previously the ChannelSecurityInterceptorBeanPostProcessor was populated with direct BeanDefinitions for ChannelSecurityInterceptors.
It caused an early access to BeanFactory.
The issue has been introduced by the ChannelSecurityInterceptorFactoryBean

  • Rework SecurityIntegrationConfigurationInitializer do not populate BeanDefinitions 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

@artembilan
Copy link
Member Author

Need some polishing, JavaDocs and Docs.
And Migration Guide note afterwards.

@artembilan
Copy link
Member Author

@garyrussell , let me know if you are OK with the solution and I go ahead for docs.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WARN: serialVersionUID

@garyrussell
Copy link
Contributor

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
@artembilan
Copy link
Member Author

Pushed

@garyrussell
Copy link
Contributor

LGTM; still needs docs etc, though; right?

@artembilan
Copy link
Member Author

Yeah... Sure! At least say that we did a deprecation and add a couple samples with JavaConfig

@artembilan
Copy link
Member Author

Pushed documentation.
After the merge I'll go ahead with Migration Guide note.

@garyrussell
Copy link
Contributor

Merged as b6cfd4f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants