Skip to content

[Question] Does the StackExchange Redis Client support Aws IAM Authentication #2891

@escaman22

Description

@escaman22

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions