[BUG] Spring Cloud Stream Eventhubs fails trying to store the checkpoint with an AuthorizationPermissionMismatch
See original GitHub issueDescribe the bug
I’ve detected a different behaviour between com.azure.spring:azure-spring-cloud-stream-binder-eventhubs:2.14.0
and com.azure.spring:spring-cloud-azure-stream-binder-eventhubs:4.3.0
using the Service Principal Authentication
, after migrating the properties configuration using the new namespaces, I’m getting a 403 trying to send a message.
I have an application to reproduce the problem, when I’m using a Connection String
, it works well.
Exception or Stack Trace log.txt
To Reproduce
I’ve included a sample application, copy of this. First of all, the application-newversion.yml
has to be filled with the EventHubs configuration using Service Principal Authentication
, after that, the application can be executed (mvn spring-boot:run
), the error will be shown.
This sample is configured to use the 4.3.0 version and Service Principal Authentication
, but it could be modified easily to work with Connection String
or using the 2.4.0 version, this can be achieved modifying the pom.xml
to replace spring-cloud-azure-stream-binder-eventhubs
with azure-spring-cloud-stream-binder-eventhubs
dependency, and using spring.profiles.active
property to enable the oldversion
profile. Only it fails when 4.3.0 version with Service Principal Authentication
using same credentials.
Expected behavior Same behaviour as 2.4.0 version.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
Hi @ceremo , yes the role modification is part of the changes in 4.x between 2.x, you can refer to the migration guides for more details:
Hi @ceremo I will close this issue since my above reply gets acked from you, and feel free to reopen it if you have any other questions.