Cratis production readiness checklist
Use this checklist before deploying Cratis Chronicle or a full Cratis application. It covers the decisions your team must make around the runtime: which versions to deploy, where data and keys live, and how someone recovers the service when it fails.
A deployment that starts successfully has not yet demonstrated a usable backup or a safe replay. Work through each section with the people responsible for operating the application, and follow the linked product guides for configuration. This checklist is a review aid, not a certification of the deployment.
Release and deployment
Section titled “Release and deployment”Start with the versions you have tested together. A rollback plan needs to cover derived data and configuration as well as the application binary.
- Pin package versions and Docker image tags. Use a specific Chronicle release tag, not
latest, and never alatest-developmentimage outside development and CI. - Keep environment-specific configuration outside images.
- Run the full build, specs, and documentation gates before release.
- Keep a rollback plan for application code, projections, configuration, and infrastructure.
- Record which Chronicle, Arc, Components, CLI, and app versions are deployed together, including your backend runtime and Chronicle client.
- Verify the features your application uses against its Arc backend and Chronicle client. The kernel’s .NET implementation does not require a .NET application host, and client APIs and feature coverage differ.
Storage and data
Section titled “Storage and data”Treat restore and replay as different operations. Restore recovers stored data and keys from a backup; replay rebuilds derived read models from events. Rebuilding a read model does not recover a lost compliance key.
- Choose the Chronicle storage engine deliberately: MongoDB, PostgreSQL, Microsoft SQL Server, or SQLite.
- Run MongoDB as a replica set, even with a single node. Chronicle uses MongoDB transactions, which a standalone
mongodrejects. See storage requirements. - Back up the encryption certificates, the storage backend, and the compliance key store together, and practice restoring them in the documented order. A database backup alone is not restorable. See backup and restore.
- Plan how a restore re-applies erasures made after the backup was taken: restoring a pre-erasure backup brings deleted PII keys back. See key lifecycle.
- If you move compliance keys to a dedicated store on a system that already runs, set
migrateFromDefaultStorage. Without it, existing[PII]values silently read back as empty strings. See compliance storage. - Declare read-model indexes with
[Index]instead of creating them by hand; Chronicle recreates read-model containers during replay, and hand-made indexes do not survive that. See indexing read models. - Decide retention for replay-generated read model versions.
- Plan how projection rebuilds and event replays are executed and monitored.
- Test event type migrations before old event generations reach production.
Security and identity
Section titled “Security and identity”Decide which service establishes identity and where tenant access is enforced. Test requests with missing or invalid identity and tenant information, not only successful sign-in.
- Use TLS for service-to-service and client connections, and configure real certificates, not self-signed development ones.
- Store secrets and certificate passwords in a real secret manager or platform secret store.
- Configure authentication, admin bootstrap, clients, and identity-provider certificates intentionally.
- Avoid development-only passwords, client credentials, certificates, and generated secrets in staging or production.
- In a multi-tenant application, reject requests without a valid tenant when default-namespace access is not allowed. See auth and compliance.
- Follow the private reporting path on Security for vulnerabilities.
Operations
Section titled “Operations”Make recovery tasks actionable for whoever is on call. A failed observer needs an owner who can inspect the failure, decide whether retry or replay is appropriate, and verify the result.
- Enable OpenTelemetry where your environment can collect traces and metrics.
- Configure health checks for your orchestrator.
- Decide who watches failed partitions, jobs, observers, projections, and subscriptions.
- Install and configure the CLI for production diagnostics.
- Keep runbooks for replaying projections, retrying failed partitions, and verifying appended events.
- Define escalation paths: community, GitHub issues, or professional help.
User-facing application
Section titled “User-facing application”Check the paths a user sees when a request is refused or state changes during an edit. Successful command execution alone does not verify those paths.
- Decide where AuthProxy, tenant resolution, authentication, and authorization live.
- Keep generated TypeScript proxies in the frontend build so drift fails at compile time.
- Verify command validation, optimistic concurrency, and error handling from the UI.
- Use Components only after the provider, theme, and peer dependencies are configured.
For the deployment itself, continue with Chronicle production hosting. Before a release, check version compatibility against the versions recorded in your deployment plan.