You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
globaldb: 2023/03/23 22:42:59.846963 postgres.go:84: Fatal: Could not parse postgres config: Could not parse postgres config: cannot parse `postgresql:xxxxxx@10.48.5.69:5000/stackrox-db-prod statement_timeout=60000 pool_min_conns=10 pool_max_conns=90 password=xxxxx`: failed to parse as URL (parse "postgresql://stackrox-prod@10.48.5.69:5000/stackrox-db-prod statement_timeout=60000 pool_min_conns=10 pool_max_conns=90 password=Non-Masked-Password\n": net/url: invalid control character in URL)
But it would be even better to add password to the username separated with ":", because then it is added as an parameter it is not masked properly in logs.
The text was updated successfully, but these errors were encountered:
Looks like it ignores dbname key
Here is my connection string:
source: "host=10.0.0.1 port=5000 dbname=stackrox-db-prod user=stackrox-user statement_timeout=60000 pool_min_conns=10 pool_max_conns=90"
Also:
"NOTICE: database "central_backup" does not exist, skipping"
looks like it`s not suited for shared PG servers.
It would be great if there would be a configurable list of needed databases, so you could create them in advance
Issue description
Postgress connection string generation is incorrect
Details
Here is my helm values:
Here is an error i`ve got:
Looks like there are 2 erorrs, one in helm chart:
https://github.com/stackrox/helm-charts/blob/main/3.74.1/central-services/templates/01-central-08-external-db-configmap.yaml#L16
It should be
instead
And another one is here:
stackrox/pkg/postgres/pgconfig/config.go
Line 36 in d3911f6
I`m not that good with golang, but looks like it should be:
But it would be even better to add password to the username separated with ":", because then it is added as an parameter it is not masked properly in logs.
The text was updated successfully, but these errors were encountered: