echoing-whale-29175
11/24/2023, 2:34 PMsql:
datasource:
...
username: datahub
password:
value: myPassword
everything works
If on the contrary I set it like that
sql:
datasource:
...
username: datahub
password:
secretRef: postgres-secret
secretKey: fmdp-psql-password
I always get the following error:
psql: error: connection to server at "prerequisites-gcloud-sqlproxy" (10.28.9.85), port 3306 failed: FATAL: password authentication failed for user "datahub"
Anyone has a clue about why it does that and how to fix this issue?
Thanks! šechoing-whale-29175
11/24/2023, 2:36 PMrich-barista-93413
11/27/2023, 9:14 AMacceptable-morning-73148
11/29/2023, 10:43 AMechoing-whale-29175
11/29/2023, 1:32 PMacceptable-morning-73148
11/29/2023, 4:51 PMkubectl create secret generic postgres-secret --from-literal=fmdp-psql-password=<your password in plain text here> Could you confirm? Maybe first delete and re-create it just in case?echoing-whale-29175
11/29/2023, 5:09 PMkubectl apply -f postgres_secret.yml
apiVersion: v1
kind: Secret
metadata:
name: postgres-secret
type: Opaque
data:
fmdp-psql-password: <base64 encoded password>
I have tried several time to change the password, delete and re-create the secret.
It still does not work šacceptable-morning-73148
11/29/2023, 7:36 PMechoing-whale-29175
11/30/2023, 10:08 AMechoing-whale-29175
11/30/2023, 10:08 AMacceptable-morning-73148
11/30/2023, 1:38 PMechoing-whale-29175
11/30/2023, 2:27 PM