New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RabbitMQ Bindings: Support for mTLS and external authentication with SASL #2656
RabbitMQ Bindings: Support for mTLS and external authentication with SASL #2656
Conversation
Please ignore until #2515 is merged. |
72907aa
to
c693ee6
Compare
Signed-off-by: Andre Bossard <anbossar@microsoft.com>
c693ee6
to
2e9c849
Compare
I'll take a peek later today and complete it. Thanks for the patience. |
Signed-off-by: Andre Bossard <abossard@users.noreply.github.com>
Signed-off-by: Andre Bossard <anbossar@microsoft.com>
Signed-off-by: Andre Bossard <anbossar@microsoft.com>
Signed-off-by: Andre Bossard <anbossar@microsoft.com>
90dd61c
to
2ffc590
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something about the certification test changes is still wrong. Maybe the Docker file paths? I remember that being an issue with the pubsub component.
Also please note we have code freeze very very soon, so if you can get the tests to pass we can include this in 1.11
.
To run certification tests locally navigate to tests/certification/bindings/rabbitmq
and run:
export GOLANG_PROTOBUF_REGISTRATION_CONFLICT=ignore
go test -v --count=1 .
=== FAIL: bindings/rabbitmq TestRabbitMQExtAuth/rabbitmq_certification (1.03s)
flow.go:220: Running step: rabbitmqcertification
dockercompose.go:57: build path /home/runner/work/components-contrib/components-contrib/tests/certification/bindings/rabbitmq/mtls_sasl_external/mtls_sasl_external/docker_sasl_external either does not exist, is not accessible, or is not a valid URL.
flow.go:228: Completed step: rabbitmqcertification
flow.go:230: Fatal error in step rabbitmqcertification: exit status 1
dockercompose.go:72: build path /home/runner/work/components-contrib/components-contrib/tests/certification/bindings/rabbitmq/mtls_sasl_external/mtls_sasl_external/docker_sasl_external either does not exist, is not accessible, or is not a valid URL.
Signed-off-by: Andre Bossard <anbossar@microsoft.com>
Hi @berndverst thank, yeah again it was in the docker-compose.yaml a wrong path. Funnily enough it works with Docker Desktop on Mac, but not with Docker on Linux. Fixed and pushed it. |
…SASL (dapr#2656) Signed-off-by: Andre Bossard <anbossar@microsoft.com> Signed-off-by: Andre Bossard <abossard@users.noreply.github.com> Co-authored-by: Andre Bossard <anbossar@microsoft.com> Co-authored-by: Deepanshu Agarwal <deepanshu.agarwal1984@gmail.com> Co-authored-by: Bernd Verst <github@bernd.dev> Signed-off-by: Alvaro Aguilar <alvaro.aguilar@scrm.lidl>
Description
This is a port of #2515 to enable mTLS and External SASL based auth also in the Dapr bindings for RabbitMQ.
This is based on the EXTERNAL mechanism described here:
https://www.rabbitmq.com/access-control.html#mechanisms
Issue reference
#2514 but this time for the bindings
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list: