Skip to content

[bitnami/postgresql] checks improperly quoted #9755

Description

@sdahlbac

Name and Version

bitnami/postgresql 11.1.19

What steps will reproduce the bug?

  1. I am deploying the helm chart using terraform, but that should not matter
  2. with tls enabled and healtchecks enabled postgres does not start

Are you using any custom parameters or values?

tls.enabled: yes
tls.certificatesSecret: postgresql-tls-secret
tls.certFilename: cert.crt
tls.certKeyFilename: cert.key
tls.certCAFilename: ca.crt
primary.livenessProbe.enabled: true
primary.readinessProbe.enabled: true

primary.pgHbaConfiguration includes
hostssl all postgresql 127.0.0.1/32 cert

What is the expected behavior?

Postgres should start properly

What do you see instead?

The command for the probes are rendered as

exec pg_isready -U "postgres" -d "sslcert=/opt/bitnami/postgresql/certs/cert.crt sslkey=/opt/bitnami/postgresql/certs/cert.key" -h 127.0.0.1 -p 5432

If I run that manually:

I have no name!@postgresql-0:/$ pg_isready -U "postgres" -d "sslcert=/opt/bitnami/postgresql/certs/cert.crt sslkey=/opt/bitnami/postgresql/certs/cert.key" -h 127.0.0.1 -p 5432
127.0.0.1:5432 - no response

If I instead do

pg_isready -U "postgres" -d "sslcert=/opt/bitnami/postgresql/certs/cert.crt" -d"sslkey=/opt/bitnami/postgresql/certs/cert.key" -h 127.0.0.1 -p 5432
127.0.0.1:5432 - accepting connections

i.e. separate -d options

Additional information

I suspect if I'd use custom checks I would be able to make it work

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions