Skip to content

Conversation

@artembilan
Copy link
Member

There are some use-cases when we need to know upfront if specific binding is really bound.
The goal is to prevent some security vulnerabilities when too many unexpected dynamic bindings, e.g.
via router based on the StreamBridge.
The BindingService provides for us getProducerBindingNames()
and getConsumerBindingNames() which are not optimal
for the task to check for binding presence

  • Introduce BindingService.getProducerBinding(String bindingName) and getConsumerBindings(String bindingName) to cover a use-case when we need to check for predefined bindings.
    This API might be useful in other use-case when we need to get access to managed bindings

Related to: spring-cloud/stream-applications#330

There are some use-cases when we need to know upfront
if specific binding is really bound.
The goal is to prevent some security vulnerabilities
when too many unexpected dynamic bindings, e.g.
via router based on the `StreamBridge`.
The `BindingService` provides for us `getProducerBindingNames()`
 and `getConsumerBindingNames()` which are not optimal
 for the task to check for binding presence

* Introduce `BindingService.getProducerBinding(String bindingName)`
and `getConsumerBindings(String bindingName)` to cover a use-case
when we need to check for predefined bindings.
This API might be useful in other use-case when we need to get
access to managed bindings

Related to: spring-cloud/stream-applications#330
@artembilan artembilan added this to the 4.0.1 milestone Jan 20, 2023
@olegz olegz merged commit 64aef34 into spring-cloud:main Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants