spring-projects / spring-projects/spring-security

Extend AuthorizationChannelInterceptor for postReceive() implementation

Open
#11,915 2 comments 0 reactions 1 assignee View on GitHub

@jzheaux is already working on this.

Since Sep 30, 2022.

in: messaging status: waiting-for-triage type: enhancement
Dominant language
Java
Stars
9.6k
Forks
6.3k
Avg merge
2d 11h
Merged PRs (30d)
52

Description

Expected Behavior

The AuthorizationChannelInterceptor implements a similar to the preSend() in the postReceive() contract which is applicable for the PollableChannel implementations.

Current Behavior

The AuthorizationChannelInterceptor currently implements only preSend() for decision to put a Message<?> onto the MessageChannel or not.

Context

Not all MessageChannel implementations are just SubscribableChannel, there is a PollableChannel which is implemented in Spring Integration as a QueueChannel.
With this channel there is no direct connection between producer and consumer. A QueueChannel is polled by the TaskScheduler.
So, we need to be secured on that receiving side against messages we poll from the channel.
This will lead to a proper messaging security support in Spring Integration applications.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.