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

Issue with semicolons in Postgres passwords for Connect and Package Manager #420

Open
tnederlof opened this issue Sep 26, 2023 · 1 comment

Comments

@tnederlof
Copy link
Contributor

When there is a semicolon in the password for Connect or Package Manager (either passed in via --set in helm or in the values file), the services fail to connect to the Postgres database. Taking out the semicolon (and changing the password on the Postgres side) then works without issue.

I think its an issue in translating the values to the config files. If I run Connect and Package Manager outside of k8s and put the password with a semicolon in the configs, it works without issue.

@colearendt
Copy link
Member

colearendt commented Sep 26, 2023

This is probably because we do not quote the generated config:

[Postgres]
Password = somevalue;withtext

Semi-colons are comments in gcfg, so quoting the value would likely fix. We can add that to our generation.

Alternatively, we could start using env vars for password, which is probably preferable from a secret management point of view!

Workarounds in the short term are to set env var manually yourself, or encrypt the value with rskey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants