ON-PREM CHOREO CLOUD BOTH

What it is

Postgres is the relational database of AMS. It stores data that only Agent Manager needs, such as gateways, LLM providers and proxies, deployments, API keys, monitors and scores, and the bookkeeping for agent identities. Organizations, projects and agents are not stored here, because OpenChoreo owns them.

Why it exists

AMS needs durable storage for its own state. Keeping OpenChoreo objects out of it avoids two sources of truth.

How it works

  • On the OSS main branch there are about 40 tables and 47 migrations, applied with gormigrate.
  • On-prem it is a Postgres 16 container in the dev setup, or a bundled subchart in the Helm install.
  • Provider keys are encrypted with AES, and gateway tokens and API keys are stored as hashes.
  • EventHub also lives here, in a table of events that gateway subscribers poll.
  • On Choreo Cloud it is an external Postgres database (agent_manager_db) shared by all tenants and keyed by an ou_id column.

Identity and access

AMS connects with database credentials. Tenant separation in the shared SaaS database comes from the ou_id column, whose value comes from the caller's token.

Key facts

Port
5432
Tables
About 40
Version (dev)
Postgres 16
Side
Control plane
Namespace
wso2-amp

Used by (3)