Reference
Deployment Checklists
Production-oriented checklists for rolling out Odock.
Deployment Checklists
Minimum Production Checklist
- Set strong Postgres credentials.
- Set strong Redis credentials or network isolation.
- Set a real Better Auth secret.
- Configure GitHub OAuth credentials.
- Configure
NEXT_PUBLIC_APP_URLand auth base URL for the production host. - Generate provider-key encryption key pair.
- Provide UI public key values at build time.
- Provide gateway private key values at runtime.
- Configure
CACHE_INVALIDATION_SECRETon both UI and gateway. - Configure
ODOCK_SERVER_INTERNAL_URLfor the UI. - Enable TLS at the proxy/load balancer layer.
- Set trusted proxy CIDRs if the gateway receives forwarded headers.
- Review the global rate-limit policy.
- Enable SafetySec if required.
- Confirm gateway health and readiness endpoints.
- Confirm Prisma migrations run before the UI and gateway serve traffic.
- Confirm observability targets are up.
- Rotate any legacy plaintext provider keys by re-saving or recreating them.
Provider And Model Rollout Checklist
- Create an organisation.
- Create a provider with type, base URL, and timeout.
- Create encrypted provider API key.
- Create model with user-facing name and upstream slug.
- Attach provider and provider key to model.
- Add pricing JSON.
- Add model-level policies if needed.
- Create an Odock API key.
- Grant model access to the key.
- Test with the playground.
- Test with a direct gateway call.
- Confirm usage record and cost fields.
MCP Rollout Checklist
- Create an MCP server.
- Choose transport:
STREAMABLE_HTTP,SSE, orSTDIO. - Configure endpoint or stdio command.
- Configure auth type and auth config.
- Add allowed/blocked tools.
- Add pricing if MCP cost tracking is required.
- Add policies if MCP rate limits are required.
- Grant API key MCP access.
- Test the
/v1/mcp/:identifierroute. - Confirm
McpUsageRecordrows are created.
Budget And Quota Checklist
- Ensure model pricing is configured.
- Create budgets for organisation, team, user, or API key scopes.
- Create quotas for the same scopes as needed.
- Use appropriate periods and timezone.
- Confirm active policies do not overlap unexpectedly.
- Test under a low limit in a non-production environment.
- Confirm blocked requests return
402for budget or429for quota. - Confirm reservations settle after successful usage.
- Confirm stale reservations are reconciled by the worker.
Observability Checklist
- Start the observability profile.
- Confirm Prometheus targets are up.
- Confirm Grafana datasources are healthy.
- Confirm gateway
/metricsis scraped. - Confirm traces appear in Tempo.
- Confirm logs appear in Loki.
- Open the Gateway Request Dashboard.
- Open the Rate Limit Dashboard.
- Open the Token Usage Dashboard.
- Trigger a test request and follow it by request ID.
- Review alert thresholds.
- Configure Alertmanager receivers before production.
Upgrade Checklist
- Read migration files in
odock-ui/prisma/migrations. - Back up Postgres.
- Back up Redis if rate-limit or cache state is important for rollback.
- Build images.
- Run migrations.
- Start UI and gateway.
- Verify health and readiness.
- Verify auth login.
- Verify gateway request.
- Verify usage recording.
- Verify observability.