-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Introduce credentials provider #3224
Conversation
Codecov ReportBase: 66.93% // Head: 66.97% // Increases project coverage by
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more Additional details and impacted files@@ Coverage Diff @@
## master #3224 +/- ##
============================================
+ Coverage 66.93% 66.97% +0.03%
- Complexity 4641 4652 +11
============================================
Files 258 262 +4
Lines 15027 15072 +45
Branches 938 943 +5
============================================
+ Hits 10059 10094 +35
- Misses 4565 4570 +5
- Partials 403 408 +5
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@sazzad16 Great design, can you add background to this PR to give me a fuller understanding. |
References:
|
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.
the current code LGTM。
but it seems we could not new single Jedis with credentialsProvider. 🤔
@yangbodong22011 We can with JedisClientConfig.
|
ohh, I missed. |
15879eb
src/main/java/redis/clients/jedis/RedisCredentialsProvider.java
Outdated
Show resolved
Hide resolved
@chayim added an example |
64e69f7
to
cc3bbb5
Compare
Introduce credentials provider (redis#3224)
@sazzad16 According to AWS documentation (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/auth-iam.html#auth-iam-limits), an IAM authenticated connection will automatically be disconnected after 12 hours ("...to extend the connection for another 12 hours, an AUTH or HELLO command with a new IAM authentication token must be sent"). |
@shiranyo Yes. Note: In such case, enablilng setTest..., i.e. |
References:
Resolves #632