question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Spring Cloud Stream Eventhubs fails trying to store the checkpoint with an AuthorizationPermissionMismatch

See original GitHub issue

Describe 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:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
yiliuTocommented, Sep 1, 2022

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:

0reactions
yiliuTocommented, Sep 6, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to create a Spring Cloud Stream Binder application with ...
Learn how to configure a Java-based Spring Cloud Stream Binder application created with the Spring Boot Initializr with Azure Event Hubs.
Read more >
Azure Blob Storage "Authorization Permission Mismatch" error ...
When trying to read a file that I have inside the storage for test purposes, I'm getting: <Code>AuthorizationPermissionMismatch</Code> <Message> ...
Read more >
Spring Cloud Azure - Reference Documentation
Simplified dependency management using a single spring-cloud-azure-dependencies BOM. Expanded Azure support on Spring Initializr to cover Kafka, Event Hubs, ...
Read more >
Event Hubs Dead Letter Queue with Spring Cloud Stream
Messages that were successfully processed through the service logic would be automatically checkpointed before ensuring that they were published ...
Read more >
Azure SDK for Java Reference Documentation - javadoc.io
Event Hub SDK provide the function to store such offsets inside Azure Storage Account. So that's why you have to fill spring.cloud.stream.eventhub.checkpoint- ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found