Liquidity Docs

Production Hardening

The dev defaults (SQLite, root container, http://localhost:8000, admin/123)

The dev defaults (SQLite, root container, http://localhost:8000, admin/123) are fine for local work but must change before any shared or hosted environment.

Checklist

  • Postgres, not SQLite. Set driverName = postgres and a Postgres dataSourceName in conf/app.conf. SQLite locks under concurrency and is single-host.
  • HTTPS issuer. Set both origin and originFrontend to the public HTTPS URL (e.g. https://iam.example.com). Browsers and go-oidc require an HTTPS issuer. Every relying party's issuer config must match exactly. Remember to re-apply after each image rebuild (a fresh image resets it).
  • Non-root container / correct volume ownership. The --user 0 dev workaround exists only so SQLite can write the root-owned /data volume. With Postgres you can run as a non-root user; ensure any persistent volume is writable by that user.
  • Change the admin password (admin/123) immediately; ideally create a named admin and disable/rotate the default.
  • Secret management. GOOGLE_CLIENT_SECRET (and any provider secret) belongs in a secret manager / env, never committed. The seed script reads them from the environment.
  • Disable password / ROPC grants you do not use; keep the app SSO-only (enablePassword=false) unless a break-glass path is required.
  • Restrict the admin API. Do not expose the admin API publicly; drive admin/seed operations from a trusted network (e.g. localhost), not through a public tunnel.
  • Google consent screen = Internal (Workspace satschel.com) so only org users can authenticate, in addition to the provider emailRegex gate.
  • Backups. Back up the Postgres store (it holds all orgs, apps, providers, users, and certs). Losing it invalidates every issued token.

Redirect / origin hygiene

  • Keep the application redirectUris tight - only the exact /callback URLs of real relying-party origins.
  • Keep post-logout redirect URIs to the exact app origins (required for clean RP-initiated logout).
  • In Google Cloud, keep Authorized JavaScript origins + redirect URIs limited to the real IAM origin(s).

Availability

  • Run behind a stable hostname/TLS terminator; the issuer URL is baked into every token's iss, so it should not change once relying parties are live.
  • Make the process durable (managed container / service) rather than a hand-started container.