Adding Redis db index and username properties#3847
Conversation
| // We use the password of the first sentinel host as password and sentinelPassword | ||
| String password = getPassword(hostSupplier.getHosts()); | ||
| if (password != null) { | ||
| if (properties.getUsername() != null && password != null) { |
There was a problem hiding this comment.
Shall we add null + empty check both? I was also thinking if we should also throw error if password is null/empty, basically make password a mandatory field regardless and rather do that check right after line 65. I can't think of a reason why someone would run Redis without password (and if we must support it, one can look at anonymous flag)... Lets see what community says about this.
There was a problem hiding this comment.
The password is optional for various persistence layers that conductor supports, and is the reason why it is obtained from the Host properties. Redis is one of the persistence options and even with Redis it doesn't mandate the use of password. Null check is what existed earlier we can add empty check in addition if needed.
Pull Request type
Feature
Changes in this PR
This adds properties for database index and username to the redis properties for standalone and sentinel.
Issue/Discussion
#3713