Component ยท Data side
Gateway controller SQLite store
BOTH Database Gateway
What it is
The controller store is the small database where the gateway-controller keeps its rendered configuration. On-prem it is a SQLite file, ./data/gateway.db, on a 100Mi persistent volume. It lets the gateway restart without losing its state.
Why it exists
A gateway must come back with its configuration after a restart. It also holds encrypted secrets that routes need.
How it works
- SQLite allows one writer, so the controller runs as a single replica with the Recreate strategy.
- Secrets such as upstream credentials are encrypted with AES-GCM.
- On Choreo Cloud the controller keeps its state in Postgres instead.
Identity and access
Stored secrets are encrypted with a key kept in a Kubernetes secret. Access is limited to the controller pod.
Key facts
- File
- ./data/gateway.db
- Volume
- 100Mi, ReadWriteOnce
- Engine
- SQLite (Postgres on Choreo Cloud)
- Side
- Data plane (gateway)
- Namespace
- <org>-<env>
Used by (1)
- read by APG gateway-controller Persists artifacts, keys, secretsSQLite