Skip to content

ChronicleOptions Reference

ChronicleOptions is the root configuration class for all Chronicle .NET clients. All properties can be set in code via the configureOptions callback on AddCratisChronicle, and most can be bound directly from appsettings.json under the Cratis:Chronicle section.

There are three options classes that form an inheritance chain, each adding settings relevant to its hosting context:

Class Used by Adds
ChronicleOptions All clients Connection, serialization, timeouts, TLS, auth, telemetry, concurrency
ChronicleClientOptions Worker services, console apps Event store name, namespace resolver type
ChronicleAspNetCoreOptions ASP.NET Core apps HTTP header–based namespace resolution, automatic middleware, request unit of work

Several connection settings exist both as options and as connection string keys (TLS paths, skipTlsValidation, skipKeepAlive, skipCompatibilityCheck, serverless). Connection string and option precedence says which one wins. Values that must agree with the kernel are listed in Settings that must match the kernel.

All bindable settings live under Cratis:Chronicle:

{
"Cratis": {
"Chronicle": {
"ConnectionString": "chronicle://localhost:35000",
"EventStore": "my-store",
"EnableEventTypeGenerationValidation": false,
"DefaultSinkTypeId": "SQL",
"ConnectTimeout": 5,
"AutoDiscoverAndRegister": true,
"MaxReceiveMessageSize": 104857600,
"MaxSendMessageSize": 104857600,
"ProgramIdentifier": "my-app",
"ClaimsBasedNamespaceResolverClaimType": "tenant_id",
"Tls": {
"CertificatePath": "/certs/client.pfx",
"CertificatePassword": "secret"
}
}
}
}

Asks the Kernel to enforce strict migration chain validation when registering event types at generation 2 or higher. The value is forwarded as part of the registration request.

Type bool
Default false

Image restriction: This flag is only honoured by the development image of the Kernel. The production image always ignores it and validates unconditionally, regardless of what the client sends. This makes it impossible to accidentally skip migration chain validation in production even if the client has this flag set to false.

To opt in to strict validation during development (recommended once your event schemas are stable), set the flag to true:

using Microsoft.Extensions.Hosting;
public static class ChronicleOptionsEnableValidationRegistration
{
public static void Configure(string[] args)
{
var builder = Host.CreateApplicationBuilder(args);
builder.AddCratisChronicle(configureOptions: options =>
{
options.EnableEventTypeGenerationValidation = true;
});
}
}

View C# snippet source on GitHub

In appsettings.json: "EnableEventTypeGenerationValidation": true.

See Generation Validation for the full ruleset.

Controls event staging once a unit of work begins completing.

Type UnitOfWorkLifecyclePolicy (Compatibility or Strict)
Default Compatibility

In appsettings.json: "UnitOfWorkLifecyclePolicy": "Strict" under Cratis:Chronicle. Strict rejects late staging; Compatibility keeps legacy enrollment behavior and reports late attempts. Strict will become the default in the next major release. See Staging after completion begins for commit, rollback, and disposal behavior.

The gRPC endpoint for Chronicle Server.

Type ChronicleConnectionString
Default Development connection string (chronicle://localhost:35000 with default dev credentials)
using Microsoft.Extensions.Hosting;
public static class ChronicleOptionsConnectionStringRegistration
{
public static void Configure(string[] args)
{
var builder = Host.CreateApplicationBuilder(args);
builder.AddCratisChronicle(configureOptions: options =>
{
options.ConnectionString = "chronicle://myserver:35000";
});
}
}

View C# snippet source on GitHub

In appsettings.json: "ConnectionString": "chronicle://myserver:35000".

Timeout in seconds when establishing a connection to Chronicle Server.

Type int
Default 5

Controls whether Chronicle automatically discovers event types, projections, reactors, reducers, and other artifacts from loaded assemblies on startup.

Type bool
Default true

Set to false when using a custom IClientArtifactsProvider or when you want full manual control over what gets registered.

Skips the connect-time wire-compatibility check against the server.

Type bool
Default false

Use this only as a deliberate, temporary escape hatch — for example, when a client that has only gained capabilities since the server’s release is incorrectly refused by a server that cannot be redeployed to pick up a wire-compatibility fix. It does not make an incompatibility disappear; it silences every incompatibility the check would have caught, including a genuine one. The connection string’s skipCompatibilityCheck=true option asks for the same thing; either input is enough. See Server support: Compatibility check for the full explanation.

Skips the keep-alive connection on connect.

Type bool
Default false

Intended for short-lived processes such as command line tools, functions and jobs. A client that skips keep-alive registers no reactors or reducers. The connection string’s skipKeepAlive=true option asks for the same thing. See Short-lived processes.

Controls what the client registers when it connects: Inline (everything discovered, the default), EventTypesOnly or AtDeployment (nothing). Applies to automatic registration and to an explicit RegisterAll() call. See Short-lived processes.

Settings for running the .NET client in a function or another scaled-to-zero host, bound from Cratis:Chronicle:Serverless.

Type ChronicleServerlessOptions
Default Mode is Off
Nested property Type Default When to change
Mode ServerlessMode Off Select Serverless for scaled-to-zero hosts.
ReceiverUrl Uri? null Supply an absolute receiver base URL; HTTPS is required outside Development.
ReceiverPath string /chronicle/deliveries Change the relative receiver endpoint path.
Registration ServerlessRegistration Deploy Choose when definitions are registered.
DefaultDelivery ObserverDelivery Http Select observer delivery when no override exists.
DeploymentGeneration ulong 0 Set the deployed generation; nonzero is required with Deploy outside Development.
CheckArtifactFingerprint bool true Disable the advisory metadata query and fingerprint computation.
AllowOnColdStartOutsideDevelopment bool false Explicit acknowledgement required for OnColdStart outside Development.
Auth.Type ReceiverAuthenticationType Signature Choose receiver authentication.
Auth.AllowUnauthenticated bool false Required with Auth.Type=None; do not enable for public receivers.
Delivery.Timeout TimeSpan 00:00:30 Positive delivery timeout.
Observers IDictionary<string, ServerlessObserverOptions> Empty Per-observer nullable Delivery override, which takes precedence over its attribute; IDs containing : cannot be keys.

For example, under Cratis:Chronicle, set "ProgramIdentifier": "orders" and "Serverless": { "Mode": "Serverless", "Registration": "Deploy", "DeploymentGeneration": 42 } for definitions deployed at generation 42. Mode requires a stable, nonblank ProgramIdentifier, not "[N/A]". Undefined mode, registration, authentication and default-delivery values fail validation. Messages name the Cratis:Chronicle:Serverless:* key (or Cratis:Chronicle:ProgramIdentifier) to change. Consult the serverless guide before enabling a receiver; these options do not imply support for every delivery combination.

Set Mode to Serverless to skip keep-alive and validate the serverless configuration at start. HTTP delivery is not available yet, so an observer that resolves to it fails at startup. Delivery:Timeout (30 seconds by default, must be greater than zero) is the delivery timeout for HTTP reactors and reducers; it has no effect until HTTP delivery ships and does not change the kernel’s 60 second webhook timeout. See Serverless mode.

Serverless:CheckArtifactFingerprint defaults to true. In serverless Deploy mode only, it schedules one background deployment-metadata query and a local prepared-definition fingerprint comparison per client and event-store name, shared across namespaces. It warns about missing or stale deployment metadata without blocking callers, registering artifacts or changing readiness. A nonzero DeploymentGeneration is compared too; zero leaves only the fingerprint comparison. Set Cratis:Chronicle:Serverless:CheckArtifactFingerprint to false to avoid the query and computation. This is a best-effort diagnostic, not enforcement or automatic repair; manual discovery mode checks only current prepared artifacts. Deployment tooling remains responsible for registering definitions, and non-native registries retain their existing empty fingerprint contribution.

ActivationId, ActivationScope and LifecycleScope

Section titled “ActivationId, ActivationScope and LifecycleScope”

These settings select the identity and delivery boundary for lifecycle occurrence handlers.

Property Type Default When to change
ActivationId ActivationId? null Supply a stable rollout identity shared by instances when lifecycle handlers are used with application activation scope
ActivationScope ActivationScope Application Opt into PerProcess for a fresh identity per process and a shutdown attempt during ApplicationStopping
LifecycleScope LifecycleScope Application Select AllNamespaces to record lifecycle delivery per namespace existing when intent is recorded

For example, set "ActivationId": "orders-rollout-42", "ActivationScope": "Application", and "LifecycleScope": "Application" under Cratis:Chronicle. These are not connection readiness switches. See Lifecycle occurrences.

The read-only ExplicitArtifacts collection starts empty. Populate it in code before creating stores when declarations cannot be discovered from markers; configuration binding is not a replacement for executable definitions. See Explicit artifacts for an example and snapshot behavior.

An optional code-only ILoadBalancerStrategy instance, null by default. When unset, the connection string selects the strategy, defaulting to round-robin. Supply a custom strategy through configureOptions only when the built-in endpoint selection policies do not fit. See Connection string options.

DefaultSinkName, DefaultGraphSinkTypeId and DefaultGraphSinkName

Section titled “DefaultSinkName, DefaultGraphSinkTypeId and DefaultGraphSinkName”
Property Type Default When to change
DefaultSinkName string Empty Select a named kernel sink for read models without a Sink attribute; empty delegates to the kernel’s default or its storage
DefaultGraphSinkTypeId SinkTypeId WellKnownSinkTypes.Neo4j Use WellKnownSinkTypes.InMemoryGraph for development/test graph projections
DefaultGraphSinkName string Empty Select a named graph sink; empty delegates to the kernel’s graph default or Neo4j server

For example, set "DefaultSinkName": "reporting" and "DefaultGraphSinkName": "relationships" under Cratis:Chronicle after configuring those named sinks on the kernel. See Sinks.

Controls which sink type is used when registering projections and reducers with the Kernel. Chronicle supports two built-in sink types:

Value Description
WellKnownSinkTypes.MongoDB Stores read models in MongoDB (default)
WellKnownSinkTypes.SQL Stores read models in a SQL database as typed scalar columns (the key in a non-JSON column), with nested objects and collections in JSON columns. See Sinks
Type SinkTypeId
Default WellKnownSinkTypes.MongoDB

To use SQL as the storage backend for all read models:

using Microsoft.Extensions.Hosting;
using Cratis.Chronicle.Sinks;
public static class ChronicleOptionsSqlSinkRegistration
{
public static void Configure(string[] args)
{
var builder = Host.CreateApplicationBuilder(args);
builder.AddCratisChronicle(configureOptions: options =>
{
options.DefaultSinkTypeId = WellKnownSinkTypes.SQL;
});
}
}

View C# snippet source on GitHub

In appsettings.json:

{ "Cratis": { "Chronicle": { "DefaultSinkTypeId": "SQL" } } }

See Sinks for detailed guidance on storage backends.

MaxReceiveMessageSize / MaxSendMessageSize

Section titled “MaxReceiveMessageSize / MaxSendMessageSize”

Maximum gRPC message sizes in bytes. See gRPC Message Size for detailed guidance.

Type int?
Default 104857600 (100 MB)

Whether every reactor and reducer of the client is observed over one stream per connection instead of one stream each. It defaults to true and takes effect only against a kernel that advertises the multiplexed-observation capability; against an older kernel every reactor and reducer keeps its own stream whatever this is set to. Turn it off to keep per-observer streams, for example when a proxy between the client and the kernel does not suit long-lived multiplexed streams.

A human-readable identifier for the running application. Included in root causation metadata to identify which program appended an event.

Type string
Default "[N/A]"

The software version of the entry assembly, extracted from AssemblyInformationalVersion or AssemblyVersion. Included in root causation to track which build produced an event, and sent with every projection registration so the kernel can ignore a registration from an older version than the one it has stored. Set it with the Cratis:Chronicle:SoftwareVersion configuration key (environment variable Cratis__Chronicle__SoftwareVersion). See the registration lifecycle.

Type string (semantic version)
Default Resolved from the entry assembly at startup

The commit SHA of the entry assembly, extracted from the +commit part of AssemblyInformationalVersion. Included in root causation to track which commit produced an event.

Type string
Default Resolved from the entry assembly at startup

The JWT claim type used by ClaimsBasedNamespaceResolver when namespace resolution is configured via WithClaimsBasedNamespaceResolver.

Type string
Default "tenant_id"

How registering the client’s artifacts is retried when the Kernel does not accept them.

Type RegistrationRetryOptions
Default Five attempts, two seconds growing to thirty
Nested property Type Default Description
MaxAttempts int 5 How many times registering all artifacts is attempted before the failure surfaces. 1 disables retrying
InitialDelay TimeSpan 00:00:02 Wait after the first failed attempt. Each further attempt doubles it, jittered
MaximumDelay TimeSpan 00:00:30 Upper bound for the wait between attempts

Registration retries let a client wait out a busy kernel rather than immediately repeating the whole startup. Registration is idempotent. In a hosted application the eager connection runs in the background: exhausted retries are logged and readiness remains unhealthy, rather than stopping the host. Direct callers still observe registration failures. See Startup and readiness.

In appsettings.json:

{ "Cratis": { "Chronicle": { "RegistrationRetry": { "MaxAttempts": 10, "MaximumDelay": "00:01:00" } } } }

How the .NET client runs reactors.

Nested property Type Default Description
MaxConcurrentPartitions int processor count, at most 8 How many partitions of one reactor are handled at the same time. Batches for one partition always run in order. 1 handles one batch at a time, as before. Must be at least 1

Handlers for different partitions can run at the same time, so shared non-thread-safe services are at risk.

{ "Cratis": { "Chronicle": { "Reactors": { "MaxConcurrentPartitions": 4 } } } }

How the .NET client runs reducers.

Nested property Type Default Description
MaxConcurrentPartitions int processor count, at most 8 How many partitions of one reducer are handled at the same time. Batches for one partition always run in order. 1 handles one batch at a time, as before. Must be at least 1
{ "Cratis": { "Chronicle": { "Reducers": { "MaxConcurrentPartitions": 4 } } } }

Controls the .NET client’s check for likely artifact renames or moves before each foreground registration run. Background retries retain its findings without repeating snapshots or drift logs.

Type ArtifactIdentityDriftPolicy
Default Warn
Values Warn, Fail, Ignore

Warn logs findings and continues registering. Fail throws ArtifactIdentityDriftDetected before any artifacts are registered when Warning-level reactor or event type findings exist, without retrying. Information-level reducer and projection findings never fail registration. Ignore skips the check and its kernel calls. Snapshot failures never prevent registration, even with Fail; a failed subscription confirmation omits that reactor or reducer candidate. Projections skip confirmation because the kernel keeps them subscribed until registration retires them.

In appsettings.json:

{ "Cratis": { "Chronicle": { "ArtifactIdentityDrift": "Fail" } } }

Use Fail in CI or staging to investigate likely identity changes before deploying. This is a heuristic: rolling deployments can hide reactor or reducer renames, and unrelated same-named observers or same-shaped events can match. Projections are more prone to false positives because subscribed candidates are included; their findings remain informational. Event types cannot be removed to acknowledge a finding; preserve the old id or switch to Warn after reviewing an intentional new identity. See Discovery report and identity drift for findings, log levels, and limitations.

Controls what the client puts on its OpenTelemetry spans. Bound from Cratis:Chronicle:Telemetry.

Nested property Type Default Description
SpanNames ClientSpanNames Legacy Span naming convention. Keep Legacy until dashboards and alerts are moved to the new names. See Telemetry names
EventSourceIdTracing EventSourceIdTracing Raw How event source ids appear in spans. Raw writes the id as is, so an id that contains personal data reaches your tracing backend. Use Hashed (or turn it off) when ids can identify a person
EventSourceIdHashKey string? null Secret used when EventSourceIdTracing is Hashed. At least 32 characters; startup validation fails otherwise. Not read from serialized options, so supply it from a secret store
{ "Cratis": { "Chronicle": { "Telemetry": { "EventSourceIdTracing": "Hashed" } } } }

Set the hash key through Cratis__Chronicle__Telemetry__EventSourceIdHashKey. See Telemetry identifiers and Tracing client operations.

Default behavior for event concurrency. Set in code through the ChronicleOptions constructor argument or configureOptions; it is not a configuration-file section.

Property Type Default When to change it
DefaultStrategy Type OptimisticConcurrencyStrategy Replace it with your own IConcurrencyStrategy implementation when every append needs the same custom check
CheckFirstAppendIntoAScope bool false Set to true to reject the first append into a narrowed scope when a matching event already exists. Turning it on rejects appends that succeed today; it is scheduled to become the default in the next major version
SkipIncompleteExplicitScopes bool false Keeps the legacy unchecked behavior for incomplete caller-supplied scopes. Leave it off unless an existing caller depends on that
AllowRouteScopeStreamMismatch bool false Allows a definition-linked explicit scope to guard a different stream than a single-route append

The System.Text.Json options the client uses to serialize events. Code only: set it through the ChronicleOptions constructor argument or configureOptions; it cannot be bound from configuration.

Type JsonSerializerOptions
Default A new JsonSerializerOptions with System.Text.Json defaults

Change it when events need custom converters. Property naming is controlled separately by the naming policy, not by this setting.

How client reactors, reducers and typed materialized projections receive event generations.

Type EventGenerationDelivery
Default Compatibility

Pinned asks the kernel to select and release the subscribed generation. Leave the default unless you are migrating event types across generations. See Migrations.

The client sets these values itself. They cannot be configured, so they do not appear in any options class.

Behavior Value
gRPC keep-alive ping Every 60 seconds, with a 30-second timeout for the reply
gRPC call retry Up to 5 attempts, backing off from 1 second to 10 seconds (multiplier 1.5)
Endpoint handshake per server 5 seconds, within the ConnectTimeout budget
Connection watchdog Treats the connection as stale after 5 seconds without keep-alive; reconnect waits double from 1 second up to 30 seconds

ConnectTimeout is the only connection timeout you can change. Retry of artifact registration is separate and configurable through RegistrationRetry.

The client uses TLS by default for the gRPC connection, independently of client-certificate configuration. CertificatePath and CertificatePassword configure a client certificate; they do not enable TLS. The disableTls=true connection-string option uses cleartext HTTP/2 instead and requires a matching cleartext kernel listener.

Server certificate validation is separate: SkipCertificateValidation defaults to true. Validation is skipped only when both this option and the connection string’s skipTlsValidation permit it; skipping accepts any server certificate, including self-signed certificates. Set SkipCertificateValidation to false to enable validation. When the only validation errors are certificate-chain errors, the client still accepts the server certificate if its hash matches the configured client certificate’s hash. This pinning exception does not bypass a host-name mismatch or a missing server certificate. See TLS for full details.

Type Tls
Default TLS enabled, no client certificate configured, server certificate validation skipped
Nested property Type Default Description
CertificatePath string? null Path to a PFX client certificate file
CertificatePassword string? null Password for the client certificate file
CaCertificatePath string? null Path to a PEM or PKCS#7 file with the certificate authorities the server certificate must chain to when validation is enabled; see TLS
SkipCertificateValidation bool true Skip server certificate validation

Kernel delivery settings under Cratis:Chronicle:Occurrences. These settings do not change observer retry policy.

Property Type Default Behavior
MaxInFlight int 1 Maximum live leases per trigger and scope; values below one use one
MaxAttempts int 10 Quarantines exhausted work; zero permits unlimited attempts
BackoffDelay int 1 Initial failure retry delay in seconds; negative values use zero
ExponentialBackoffDelayFactor float 2 Multiplier per failed attempt; values below one use one
MaximumBackoffDelay int 600 Failure retry delay cap in seconds; negative values use zero

Lease duration is selected by the claim or renew request, not this section: zero or a negative value uses 60 seconds, and the maximum is 600 seconds. Claims return at most 1,000 occurrences and remain subject to MaxInFlight. Kernel time controls expiry and backoff. See occurrence delivery and receipts for ordering, quarantine and recovery.

Kernel settings for bulk event imports under Cratis:Chronicle:Imports.

Property Type Default Behavior
StagingRetention TimeSpan 24:00:00 An open import without activity for longer than this is abandoned and its staging discarded
RetentionSweepInterval TimeSpan 00:15:00 How often each silo looks for imports that outlived their retention
CommitChunkSize int 1000 How many staged events the commit appends in one call to the event sequence
MaxChunkEvents int 1000 The most events one staged chunk may carry
MaxChunkBytes int 4194304 The most bytes of event content one staged chunk may carry

OAuth/OIDC authority configuration for the client-credentials token. The .NET client requests its token from, in order of precedence: TokenEndpoint, the token endpoint discovered from Authority ({Authority}/.well-known/openid-configuration), or the Chronicle server’s own /connect/token.

Type Authentication
Default Internal authority
Nested property Type Description
Authority string? OAuth/OIDC authority URL used to discover the token endpoint
TokenEndpoint string? Token endpoint used as is; takes precedence over Authority
Scope string? Scope sent with the token request; requires TokenEndpoint or Authority

Optional external-provider example. Leave Authentication out to keep requesting tokens from the Chronicle server, and replace the placeholder values with your own provider:

{
"Cratis": {
"Chronicle": {
"Authentication": {
"Authority": "https://login.example.com",
"Scope": "api://chronicle/.default"
}
}
}
}

These options apply only to client credentials, so API key and auth=none connections ignore them. Authority and TokenEndpoint must be absolute https URLs without user info, and the .NET client always validates the certificate of an external authority. The connection string must carry its own client credentials, because the development credentials are never sent to an external authority.

ChronicleClientOptions extends ChronicleOptions and is used by worker services, console apps, and other non-web hosts via IHostApplicationBuilder.AddCratisChronicle.

The name of the event store the client connects to. Hosted registration derives it when no nonblank name is configured.

Type EventStoreName
Hosted default Normalized ProgramIdentifier when nonblank and not "[N/A]"; otherwise the normalized entry assembly name
Direct options default Empty; direct ChronicleClient construction does not apply hosted binding or this fallback. Pass a name to GetEventStore

The derived name is trimmed, control characters and /, \\, ., space, ", $, *, <, >, :, \|, ?, + become -, repeated separators collapse and leading/trailing - are removed. It is capped at 32 UTF-8 bytes without splitting a surrogate pair. An explicitly configured name is not normalized. For example, an entry assembly named Orders.Api yields Orders-Api.

Override it to share a store across applications or keep a stable name when renaming an assembly. Set Cratis:Chronicle:EventStore (Cratis__Chronicle__EventStore) or configureOptions.EventStore. If the selected fallback source cannot yield a name, startup options validation names that key and the callback remedy:

{ "Cratis": { "Chronicle": { "EventStore": "my-store" } } }

The Type of the IEventStoreNamespaceResolver to use for resolving the event store namespace. The default depends on the host:

Host Default
Worker services and console apps (ChronicleClientOptions) null, which resolves to DefaultEventStoreNamespaceResolver at runtime and always returns the default namespace
ASP.NET Core (ChronicleAspNetCoreOptions) HttpHeaderEventStoreNamespaceResolver, which reads the namespace from the request header and falls back to the default namespace when the header is absent
Type Type?
Default Per host, see the table above

This is a structural dependency — it resolves a type reference and cannot be meaningfully set from appsettings.json. Set it in code via the configureOptions callback or via IChronicleBuilder.

ChronicleAspNetCoreOptions extends ChronicleClientOptions and is used by ASP.NET Core applications via WebApplicationBuilder.AddCratisChronicle. It defaults EventStoreNamespaceResolverType to HttpHeaderEventStoreNamespaceResolver, unlike the other hosts, which use the default resolver.

The HTTP request header used to resolve the event store namespace on a per-request basis.

Type string
Default "x-cratis-tenant-id"
{ "Cratis": { "Chronicle": { "NamespaceHttpHeader": "x-my-tenant" } } }

Controls whether Chronicle’s unit of work and causation middleware is installed by startup filters.

Type bool
Default true

Set to false when the middleware must run after authentication and authorization. Then place it yourself with app.UseCratisChronicle() at that point in the pipeline.

Settings for the request unit of work, bound from Cratis:Chronicle:UnitOfWork.

Nested property Type Default Description
ReportFailuresBeforeResponseStarts bool false When true, MVC completes the request’s unit of work before executing the result and reports a failed commit as problem details (409 for conflicts, 400 for constraint violations, 500 otherwise). Minimal APIs opt in separately with WithUnitOfWork(). See Transactions

The Kernel’s Cratis.Chronicle.Configuration.ChronicleOptions.Webhooks is separate from the client options above. Set these keys under webhooks in the Kernel’s chronicle.json, or under Cratis:Chronicle:Webhooks in application configuration. Environment variable equivalents use Cratis__Chronicle__Webhooks__ followed by the key.

Key Default Purpose
Validation Warn in builds compiled with DEVELOPMENT; BlockLocalAddresses otherwise BlockLocalAddresses blocks local ranges, BlockPrivateAddresses blocks all private/special ranges, and Enforce rejects every violation. Other violations warn. Metadata requires explicit approval in every mode. Enforce is reserved as the next-major default.
AllowInsecureHttp false Permit HTTP in Development. Ignored with a startup warning outside Development. Loopback HTTP is automatically permitted in Development.
AllowedHosts [] Exact receiver/OAuth hosts or wildcard subdomains such as *.example.com. In Enforce mode unlisted hosts are rejected; approving a host also permits its private addresses.
EventStoreAllowedHosts {} Map of event-store names to host arrays. An entry replaces the global array, including when empty. Requests without an event-store option use the global list.
TestTimeoutSeconds 10 Timeout in seconds for the registration reachability probe.
RequestTimeoutSeconds 60 Deadline for one delivery HTTP attempt.
CircuitBreakerSamplingDurationSeconds 30 Failure sampling window for each receiver authority.
CircuitBreakerBreakDurationSeconds 15 How long an opened circuit defers delivery.
RetryDelaySeconds 2 Retained legacy setting; the current HTTP pipeline performs one attempt and durable retry delays come from Webhooks:Retry, not this value.

Managed identity webhooks lend the kernel’s own Azure identity to the receiver. Configure these global operator allow-lists and the receiver’s host allow-list first, before registering a webhook. There are no per-event-store managed identity options.

Webhooks:ManagedIdentity key Default Purpose
AllowedScopes [] Empty disables managed identity webhooks. Complete scopes match ignoring case; no prefix or wildcard matching.
AllowedClientIds [] Non-empty client ids must match an entry exactly.
AllowSystemAssigned false Permit an empty client id, including workload identity’s AZURE_CLIENT_ID default.

Managed identity receivers must match AllowedHosts even when Validation is Warn. Existing EventStoreAllowedHosts overrides and wildcard subdomain rules still apply. Registration and delivery enforce approval before requesting a token. Other authorization types keep their existing validation behavior. See Managed identity setup for JSON and environment variable examples.

Webhook delivery uses one HTTP attempt at a time. The observer owns retries, a finite retry budget, and durable deadlines; the HTTP resilience pipeline has no retry strategy. RetryDelaySeconds is retained for compatibility but no longer controls delivery retries. Webhook retry policy is configured under Webhooks:Retry, independently of the global observer retry settings. Non-webhook observers retain their existing retry and quarantine defaults.

Webhooks:Retry key Default Purpose
BackoffScheduleSeconds [1, 5, 30, 120, 600, 1800, 3600] Delays for successive failures; the last entry repeats. Setting it replaces the default schedule.
MaximumBackoffDelay 3600 Caps the delay in seconds, including bounded ±20% jitter.
MaxRetryAttempts 0 No attempt-count limit; a positive value adds a limit alongside the elapsed budget.
RetryBudget "1.00:00:00" Elapsed budget from the first persisted failure since quarantine was last cleared. Zero disables this limit.
QuarantineOnFailedPartitionCount 5 Pause the observer when this many partitions are parked. Zero disables this threshold.
QuarantineOnFailedPartitionPercentage 0.5 Pause at or above this fraction of distinct partitions in failure/resolution history. Zero disables this threshold.

Either exhausted retry limit parks the partition. Schedule deadlines and the first failure’s timestamp survive reactivation; jitter is not resampled. Valid receiver/circuit deferrals do not consume attempts or count toward quarantine. Eligible quarantined webhooks can recover through the quarantine probe policy; operators can also recover them manually.

MaximumRetryAfterSeconds bounds receiver-provided Retry-After delays on 429 and 503 responses. Its default is 86400 seconds (24 hours). Invalid or expired headers fall back to the retry budget, without sleeping in the HTTP pipeline. A valid deferral and an open-circuit rejection do not consume retry attempts. See webhook delivery policy for configuration-error pauses, immediate 410 parking, and manual recovery.

For example, Cratis__Chronicle__Webhooks__Validation=Enforce enables blocking, and Cratis__Chronicle__Webhooks__AllowedHosts__0=hooks.example.com approves one host. OAuth authorities and discovered token endpoint hosts must also be approved. Cloud metadata addresses need explicit approval even in Warn. Redirects are rejected in every mode. See the linked validation guidance before upgrading deployments with local receivers; explicitly approve trusted hosts or select Warn as a migration setting.

See Webhook target validation for rollout, Docker/tunnel examples, DNS/address restrictions, and the distinction between warnings and blocking.

Cratis:Chronicle:Webhooks:Probe controls low-rate real-event health checks independently of Webhooks.Retry and the global Observers retry budget:

Key Default Purpose
Enabled true Allow eligible webhook quarantines to recover automatically.
InitialDelaySeconds 60 First health-check delay.
BackoffFactor 2 Multiplier after an unsuccessful check.
MaximumDelaySeconds 3600 Upper bound on the sampled backoff; receiver deadlines may be later.
JitterRatio 0.2 Symmetric jitter; must be at least zero and less than one.
TimeoutSeconds 30 Deadline for the real delivery; cancellation cleanup is awaited.

All timing values must be finite. Delays and timeout must be positive, the maximum delay must be at least the initial delay, and the multiplier must be at least one. Invalid settings are rejected before probe delivery. Deadlines are persisted, not resampled at startup.

Checks retain observer quarantine until one pending event succeeds. A circuit-open or valid Retry-After result is not proof of health. 410 Gone, legacy parked failures with no explicit receiver policy, and unrelated watchdog quarantines need an operator. Disable checks to keep all automatic delivery paused while investigating a receiver. See automatic recovery for progress, at-least-once semantics, observability, and manual overrides.

The Kernel’s top-level externalServices section in chronicle.json independently validates HTTP capture destinations. It accepts Validation, AllowInsecureHttp, AllowedHosts, and EventStoreAllowedHosts with the same defaults and matching rules as Webhooks. It has no managed-identity options and never inherits webhook approvals. Environment variables use Cratis__Chronicle__ExternalServices__ followed by the key. See HTTP capture destination policy for modes, private-network approvals, metadata protection, and migration guidance.