IngaDB 0.1 · Product documentation
IngaDB/DocumentationAPI v1
Browse documentation
OPERATIONS

Run a production IngaDB instance.

IngaDB runs as an API service beside PostgreSQL. Production readiness comes down to credentials, origin policy, schema health, backups, and verification of the live surface.

Deployment topology

CLIENTSApplications & SDKs
HTTPS →
API · 9876IngaDB server
SQL →
DATA · 5432PostgreSQL 16

Required configuration

VariablePurposeProduction guidance
INGADB_API_KEYDeployment access gateSet a generated value; startup refuses an empty key.
POSTGRES_PASSWORDDatabase credentialUse a generated secret stored outside the compose file.
INGADB_SECRET_KEYAt-rest credential encryptionSet a unique production value.
CORS_ALLOWED_ORIGINBrowser origin policyPin the exact application origin.
HARNESS_ENABLEDTest-only destructive routesKeep disabled.

Start with authentication enabled

terminalbash
INGADB_API_KEY=$(openssl rand -hex 32) \
  docker compose -f deploy/docker-compose.yml up -d

Health and readiness

GET /admin/status reports build identity, configured protection, and migration counts. Treat a difference between migration_count andmigrations_applied as a failed deployment.

health probeHTTP
curl -fsS https://api.your-domain.com/admin/status

Hardening checklist

  1. 01
    Terminate TLS before the API.

    Expose only HTTPS to clients and keep PostgreSQL on a private network.

  2. 02
    Use scoped credentials.

    Prefer organization API keys for services and personal tokens for operators.

  3. 03
    Pin CORS.

    Set one expected browser origin and confirm unknown origins are not echoed.

  4. 04
    Verify migrations.

    Block rollout completion until every migration is applied.

  5. 05
    Keep the harness off.

    Test-tenant teardown routes must remain disabled outside automated tests.

Backup and restore

IngaDB data and database-backed blobs are captured through PostgreSQL backups. Schedule the supplied backup process, retain copies outside the host, and verify the first restore into a clean instance. Migrations are idempotent after restore.

Post-deploy acceptance

The acceptance journey should create a graph, write topology, append evidence, compute a view, read its revision and deltas, and confirm a final fresh read. This verifies the actual request path rather than health status alone.

Operational assistance

For deployment requirements and environment-specific guidance, contact [email protected].