Skip to content

Release v19.74.0

Choose a tag to compare

@github-actions github-actions released this 16 Oct 18:24
6d42be8

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.connectionResolution resolves the connection for every event store, namespace and read model database, on MongoDB and SQL alike, using Arc's connection resolution contract: Template and Http resolvers from configuration, or Custom when hosting the kernel in-process. A resolved connection string or database is used as given, without deriving a name or recording a DatabaseNames binding. The cluster database stays connectionDetails. (#4948)
  • The Http resolver 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 sends kind, eventStore and namespace as its scope. (part of #4948)
  • Schema changes connect for the Schema purpose and data access for Runtime, 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 to false and a missing database or schema fails with DatabaseDoesNotExist or SchemaDoesNotExist instead of being created. (#4947)
  • storage.schema keeps 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 with DefaultSchemaMismatch. (#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)