Description
Description
Hi ,
I’m setting up Gitea (in K8s) to use a Redis cluster (TLS Enabled) as a cache. According to the documentation, the connection string supports specifying a password for authentication as mentioned below,
redis+cluster://[password@]host1 [: port1][, host2 [:port2]][, hostN [:portN]][/ database][?[option=value]*]
My Redis cluster requires a username and password for authentication, so I updated the connection string accordingly to include the username as below,
redis+cluster://[username:password@]host1 [: port1][, host2 [:port2]][, hostN [:portN]][/ database][?[option=value]*]
This setup works perfectly when Redis is configured to use IPv4 addresses. However, when I switch to using IPv6 addresses, the cache init fails with TLS error,
"Error accepting a client connection: error:1408F10B:SSL routines:ssl3_get_record:wrong version number"
The TLS connection from the application to the Redis cache is established using a service mesh.
When I remove the username from the URI scheme, the TLS error is resolved, but the connection fails with an authentication error due to the missing username. This suggests that the TLS connection was successfully established after removing the username.
Is there a specific format for including a username when using redis+cluster as a cache?
Gitea Version
v1.22.3
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
v1.22.3
Operating System
No response
How are you running Gitea?
Kubernetes Cluster
Database
PostgreSQL