Also, given the Cerbos PDP helm chart, is there a ...
# help
p
Also, given the Cerbos PDP helm chart, is there a way to specify a postgres connection string referencing a secret rather than just putting the creds directly in plain text?
o
You could create a
secret
such as this:
Copy code
apiVersion: v1
kind: Secret
type: Opaque
metadata:
  name: cerbos-pg
data:
  PG_USER: Y2VyYm9zcGd1c2Vy
  PG_PASSWORD: Y2VyYm9zcGdwYXNzdw==
Then you could use a
values.yaml
such as this:
Copy code
cerbos:
  config:
    storage:
      driver: "postgres"
      postgres:
        url: "postgres://${PG_USER}:${PG_PASSWORD}@localhost:5432/cerbos"

envFrom:
  - secretRef:
      name: cerbos-pg
p
Ah, perfect. I wasn't aware that the connection string supported variable substitution. Thanks!