Operations
Health
| Check | Meaning |
|---|---|
GET /healthz | The platform process is up. |
GET /readyz | database, kida_keys, identity, agent_runtime and knowledge checks; 503 if any fails. |
Probe /readyz from outside and alert when it is not 200.
Logs
Every service logs one JSON line per request with its request_id, route,
status and duration. Search all services for a client’s request_id to
follow one request. Alert on 5xx rates and platform_database_error.
Backups
- PostgreSQL: nightly
pg_dumpallto off-host storage. The platform database holds encrypted workspace secrets, which are useless withoutsecrets/platform/data.key. Back that key up separately. - MongoDB Atlas: continuous backups for knowledge.
deploy/secrets/: in your secret manager.
Key rotation
| Key | How |
|---|---|
| KIDA signing key | Publish the new public key alongside the old, switch KIDA_SIGNING_KEY_ID, remove the old key after the token lifetime. |
| Platform assertion key | Add the new public key to PLATFORM_ASSERTION_KEYS (NAK accepts up to 8), restart NAK, switch the platform’s key and PLATFORM_ASSERTION_KEY_ID, then drop the old key. |
| NAK assertion key | The same, with NAK_ASSERTION_KEYS (read by the platform, TE and KUMBUKUMBU). |
| KIDA caller credential | Add the new hash to KIDA’s caller registry, restart KIDA, swap the platform’s credential file, remove the old hash. |
| UBONGO admin token | Change it in UBONGO’s env and the platform’s secret file together. |
| Database passwords | ALTER ROLE … PASSWORD …, update the service’s URL secret, restart it. |
Scaling
The platform, KIDA and NAK keep all state in PostgreSQL. Run several replicas of each. KIDA admits callers by exact peer IP, so list every platform replica’s address. Run event streams work from any NAK replica.
Incidents
- Leaked API key: the workspace admin revokes it; it stops at once.
- Compromised person: remove the member, or revoke the Camel session. KIDA re-checks Camel’s userinfo on every sign-in.
- Compromised service key: rotate it. Single-use assertions limit replay to 60 seconds.