Nicolae created AMQ-7307: ---------------------------- Summary: Using MessageAuthorizationPolicy gets into infinite retry loop Key: AMQ-7307 URL: https://issues.apache.org/jira/browse/AMQ-7307 Project: ActiveMQ Issue Type: Bug Components: activemq-pool Affects Versions: 5.15.10 Environment: Locally with docker compose, but it should not be related to env. Reporter: Nicolae
We are trying to do authorization on message by message basis by validating an OIDC JWT token attached as property to each message. The way that I found so far (but please let us know for alternatives) is to implement MessageAuthorizationPolicy and return true if message to be accepted from security standpoint. The problem we face is that those rejected messages are retried. But the token is the same, and the answer will continue to be negative. Is there a way to disable retries, but only for those rejected by MessageAuthorizationPolicy ? Thank you. PS. I am not sure if it is a bug, we are just trying to solve our problem. We use shared storage with EFS, kahadb. The message delivery appears to happen on a Queue. What I know is that we use topics and virtual topics related to each individual consumer (microservice) and those virtual topics do function as queues. This is my limited understanding so far at least, I had experience with Kafka before. Thanks -- This message was sent by Atlassian Jira (v8.3.4#803005)