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

Make it possible to use SSL with PostgreSQL without client certificate #4064

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dekkers
Copy link
Contributor

@dekkers dekkers commented Feb 4, 2025

Changes

The rocky settings required providing a client certificate when you use SSL to connect to PostgreSQL, but it is also possible to connect using SSL without a client certificate.

QA notes

Please add some information for QA on how to test the newly created code.


Checklist for code reviewers:

Copy-paste the checklist from the docs/source/templates folder into your comment.


Checklist for QA:

Copy-paste the checklist from the docs/source/templates folder into your comment.

Copy link

sonarqubecloud bot commented Feb 4, 2025

@underdarknl
Copy link
Contributor

Lgtm

POSTGRES_SSL_CERT = env.path("POSTGRES_SSL_CERT", default="")
POSTGRES_SSL_KEY = env.path("POSTGRES_SSL_KEY", default="")

if POSTGRES_SSL_CERT and POSTGRES_SSL_KEY:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to also set "sslmode" to "require" here when these options are configured?

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.

3 participants