Repository navigation
Release v23.12.4
Summary
Cratis.Chronicle, Cratis.Chronicle.AspNetCore and Cratis.Chronicle.Testing are updated from 19.164.4 to 19.172.0, picking up 19.164.5, 19.164.6, 19.165.0, 19.165.1, 19.166.0, 19.166.1, 19.166.2, 19.166.3, 19.167.0, 19.167.1, 19.168.0, 19.169.0, 19.170.0, 19.171.0, 19.171.1 and 19.172.0.
Added
- Chronicle 19.165.0: Preview on the Workbench Projections page works for
projection ... => graphdeclarations. It shows the nodes and edges the events build and, through a view, the nested rows a graph view query returns. - Chronicle 19.165.0: A "New graph" button loads an Organization example (people, groups, MEMBER_OF, PART_OF), and the help panel explains graph declarations.
- Chronicle 19.165.0: A
PreviewGraphProjectioncommand compiles the declaration, runs up to 1000 events of the event store through the real graph changeset builder against an in-memory graph, and evaluates graph views over the result, with compile errors, view errors and per-event failures returned in the result. - Chronicle 19.165.0: The kernel evaluates graph views in memory, held to the same shared query vectors as the client and Arc.
- Chronicle 19.165.0: Documentation for previewing graph projections in the Workbench.
- Chronicle 19.166.2: The standalone Workbench can bind to a configured address through
ChronicleWorkbenchOptions.Address, for examplelocalhostto listen only on loopback; leaving it empty keeps listening on all interfaces (Cratis/Chronicle#5597) - Chronicle 19.167.0:
FileSystemCachingTokenProviderhas a new constructor that takes a cache scope, such as the server address and client id. A cached token is only reused for the same scope. The existing constructor works as before; give each server and identity its own cache file when you use it. (Cratis/Chronicle#5598) - Chronicle 19.168.0: New
AdditiveEventTypeSchemaEvolutionEventStoressetting lists the event stores where Chronicle accepts an additive change to a registered event type's schema without a new generation. A change is additive when it only adds optional, nullable or defaulted properties. The list is empty by default, so every event store keeps strict validation; set it on every Chronicle server, inchronicle.jsonor withCratis__Chronicle__AdditiveEventTypeSchemaEvolutionEventStores__0=<event store>. (Cratis/Chronicle#5946) - Chronicle 19.168.0: Chronicle records an
EventTypeSchemaEvolvedsystem event when it accepts an additive schema change. (Cratis/Chronicle#5946) - Chronicle 19.168.0: The event type check result now includes a classification of the schema difference: identical, tolerated, additive or breaking. (Cratis/Chronicle#5946)
- Chronicle 19.169.0:
Federation:Hosted:Applicationslists the client ids of applications that may manage the hosted federation a kernel is the authority for: creating, listing and revoking enrollments, listing issued certificates, and setting and reading subject policies and links. A listed application gets this one capability,chronicle.federation.manage, and nothing else. Administrators hold it as part of their role. - Chronicle 19.170.0: A kernel that keeps its encryption keys in HashiCorp Vault can now host federation and issue mutation receipts. Before, Vault refused the kernel's own secrets, so creating an enrollment failed and mutation receipts had no key. These secrets are stored at
k1/~internal/<event-store>/<purpose>, apart from encryption keys, and the existing Vault policy already covers them. - Chronicle 19.171.0: New
StrictEventTypeSchemaEventStoressetting lists event stores that keep strict schema validation, where any change to a registered generation is rejected (Cratis/Chronicle#5955) - Chronicle 19.171.0: The event type check result reports properties removed by a client and compliance metadata added to an existing property as their own classifications instead of as tolerated differences (Cratis/Chronicle#5955)
- Chronicle 19.171.1:
shutdown.hostShutdownReserveconfiguration (default 5 seconds): the time kept after the drain for the host to stop its remaining services. Zero or negative values are rejected at startup. (Cratis/Chronicle#5958) - Chronicle 19.172.0: Silo-to-silo and Orleans gateway traffic is encrypted and mutually authenticated with the certificate from
Tls:CertificatePathwhen clustering isMongoDBorSql. Certificate renewals are picked up without a restart, as on the main port. - Chronicle 19.172.0: A node accepts a peer that presents the same certificate, or one issued by an authority stored in the same PFX file, such as the CA a cert-manager keystore carries.
- Chronicle 19.172.0:
Clustering:TlsEnabled(defaulttrue) turns this off for deployments where the network already encrypts the traffic, for instance a service mesh.
Changed
Cratis.Chronicle,Cratis.Chronicle.AspNetCoreandCratis.Chronicle.Testingare updated to19.172.0- Chronicle 19.164.6: "Observer deactivating", "Source event store became available" and "Event store subscription is ready to receive events" are logged at Debug instead of Information. Failures and warnings keep their levels.
- Chronicle 19.165.0: The projection editor recognizes graph declarations and no longer marks them as errors, so Preview and Save stay available.
- Chronicle 19.165.1: "Client disconnected" and "Observer unsubscribed" are logged at Debug instead of Information. A client that disconnects ungracefully still logs its warning.
- Chronicle 19.166.1: Document the ownership rules for saved queries and folders in the Workbench: only the owner or an administrator can change or delete them, and sharing with Everyone controls visibility only (Cratis/Chronicle#5594)
- Chronicle 19.167.0: The token cache file and its folder are readable and writable by the current user only, on Windows as well as Unix. The file is protected before the token is written and replaced atomically, and a cache file other users can read is ignored and rewritten. (Cratis/Chronicle#5598)
- Chronicle 19.167.0: A cached token is never kept longer than the configured lifetime, even when the token itself expires later. (Cratis/Chronicle#5598)
- Chronicle 19.167.0: The connection string documentation explains where the token cache lives and that, with SRV discovery, the selected target host receives the client credentials for the token request. (Cratis/Chronicle#5598)
- Chronicle 19.167.1: The hosting documentation describes certificate renewal. The password and the encryption certificate are still read at startup.
- Chronicle 19.168.0: Removing, renaming or retyping a property of a registered event type is still rejected with
EventTypeSchemaChangedin every event store; breaking changes need a new generation. Chronicle's own event types are never evolved in place. (Cratis/Chronicle#5946) - Chronicle 19.171.0: Additive changes to a client-owned event type's schema are accepted in place for every event store and recorded with an
EventTypeSchemaEvolvedsystem event;AdditiveEventTypeSchemaEvolutionEventStoresis obsolete, ignored, and logs a warning at startup when set (Cratis/Chronicle#5955) - Chronicle 19.171.0: Adding a required non-nullable property, with or without a default, is treated as a breaking change, because older clients cannot append events without it (Cratis/Chronicle#5955)
- Chronicle 19.171.0: The event type evolution documentation explains that older events read new non-nullable properties as their type's default, that new properties should not be used as keys or joins, and that adding PII or encryption to an existing property does not protect events already stored (Cratis/Chronicle#5955)
- Chronicle 19.171.1: The host shutdown timeout is now the drain timeout plus the reserve (13 seconds by default), so the drain is no longer cut short by a fixed 2-second margin. A shutdown that overruns the host timeout still exits with code 70. (Cratis/Chronicle#5958)
- Chronicle 19.171.1: Kernel options validation and schema evolution are restructured for maintainability without changing behaviour. (part of Cratis/Chronicle#5913)
- Chronicle 19.172.0: Upgrading a cluster that already has a certificate configured turns cluster TLS on. A node that encrypts cannot talk to one that does not, so stop every node and start them again instead of doing a rolling upgrade, or set
Clustering:TlsEnabled=falseuntil you can. Localhost clustering, a deployment without a certificate file, and one that runs withTls:Enabled=falseare unaffected. An Orleans client that connects through the gateway needs TLS with an accepted certificate, orClustering:GatewayEnabled=falseif only gRPC and HTTP clients connect.
Fixed
- Chronicle 19.164.5: The ASP.NET Core namespace resolver no longer creates comma-joined namespaces such as
tenant,tenantwhen the tenant header is sent more than once. Repeated or comma-separated header values that name the same namespace resolve to that namespace, and values naming different namespaces are rejected with anAmbiguousNamespaceHttpHeadererror that names the header. (Cratis/Chronicle#5891) - Chronicle 19.166.0: Date-time event properties appended with a non-UTC offset keep that offset when the event is read back through the API, gRPC, SQL storage and compliance release, instead of being shifted into the host's local time; values written in UTC or without an offset, and previously stored events, read back exactly as before (Cratis/Chronicle#5907)
- Chronicle 19.166.0: Unique constraints treat two date-time values for the same instant as equal regardless of the offset they were written with (Cratis/Chronicle#5907)
- Chronicle 19.166.1: Constraint diagnostics and logs no longer include event source ids (Cratis/Chronicle#5692)
- Chronicle 19.166.1: Observers no longer stall when a catch-up finds no work while still behind the event log; they retry catch-up shortly instead (part of Cratis/Chronicle#5351)
- Chronicle 19.166.1: Disposing an in-process Chronicle connection in integration specs now ends its connection loop instead of pinging the disposed silo until the process exits (Cratis/Chronicle#5619)
- Chronicle 19.166.1: Decimal properties declared alongside an inherited schema are now stored as decimals instead of doubles (Cratis/Chronicle#5840)
- Chronicle 19.166.1: Retrying a failed partition from the operator tools now works after its automatic attempts are exhausted, and the partition stays quarantined when no retry job starts (Cratis/Chronicle#5715)
- Chronicle 19.166.1: Resolving two deferred events for the same new child together no longer creates duplicate child entries (Cratis/Chronicle#5662)
- Chronicle 19.166.1: Corrected documentation pages that no longer matched the code, and added reference pages for analyzer rules CHR0058–CHR0061 (Cratis/Chronicle#5931)
- Chronicle 19.166.2: Event store subscriptions now report which constraints rejected a forwarded event and forward content whose property casing differs from the target event type's schema (part of Cratis/Chronicle#5797)
- Chronicle 19.166.2: Protected values encrypted under an earlier key revision now decrypt after a key rotation instead of failing with an OAEP decoding error on every read (Cratis/Chronicle#5887)
- Chronicle 19.166.2: The implicit subscriptions tutorial now uses a published package version and targets .NET 10 (Cratis/Chronicle#5564)
- Chronicle 19.166.2: The .NET quickstart includes the namespace needed for the connection string (Cratis/Chronicle#5565)
- Chronicle 19.166.2: The short-lived processes guide gives correct subscription and manual registration guidance (Cratis/Chronicle#5572)
- Chronicle 19.166.2: The TypeScript gRPC contributor guide names the Node version the workflows use (Cratis/Chronicle#5592)
- Chronicle 19.166.2: The .NET client getting-started page names
IEventLog(Cratis/Chronicle#5643) - Chronicle 19.166.3: A new definition change for a projection, reactor, reducer or webhook now replaces the replay recommendation still pending from an earlier change, so only the latest one is offered. Removing an observer also removes its recommendations, and an ignored recommendation no longer reappears when the same change is reported again. (Cratis/Chronicle#5644)
- Chronicle 19.166.3: Pull-request builds of the Workbench now reuse the yarn cache saved on main instead of downloading every package again. (Cratis/Chronicle#5918)
- Chronicle 19.167.0: Observable queries on a parent read model now update when a child is removed through a join (
RemoveWithJoin), and a parent's cached state is correct after many children are removed at once. (part of Cratis/Chronicle#1896) - Chronicle 19.167.1: The Chronicle and dedicated health listeners reload the PKCS#12 file at
tls:certificatePathwhen it changes (checked on a handshake, at most every 30 seconds). A file that cannot be loaded keeps the current certificate and is logged once. - Chronicle 19.168.0: Chronicle now removes recommendations left behind for observers and projections that no longer exist when it starts (Cratis/Chronicle#5644)
- Chronicle 19.171.0: An older client re-registering an event type after a newer client added a required nullable or defaulted property no longer fails with
EventTypeSchemaChangedduring rolling deploys and rollbacks (Cratis/Chronicle#5955) - Chronicle 19.171.1: The Hot Core Gate check now waits for the .NET build of the same commit to finish its specs instead of failing while they are still running, and turns green on its own once they pass. Fork pull requests still report at once with the manual re-run hint. (Cratis/Chronicle#5957)
- Chronicle 19.171.1: Spec runs in CI now log each project's start, duration and exit status, and sample memory, disk and the largest processes every 30 seconds, so resource exhaustion in the other-specs shard can be diagnosed. (Cratis/Chronicle#5959)
Security
- Chronicle 19.169.0: Creating and revoking enrollments and changing subject policies are now refused for a caller that is neither an administrator nor a listed application, also when administrator operations are in audit mode. Before, such a caller was only logged.