Skip to content

config: add sslmode verify-ca and verify-full #2

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

Merged
merged 2 commits into from
May 24, 2021

Conversation

uce
Copy link

@uce uce commented May 20, 2021

I first tried to solve this on the Materialize side by parsing and "cleaning" the connection string before handing it to the Postgres client, but it added quite a bit of parsing complexity (e.g. connection strings come in URL and param list format, params can be quoted, there are escape sequences).

I think that having these additions in our fork is the simplest and most robust way of doing it without adding too much of a maintenance burden (the touched files should not change frequently). In addition, there is a discussion on the upstream client repo to contribute these changes upstream.

uce added 2 commits May 20, 2021 10:30
When a connection is established, the added modes are treated in the
same way as the existing `require` mode as they both require a TLS
connection.
Adds additional SSL config params:
- sslcert
- sslkey
- sslrootcert

More details at https://www.postgresql.org/docs/9.5/libpq-connect.html#LIBPQ-CONNSTRING.
@uce uce merged commit 0f57ded into MaterializeInc:master May 24, 2021
@uce uce deleted the 6716-config branch May 24, 2021 08:56
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