Skip to main content

Auth Stack PostgreSQL — cerebro-authstack-pg

The primary database server for the auth stack and HITL platform.

Details

FieldValue
Server namecerebro-authstack-pg
FQDNcerebro-authstack-pg.postgres.database.azure.com
Resource grouptesting
RegionSouth India
EnginePostgreSQL 16
SKUStandard_B2s (Burstable)
Storage32 GB
Private DNScerebro-authstack-pg.private.postgres.database.azure.com
NetworkPrivate — inside cerebro-auth-vnet

Databases

DatabaseOwner ServicePurpose
keycloakKeycloakUsers, realms, clients, sessions
openfgaOpenFGAAuthorization tuples and models
postgresSystemDefault admin database

Connecting

This server is private — it's only reachable from within cerebro-auth-vnet. To connect from your machine, exec into the toolbox:

# Open a shell in the toolbox (inside VNet)
az containerapp exec \
--name authstack-toolbox \
--resource-group testing \
--command "/bin/sh"

# Inside the container — connect to Keycloak DB
psql "host=cerebro-authstack-pg.private.postgres.database.azure.com \
dbname=keycloak user=<admin-user> sslmode=require"

Admin credentials are in Key Vaultcerebro-auth-kv-62be6d5f.

Backups

Azure automatically backs up Flexible Server databases. Default retention: 7 days.

To restore:

az postgres flexible-server restore \
--resource-group testing \
--name cerebro-authstack-pg-restored \
--source-server cerebro-authstack-pg \
--restore-time "2026-05-29T12:00:00Z"

Scaling

To upgrade the SKU:

az postgres flexible-server update \
--resource-group testing \
--name cerebro-authstack-pg \
--sku-name Standard_D2s_v3

Monitor

az monitor metrics list \
--resource /subscriptions/62be6d5f-97a5-4764-9bc9-ceb85a39a1f4/resourceGroups/testing/providers/Microsoft.DBforPostgreSQL/flexibleServers/cerebro-authstack-pg \
--metric cpu_percent \
--output table