Cratis Chronicle hosting
Hosting Cratis Chronicle means running its Kernel, the server that stores events, builds read models through projections, and runs event handlers called observers. Your applications connect to this server to append events and query their state. Start with a local container, then configure durable storage and certificates before deploying the production image.
Getting Started
Section titled “Getting Started”Use Docker Compose to run the development image with its bundled MongoDB and an OpenTelemetry dashboard. If you already run your application through Microsoft Aspire, add Chronicle to your AppHost so Aspire manages its container and passes the endpoint to your application.
The development image generates a self-signed TLS certificate. You only need Local Certificates when you want to supply your own, for example to test certificate trust.
Going to Production
Section titled “Going to Production”Follow Production hosting to deploy the production image with external storage, certificates, and health probes. Unlike the development image, it has no bundled MongoDB and does not generate certificates. Development and production images lists every behavior and default that differs. To run it on Kubernetes, start from the reference manifest in Run Chronicle on Kubernetes.
Check storage compatibility before choosing a MongoDB-compatible service. DocumentDB’s measured local build lacks required features; the managed Azure service is unverified.
TLS protects connections to Chronicle, and from 19.172.0 the kernel certificate also secures traffic between nodes, so it needs both the server authentication and client authentication usages; see TLS certificate requirements. A separate encryption-certificate setting protects stored ASP.NET Core Data Protection keys and supplies keys to Chronicle’s internal OAuth authority, which issues authentication tokens. The internal authority requires this certificate in production. Using an external authority removes that startup requirement, but does not protect the stored keys: without an encryption certificate, Data Protection writes them unencrypted.
Before accepting traffic, configure Data Protection Key Encryption and include the encryption certificates and their passwords in your backup plan. You need those certificates to read protected data after a restore or a certificate rotation.
All Hosting Topics
Section titled “All Hosting Topics”- Production: Docker-based production deployment
- Kubernetes: reference manifest, probes, disruption budget and NetworkPolicy
- Development and Production Images: what differs between the two images
- Container Resources: memory and garbage collection settings for the kernel image
- Tracing Client Operations: send client spans to OpenTelemetry
- Data Protection Key Encryption: configure, rotate, and back up encryption certificates
- Configuration: server settings reference
- Aspire: Microsoft Aspire hosting integration
- Docker Compose: local development with telemetry
- Local Certificates: supply a TLS certificate for development