Unable to deploy with a postgres password that has spaces
davidleechen opened this issue · comments
Abbreviated config fed to helm install/upgrade with -f
postgresql:
bundled: false
connection:
host: hostname
port: 5432
auth:
username: postgres
database: openproject
password: "This is a password with spaces."
Error from the pod
-----> Setting PGVERSION=13 PGBIN=/usr/lib/postgresql/13/bin PGCONF_FILE=/etc/postgresql/13/main/postgresql.conf
-----> Starting the all-in-one OpenProject setup at /app/docker/prod/supervisord...
/usr/local/lib/ruby/3.1.0/uri/rfc3986_parser.rb:67:in `split': bad URI(is not URI?): "postgresql://postgres:This is a password with spaces.@postgres-postgresql.production.svc.cluster.local:5432/openproject" (URI::InvalidURIError)
from /usr/local/lib/ruby/3.1.0/uri/rfc3986_parser.rb:72:in `parse'
from /usr/local/lib/ruby/3.1.0/uri/common.rb:188:in `parse'
from /usr/local/lib/ruby/3.1.0/uri/common.rb:692:in `URI'
from -e:1:in `<main>'
I'm pretty sure this password value in the template needs to be piped to quote
: https://github.com/opf/helm-charts/blob/main/charts/openproject/templates/secrets.yaml#L12