Replies: 2 comments
-
Hi Thibaut, |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply @adas98012, I was wondering about one thing. In v1, the deployment file included something like this: command:
- graphql-engine
- --database-url
- "postgres://$(POSTGRES_DB_USER):$(POSTGRES_DB_PASSWORD)@$(POSTGRES_DB_HOST):$(POSTGRES_DB_PORT)/postgres"
- serve
env:
- name: POSTGRES_DB_HOST
valueFrom:
secretKeyRef:
name: cloudsql-db-credentials
key: private-ip
- name: POSTGRES_DB_PORT
value: "5432"
- name: POSTGRES_DB_USER
valueFrom:
secretKeyRef:
name: cloudsql-db-credentials
key: username
- name: POSTGRES_DB_PASSWORD
valueFrom:
secretKeyRef:
name: cloudsql-db-credentials
key: password which lets me template out the command using values directly provided by cloudsql. Is there an equivalent of this where I could template out the env value for Also, any update on the point 1, can I simply gitignore the prod metadata and migrations from the repo? CI will only use the ones that are generated through the local dev environment anyway. Thanks again. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'd like to ask how do you achieve db password protection in v2? I've moved over from v1 and I have 2 issues.
and this file is needed in CI. How can I protect the password here? Maybe get it straight from cloudsql-db-credentials (I'm on Google Cloud)?
Thanks,
Thibaut
Beta Was this translation helpful? Give feedback.
All reactions