-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
I am trying to use AWS IAM authentication to authenticate a connection to Elasticache redis as described here
https://docs.aws.amazon.com/AmazonElastiCache/late st/dg/auth-iam.html. To flow being that we provide an IAM authentication token using an Sig V4 Signing process. After providing the lAM role appropriate access, we use the [AWS4Signer ] (https://github.com/aws/aws-sdk-
net/blob/main/sdk/src/Core/Amazon.Runtime/Internal/A uth/AWS4Signer.cs) to sign a request and use the various authorization headers to create an auth token that we provide as the password to Redis. In this case, providing the password directly to the Password param in the ConfigurationOptions. Unfortunately the connection fails with
"StackExchange.Redis.RedisConnectionException:
The message timed out in the backlog attempting to send because no connection became available". I have tried many different methods of building the token following the Java or Python examples, but no luck.
Before I continue I wanted to confirm that this even possible with this library? There is no mention of it in documentation or code, but I imagine that this library doesn't do anything in terms of authentication and simply passes this string to elasticache, which should handle it and allow the connection. Any guidance or confirmation would be greatly appreciated.