Configure the Cratis Chronicle Kernel
Configure the Chronicle Kernel with a chronicle.json file, Cratis__Chronicle__ environment variables, or both. Environment variables override matching file settings, letting you share a configuration file while supplying deployment-specific connections and credentials separately.
Start with Configuration File to place the file, or Docker Configuration to mount it in a container. Use Configuration Precedence when a setting does not match the value you expected.
Example configuration
Section titled “Example configuration”{ "port": 35000, "storage": { "type": "MongoDB", "connectionDetails": "mongodb://localhost:27017" }}| Section | Description |
|---|---|
| Root properties | Ports and health check endpoint |
| Features | API, Workbench, and OAuth authority toggles |
| Workbench | The path the Workbench is served under |
| Storage | Storage provider configuration |
| Compliance | Dedicated storage for compliance encryption keys |
| Clustering | Orleans clustering provider, cluster identity, and ports |
| Observers | Retry and timeout settings |
| Read models | Replay retention for replay-generated read model versions |
| Events | Event queue configuration |
| Memory | Memory budget for work with a large footprint |
| Jobs | Parallel job step throttling |
| Authentication | External authority, default admin, and initial admin user bootstrap |
| TLS | Every certificate the kernel uses, with required usages, for the Chronicle port and cluster traffic |
| Encryption certificate | Certificate protecting OAuth keys, webhook credentials, and Data Protection keys |
| Health | Dedicated port for the health endpoint |
| Identity Provider Certificate | Ignored legacy setting; migrate to the shared TLS certificate |
| Clients | Bootstrap client registrations created on startup |
The example selects MongoDB storage and port 35000; it is not a complete production configuration. Before starting the production image, configure the TLS certificate and Data Protection Key Encryption, and review Production hosting for the requirements and supported alternatives.
If your deployment provisions storage before starting replicas, use SQL schema operations or MongoDB index operations. Their verification modes have different startup behavior and runtime permission requirements.
Topics
Section titled “Topics”- Configuration File - Structure and location of
chronicle.json. - Root Properties - Ports and health check settings.
- Features - Toggle API, Workbench, and OAuth authority.
- Storage - Configure the storage provider and connection details.
- MongoDB Permissions - Databases Chronicle uses and the MongoDB roles it needs.
- Compliance Storage - Give compliance encryption keys their own storage backend.
- Clustering - Orleans clustering provider, cluster identity, and silo/gateway ports.
- Observers - Retry and timeout settings for observer subscriptions.
- Registration - How the kernel accepts and applies client registrations, and how it answers a busy kernel.
- Read Models - Configure replay retention for replay-generated read model versions.
- Sinks - Name the sinks read models and graphs are stored in, independent of the event storage.
- Events - Configure event queues.
- Memory - Memory budget and memory metrics.
- Authentication - External authority and default admin settings.
- TLS - Configure the TLS certificate for the Chronicle port and cluster traffic, which needs both server and client authentication usages.
- Data Protection Key Encryption - Configure the encryption certificate, required in production.
- Health Endpoint - Expose the health endpoint on a dedicated port with optional TLS.
- Workbench - Serve the Workbench under a path when a reverse proxy routes by path.
- Identity Provider Certificate - Migrate away from the ignored legacy certificate setting.
- Client Bootstrap - Register client applications on startup with hashed secrets.
- Environment Variables - Configure with
Cratis__Chronicle__settings. - Open Telemetry - Export metrics, traces, and logs via OTLP.
- Docker Configuration - Configure Chronicle in Docker.
- Configuration Precedence - How sources override each other.
- Best Practices - Recommended configuration guidelines.
- Port Reference - Ports exposed by Chronicle Server.
- Job Throttling - Limit parallel job steps to control CPU usage.
- SQL schema operations - Provision and verify SQL schemas before starting replicas.
- MongoDB index operations - Provision indexes offline and inspect index readiness.