-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Only default redis username is sent when using --redis_cluster_connection_urls #2020
Comments
I'm not very comfortable with the go language. Would it be enough to simply add Username parameter here ? oauth2-proxy/pkg/sessions/redis/redis_store.go Lines 118 to 136 in fd50a35
For information here is how it is done for the standalone mode. I think opt already contains username paremeter parsed from connection_url : oauth2-proxy/pkg/sessions/redis/redis_store.go Lines 138 to 158 in fd50a35
|
Looks like it, the go-redis struct (https://pkg.go.dev/github.com/go-redis/redis/v9#ClusterOptions) has a |
I builded app with this fix :
I checked with different case of configuration :
Given above tests, it should not have a negative impact. But like I said I'm not a developper |
This issue has been inactive for 60 days. If the issue is still relevant please comment to re-activate the issue. If no action is taken within 7 days, the issue will be marked closed. |
This issue has been inactive for 60 days. If the issue is still relevant please comment to re-activate the issue. If no action is taken within 7 days, the issue will be marked closed. |
I tried to connect oauth2-proxy to redis cluster by providing username and password inside the
redis_cluster_connection_urls
parameter. But I can't use specific username.config.cfg
Expected Behavior
oauth2-proxy should authenticate on redis with provided username and password
Current Behavior
Instead of 'username' the authentification is done with 'default'
Note : username:password configuration works well when using with redis_connection_url (non cluster mode)
The only way to make it work is to use redis_password parameter, but I can't use a specific username (default is used) :
Steps to Reproduce (for bugs)
Use a redis cluster and provide username/password inside the redis_cluster_connection_urls
Context
Your Environment
The text was updated successfully, but these errors were encountered: