How to provide DB credentials to temporal in production?

Hi Experts,

Currently, for Temporal helm charts, for connecting to a postgresql DB, following is the sample provided:

server:
  config:
    persistence:
      default:
        driver: "sql"

        sql:
          driver: "postgres"
          host: _HOST_
          port: 5432
          database: temporal
          user: _USERNAME_
          password: _PASSWORD_
          maxConns: 20
          maxConnLifetime: "1h"

Since these credentails would be strictly confidential, is there a better way to provide these credentials to temporal in a UAT or Production environment?

You should be able to create your secrets up front, and then reference them by name via existingSecret in your config.

1 Like