KrakenD and Dapr

12 views
Skip to first unread message

Alan Rutter

unread,
Jun 12, 2024, 6:39:48 PMJun 12
to KrakenD Community
I have a micro-services architecture that uses Dapr for inter-service communication. I have set up an Azure Container Apps environment with a couple of services and KrakenD as a gateway. I have added Dapr sidecar to the KrakenD container.

I have successfully tested that can I reach endpoints in my services via KrakenD using the FQDN from Azure, but I would like to avoid having to put this into my configuration files.
From my understanding, I should be able to use the Dapr sidecar in the KrakenD container to call my services.

There are several ways to configure the endpoint as per this article however when I get an error parsing my templates because it does not accept 'http://dapr-app-id:xxxx@localhost:8080' as a valid host.

Does anyone have experience configuring Dapr with KrakenD?

Albert Garcia

unread,
Jun 13, 2024, 3:35:40 AMJun 13
to Alan Rutter, KrakenD Community
Hi Alan,

I'm not familiar with Dapr, but it seems it requires you to connect using Basic Auth. Instead of including the user & password directly in the host, you can use a Martian modifier to inject that Basic Auth credentials when calling Dapr, following the indications described in the documentation here: https://www.krakend.io/docs/backends/martian/#connecting-to-basic-auth-userpass-backends


I hope this helps.

Best regards,
Logo
Albert García
Business Director
LinkedIn icon   Twitter icon  

Confidentiality Notice: This email, including any attachments, may contain confidential and privileged information for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure, or distribution is prohibited. If you are not the intended recipient, please contact the sender immediately and destroy all copies of this email. Thank you. This email has been sent in accordance with the European Union General Data Protection Regulation (EU GDPR).



--
You received this message because you are subscribed to the Google Groups "KrakenD Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to community+...@krakend.io.
To view this discussion on the web visit https://groups.google.com/a/krakend.io/d/msgid/community/f4f4ed07-f7b6-4dae-a4af-2498d9904bb6n%40krakend.io.
Reply all
Reply to author
Forward
0 new messages