Skip to content
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

fix: pass redis SSL config to connection pool #5220

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

tarvip
Copy link

@tarvip tarvip commented Oct 31, 2024

What this PR does

This fix will pass SSL config properly to redis connection pool.
django-redis passes CONNECTION_POOL_KWARGS and not CONNECTION_POOL_CLASS_KWARGS to connection pool class, related django-redis code can be seen here.

Also, without this fix other settings max_connections and timeout are also not passed to connection pool.

I had issues with external Redis with in-transit encryption enabled using self-signed certs (Google managed Redis).
After changing this I can properly pass self-signed CA cert to redis client using REDIS_SSL_CA_CERTS env variable.

Which issue(s) this PR closes

There is no issue created for this problem.

Checklist

  • Unit, integration, and e2e (if applicable) tests updated
  • Documentation added (or pr:no public docs PR label added if not required)
  • Added the relevant release notes label (see labels prefixed w/ release:). These labels dictate how your PR will
    show up in the autogenerated release notes.

@tarvip tarvip requested a review from a team October 31, 2024 05:54
@CLAassistant
Copy link

CLAassistant commented Oct 31, 2024

CLA assistant check
All committers have signed the CLA.

@tarvip tarvip requested a review from a team as a code owner November 10, 2024 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants