Repository navigation
Release v19.74.0
A platform can now decide where each event store and namespace lives: Chronicle resolves the server, database, schema and identity per database and purpose, from configuration, a template or an HTTP endpoint. Nothing changes unless you configure it.
Added
storage.connectionResolutionresolves the connection for every event store, namespace and read model database, on MongoDB and SQL alike, using Arc's connection resolution contract:TemplateandHttpresolvers from configuration, orCustomwhen hosting the kernel in-process. A resolved connection string or database is used as given, without deriving a name or recording aDatabaseNamesbinding. The cluster database staysconnectionDetails. (#4948)- The
Httpresolver calls a language-neutral REST endpoint, the same for every storage type and specified at https://github.com/Cratis/Arc/blob/main/Documentation/connection-resolution-contract.md. Chronicle sendskind,eventStoreandnamespaceas its scope. (part of #4948) - Schema changes connect for the
Schemapurpose and data access forRuntime, so migrations can run as a different database user than the one reading and writing data. This covers creating databases and schemas, migrations, table migrations and the replay table swap. (#4949) storage.createIfMissing: set it tofalseand a missing database or schema fails withDatabaseDoesNotExistorSchemaDoesNotExistinstead of being created. (#4947)storage.schemakeeps Chronicle's SQL tables in a schema of your choice. On PostgreSQL it is put first on the search path. On SQL Server the database user's default schema must match, or migration fails withDefaultSchemaMismatch. (#4946)- MongoDB storage resolves the server, database name and identity of the event store, namespace and read model databases. Access tokens are used as MONGODB-OIDC credentials. (#4950)
- Documentation for storage connection resolution, including a database-per-tenant setup with Entra managed identities: https://github.com/Cratis/Chronicle/blob/main/Documentation/hosting/configuration/storage-connection-resolution.md (#4951) (#4945)
Changed
- Resolved SQL identities are applied each time a connection opens, so rotated passwords and refreshed access tokens take effect without a restart. A failed login drops the cached resolution and is retried. (part of #4948)
- Requires Cratis Arc 22.109.0 or later. (part of #4948)
Fixed
- SQL table, column and index lookups only consider the schema the connection uses. Before, a table of the same name in another schema of a shared database could be taken for Chronicle's own. (part of #4946)
- MongoDB clients are no longer shared between different credentials on the same servers. (part of #4950)