Skip to content

Azure Workload Identity

PgDog supports using temporary credentials provided by Azure Workload Identity to connect to PostgreSQL running on Azure. This uses the Azure SDK and supports fetching credentials from the environment.

To use Workload Identity authentication, configure it on each user in users.toml:

[[users]]
name = "pgdog"
database = "prod"
password = "hunter2"
server_auth = "azure_workload_identity"
users:
  - name: pgdog
    database: prod
    password: hunter2
    serverAuth: azure_workload_identity