Skip to content

Add server_tls to helm charts #777

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions charts/pgcat/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ stringData:
tcp_keepalives_idle = {{ .Values.configuration.general.tcp_keepalives_idle }}
tcp_keepalives_count = {{ .Values.configuration.general.tcp_keepalives_count }}
tcp_keepalives_interval = {{ .Values.configuration.general.tcp_keepalives_interval }}
server_tls = {{ .Values.configuration.general.server_tls }}
verify_server_certificate = {{ .Values.configuration.general.verify_server_certificate }}
dns_cache_enabled = {{ .Values.configuration.general.dns_cache_enabled }}
dns_max_ttl = {{ .Values.configuration.general.dns_max_ttl }}
{{- if and (ne .Values.configuration.general.tls_certificate "-") (ne .Values.configuration.general.tls_private_key "-") }}
tls_certificate = "{{ .Values.configuration.general.tls_certificate }}"
tls_private_key = "{{ .Values.configuration.general.tls_private_key }}"
Expand Down
18 changes: 18 additions & 0 deletions charts/pgcat/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,24 @@ configuration:
# Number of seconds between keepalive packets.
tcp_keepalives_interval: 5

# Enable TLS connections from PgCat to Postgres servers. Postgres has to be configured to support TLS,
# which is typical to be the case for Postgres distributed via package managers.
server_tls: false

# If server_tls is enabled, validate that the server certificate is valid. This disallows connections
# for self-signed certificates which haven't been added to the root store on the machines running PgCat.
verify_server_certificate: false

# If enabled, PgCat will resolve and cache DNS of Postgres servers, overriding default TTL provided by
# system DNS servers. This is useful when using DNS for configuring traffic routing to Postgres servers:
# if the IP resolved by the DNS query changed from its previously cached value, the connection pool will
# be automatically recreated with connections to the new Postgres server.
dns_cache_enabled: false

# Maximum number of seconds to keep cached DNS values. Once this timeout expires, a DNS refresh is
# performed against all targets in the cache.
dns_max_ttl: 30

## pool
## configs are structured as pool.<pool_name>
## the pool_name is what clients use as database name when connecting
Expand Down
Loading