question

RameshKandukuriB avatar image
0 Votes"
RameshKandukuriB asked Mike-Ubezzi commented

Connecting Azure redis cache using hiredis c client.

  • How to connect azure redis cache service using hiredis C client?

  • As per hiredis client doc hiredis[ssl] needed to build and redisCreateSSLContext will establish a connection. Azure providing only access key but no certificate, so how to use redisCreateSSLContext with the access key alone?

  • In the azure cache for Redis FAQ, the note says "If your client does not support TLS, then you must enable the non-TLS port by following the directions in the Access ports section of the Configure a cache in Azure Cache for Redis article". Is it safe to use non-TLS port in production?


azure-cache-redis
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi RameshKandukuriB - Please let me know if you have any additional questions or if more information is needed here. I am happy to continue to assist you with your inquiry. Regards, Mike

0 Votes 0 ·

1 Answer

Mike-Ubezzi avatar image
0 Votes"
Mike-Ubezzi answered

@RameshKandukuriB - Please find the following information in response to each data point but do please let me know if you have any additional questions, as subsequent comments.

The HIREDIS client is a minimalistic client that runs in a {bash} shell environment (See: Redis Clients). Please see the official project repository for more information. It requires SSL/TLS bindings to be built into the solution but it does offer encryption support if you choose to deploy it otherwise, you can enable the non SSL port and connect to Redis without encryption support. This approach is not advised but there are measures you can take to mitigate exposure such as deploying the production instance in a VNET, and using service tags to limit traffic by type, etc.

Please also be aware of the effort to make TLS 1.2 the baseline version throughout Azure:

Preparing for TLS 1.2 in Microsoft Azure

Regards,
Mike


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.