Release of Canton 3.8.0
Canton 3.8.0 has been released on December 02, 2026.Summary
This minor release focuses on hardening, resilience and Ledger API features. The main themes:- Hardening: configurable limits for Ledger API requests and JSON Ledger API streams, new protocol limits with protocol version 38, and safer authentication defaults.
- Sequencer connectivity: a failing sequencer subscription no longer disconnects a node from the synchronizer, and nodes prefer healthy sequencers.
- Ledger API: access tokens scoped to API areas, a snapshot of party hostings, filtering of updates by contract id, and cookie authentication for JSON Ledger API websockets.
- Synchronizer operations: the BFT sequencer is the only supported sequencer, named sequencer throughput cap settings also cap ACS commitments and time proofs, and onboarded participants keep their access to restricted synchronizers.
- Participant traffic enforcement (experimental): submissions can be charged to a chosen traffic account of the participant’s traffic accounting.
- Ledger API:
SYNC_SERVICE_BECAME_PASSIVEis no longer reported, andSUBMISSION_DURING_SHUTDOWNuses the status codeUNAVAILABLEinstead ofABORTED.- The traffic enforcement endpoint
TrafficService.PruneEventsis disabled by default, following its deprecation in 3.7.0. - The JSON Ledger API redacts error details in the same way as the gRPC Ledger API.
- Scope-only JWTs, i.e. tokens with a
scopeclaim but no audience, are rejected by default. The feature flagcanton.features.deprecated.enable-scope-only-jwt = truere-enables them until their removal.
- Admin API and console:
- A participant that registers a synchronizer with explicit onboarding transactions does not push its authorized store to that synchronizer automatically.
- Sequencer throughput cap settings are identified by name instead of by message type, and their metric names change accordingly.
- Protocol:
- From protocol version 38, removing the
ParticipantSynchronizerPermissionof an onboarded participant no longer cuts it off from the synchronizer. Revoke itsSynchronizerTrustCertificateinstead. - (*) Synchronizers on protocol version 37 are not affected. Protocol version 38 will be rolled out as a new protocol version.
- From protocol version 38, removing the
- Configuration: changed default values for safety.
- An
auth-servicesentry with atarget-scopebut notarget-audienceis rejected unless scope-only JWTs are re-enabled with the feature flag. - JWKS caches refetch a JWKS at most every
min-refresh-interval(default 30 seconds), and configurations whosecache-expirationorauto-refresh-afterconflicts with it are rejected. - Postgres 14 is no longer supported.
- Sequencer drivers (such as CometBFT) are removed in favor of CantonBFT, and so are the database and reference sequencers, which were not supported for production use.
- Throughput cap settings need a
request-type, and the default settings also cap ACS commitments and time proofs.
- An
What’s New
Protocol version 38
Protocol version 38 is now stable and provides the following improvements and changes:- More protocol, topology and ordering collections are bounded (see New collection size limits).
- ACS commitments do not consume synchronizer traffic (see ACS commitments do not consume synchronizer traffic).
- Onboarded participants keep their access to restricted synchronizers, and participants are offboarded by revoking
their
SynchronizerTrustCertificate(see Restricted synchronizers). - Submission requests and acknowledgements with more than one signature are discarded after ordering (see Minor Improvements, Synchronizer operators).
- The old ACS commitment processor is not available (see Deprecations).
New collection size limits
Starting with protocol version 38, the following collections are bounded. Messages exceeding a limit are rejected. The limits are static synchronizer parameters.- Per-sequencer collections (segments, prepares, commits, acks, view changes, canonical commits and the view change,
prepare and commit presence lists) are each bounded by
max_sequencers_per_synchronizer. - Per-epoch block collections (block statuses, blocks complete, consensus certificates, pre-prepares and commit
certificates) are each bounded by
max_segment_length(default 10 000) timesmax_sequencers_per_synchronizer. - Keep the
canton.<node-type>.<node>.topology.broadcast-batch-sizeof every node (default 100) at or belowmax_transactions_per_broadcast.
- The default
max_quorum_sizeis reduced from 100 000 000 to 100 000. - The default
max_transaction_tree_depthis set to 64. This includes successor synchronizers of a logical synchronizer upgrade.
ACS commitments do not consume synchronizer traffic
ACS commitment messages no longer consume the synchronizer traffic of the sending participant. Instead, the sequencer throughput caps limit them (see Named sequencer throughput cap settings).Restricted synchronizers
The onboarding restriction of a synchronizer applies only to onboarding new participants:- Participants that are already onboarded keep their access to the synchronizer and continue to host their parties,
whether or not they have an active
ParticipantSynchronizerPermission. - Onboarded participants can update their synchronizer trust certificates on restricted or locked synchronizers too.
- To offboard a participant permanently, the synchronizer owners revoke its
SynchronizerTrustCertificate. To block a participant temporarily, they setloginAfterin itsParticipantSynchronizerPermission.
For application developers
JWT tokens scoped to API areas
The Ledger API now restricts access to API areas based on thescope claim of JWTs. The scope claim is a
space-separated list of restrictions. The available restrictions per area are:
- Unrecognized restrictions are ignored. A token without any recognized restriction stays unrestricted, as in previous releases.
- Participant admins, IDP admins and regular users can access the same endpoints as in previous releases.
- The documentation of each endpoint names the restrictions it requires. Many endpoints also require party-level
rights, e.g.
CanExecuteAs(p). - A rejected call logs the missing restriction, e.g. “Claims do not authorize packages:write methods of the Ledger API.” instead of “Claims do not authorize the use of administrative services.”
Ledger API: hosted parties snapshot
The Ledger API addsGetHostedParties (streaming) and GetHostedPartiesPage (paged) to query which participants
host parties on which synchronizers, with their permissions and hosting states. Applications can use this snapshot
to discover party hostings or initialize their topology view without replaying the full history of topology updates.
The snapshot is taken at hosted_at_offset, defaulting to the current ledger end for the initial request.
Continuation and page tokens preserve that offset. To keep the view up to date, stream topology updates with
GetUpdates starting from the snapshot’s hosted_at_offset.
party_filter and synchronizer_id_filter limit the results to the given parties or synchronizers. Only local
participant hostings are returned unless all_participants is true. Hosting information for other participants may
be incomplete. Hosting information is public, so the results are not restricted by the caller’s party read rights.
Filtering updates by contract id
The new fieldfilters_by_contract_id of type ContractIdFilter in the EventFormat selects the updates related to
the given contract ids. GetUpdates and GetUpdatesPage of the UpdateService support it. It cannot be combined
with filters_by_party or filters_for_any_party, and endpoints that do not support it reject requests that set it
with INVALID_ARGUMENT. The number of contract ids is bounded by
canton.participants.<participant>.ledger-api.size-limits.shared-size-config.event-format-filter-size-limit
(default 10000).
It replaces the EventQueryService, which is now deprecated (see Deprecations).
UpdateFormat.include_transactions_and_reassignments
The new shorthand field include_transactions_and_reassignments of type TransactionFormat in the UpdateFormat
(used e.g. in GetUpdates, GetUpdatesPage, GetUpdateByOffset, GetUpdateById and GetUpdateByHash) returns both
transactions and reassignments, filtered by the same event format. Setting it is equivalent to setting
include_transactions to the given transaction format and include_reassignments to its event format. It must not be
combined with include_transactions or include_reassignments, and such requests are rejected with
INVALID_ARGUMENT. The JSON Ledger API and the Java bindings support it too. For example, the following request
returns both transactions and reassignments of Alice:
JSON Ledger API: cookie authentication for websocket endpoints
Websocket endpoints of the JSON Ledger API accept the JWT in a cookie namedjwt.token, as an alternative to
passing the token in the Sec-WebSocket-Protocol header for browser clients that cannot set the Authorization header.
The Sec-WebSocket-Protocol has a risk of being exposed in logs, because it is not redacted by default by e.g. network proxies.
- The token is looked up in this order:
Authorizationheader,Sec-WebSocket-Protocolheader,jwt.tokencookie. Regular HTTP endpoints ignore the cookie. - A cookie-authenticated client must still offer the
daml.ws.authsubprotocol (e.g.new WebSocket(url, ["daml.ws.auth"])), as the server selects it in the handshake response. - Cookie authentication is disabled by default. To enable it, list the allowed web application origins in
canton.participants.<participant>.http-ledger-api.websocket-config.cookie-auth-allowed-origins, for example["https://app.example.com"]. Entries are scheme, host and port without a path, compared case-insensitively with the browser’sOriginheader.*allows any origin and should only be used for development, because it does not protect against cross-site websocket hijacking. - A cookie-authenticated handshake whose
Originheader is missing,null, or not in the list is refused with403 Forbiddenand the new error codeJSON_API_COOKIE_AUTH_ORIGIN_NOT_ALLOWED.
All node operators
Fault-tolerant sequencer subscriptions
A failure of a single sequencer subscription no longer disconnects the node from the synchronizer. The node favors healthy sequencers (see Sequencer connection penalty mechanism) and keeps retrying the failed one. This includes permission denied errors, e.g. after a node is offboarded: to stop the retries, disconnect the node explicitly. Monitor the new security alarmSEQUENCER_TRUST_ASSUMPTION_VIOLATED, logged when the number of failing sequencers
reaches the trust threshold, and the error SEQUENCER_UNREACHABLE_TRUST_THRESHOLD, logged when the healthy sequencers
cannot reach the trust threshold. In the latter case the sequencer client’s health becomes Failed, and the node
cannot make progress until an operator intervenes.
Major failures, such as the node’s inability to process events, still disconnect the node from the synchronizer.
Sequencer connection penalty mechanism
The sequencer connection pool prefers healthy and responsive sequencers. A sequencer is penalized when it refuses a submission request withSEQUENCER_OVERLOADED or when its subscription fails. The pool picks the sequencers with the
lowest penalties, and penalties decay over time, so that a penalized sequencer is selected again after it recovers.
The mechanism is configured with the new field sequencer_connection_penalty_config of SequencerConnections in the
Admin API (console: SequencerConnections.withSequencerConnectionPenaltyConfig). Setting enabled to false restores
the random selection of earlier releases. The metric daml.sequencer-client.sequencer-connection-pool.sequencer-penalty
reports the current penalty of each sequencer.
Participant node operators
Ledger API request size limits
The participant bounds the size of the fields of Ledger API requests:- the number of elements of repeated fields (e.g. the commands of a submission),
- the number of entries of map fields (e.g. the
filters_by_partyof an event format), - the size of bytes fields (e.g. the
dar_fileof an upload), - the serialized size of selected fields (e.g. the Daml values of the commands).
FIELD_CARDINALITY_LIMIT_EXCEEDEDfor the number of elements of a repeated or map field,FIELD_SIZE_LIMIT_EXCEEDEDfor the size of a bytes field or the serialized size of a field,EVENT_FORMAT_FILTERS_LIMIT_EXCEEDEDfor the total number of filters of the event formats (see below).
canton.participants.<participant>.ledger-api.size-limits:
shared-size-config: limits that apply to the same kind of field in several requests. For example,dar-file-bytes-size-limitapplies to bothUploadDarFileRequestandValidateDarFileRequest.public-lapi-size-config,admin-lapi-size-configandinteractive-lapi-size-config: the request-specific limits of the public services, the admin services and the interactive submission service. For example,upload-dar-file-requestholds the limits of the fields ofUploadDarFileRequest. A request-specific limit takes precedence over the shared limit it would otherwise inherit.- Limits that are not tied to a single field:
event-format-total-filters-size-limitbounds the filters of the event formats of a request after they are expanded across the requested parties (a template or wildcard filter counts as one, an interface filter as five), andmetadata-input-contract-bytes-size-limit.
max-inbound-message-size,
default 10 MiB).
In addition:
- String fields of Ledger API requests have length limits, and longer values are rejected with
INVALID_ARGUMENT. For example, theissuer,audienceandjwks_urlof an identity provider config are bounded to 4096 characters. - The interactive submission endpoints
ExecuteSubmissionAndWaitandExecuteSubmissionAndWaitForTransaction(gRPC and JSON Ledger API) enforcecanton.participants.<participant>.ledger-api.interactive-submission-service.maximum-number-of-signatures-per-party, likeExecuteSubmission. - The JSON Ledger API bounds the size of inbound websocket messages by its
max-inbound-message-size(default 10 MiB). Larger messages are rejected with the new error codeJSON_API_WEBSOCKET_MESSAGE_TOO_LARGE, and the connection is closed. Binary websocket messages are rejected with the new error codeJSON_API_WEBSOCKET_BINARY_MESSAGE_NOT_SUPPORTED.
Participant traffic enforcement (experimental)
These changes apply to the traffic accounting of the participant (the traffic enforcement app), which charges Ledger API users and parties for their submissions. They do not affect the synchronizer traffic that sequencers charge to members. The options named below are incanton.participants.<participant>.traffic-accounting.
Choosing the traffic account:
- Command submissions, interactive submissions and reassignment commands have a new optional
account_idfield that selects the traffic account to charge instead of the acting party. The console commands take a matchingaccountIdparameter, and the Java bindings awithAccountIdmethod. - Setting
account_idrequires the new user rightCanDebitTrafficFrom(account_id)orCanDebitTrafficFromAnyAccount, an act-as or execute-as right for the party with that id, orCanActAsAnyPartyorCanExecuteAsAnyParty. Only participant admins can grant the new rights. - Account ids have a fixed format (segments separated by
/, at most 255 characters), which every party id meets. Requests for other ids are rejected. - The new endpoint
TrafficService.ListAccounts(JSONGET /v2/traffic/accounts, consoleledger_api.traffic.list_accounts) lists the accounts and their balances, optionally filtered by an account id prefix. Ledger API admins can call it andGetAccount.
- The participant registers every transaction and reassignment with the traffic enforcement app before sending it,
and charges its completion to the registered account. If the registration cannot be stored, the submission is
rejected unless
allow-submissions-on-degradationis on. - Without an
account_id, a submission is charged to its acting party, as before. Transactions with several acting parties are not charged (or are rejected withreject-multi-party-submissions), and automatic assignments are charged to the participant’s admin party. - The new option
debit-rejected-completions(defaulttrue) controls whether rejected completions are charged.
- With
enforce-cost-on-submissionson, interactive preparation and transactions that need reassignments are checked against the estimated total cost, including reassignments, scaled by the new optionestimate-multiplier(default1.0). The balance can become negative if the actual cost is higher. - If the cost cannot be estimated, the submission is rejected with the new error code
TRAFFIC_COST_ESTIMATION_FAILED.
Synchronizer operators
Sequencer login overrides
The new sequencer settingscanton.sequencers.<sequencer>.public-api.auth.allow-login and
canton.sequencers.<sequencer>.public-api.auth.deny-login take sets of member unique identifiers:
- Members in
allow-logincan authenticate and subscribe regardless ofloginAfter. Their submissions still respectloginAfter. - Members in
deny-logincannot authenticate or subscribe, regardless ofloginAfter.deny-logintakes precedence overallow-login.
Breaking changes
Ledger API (application developers)
Shutdown and passive error codes
- The error code
SYNC_SERVICE_BECAME_PASSIVEis no longer reported, because it was not used consistently. It is replaced bySUBMISSION_DURING_SHUTDOWNorABORTED_DUE_TO_SHUTDOWN. - The error code
SUBMISSION_DURING_SHUTDOWNuses the status codeUNAVAILABLEinstead ofABORTED, as the service is unavailable and the call can be retried. - Clients that retry on
ABORTEDmust also retry onUNAVAILABLE.
All node operators
JWKS caching
JWKS-based token verification (thejwt-jwks auth service and identity provider configs) caches the whole JWKS
document per JWKS URL instead of individual keys. The settings are in jwks-cache-config of the Ledger API
(canton.participants.<participant>.ledger-api.jwks-cache-config) and the Admin API of every node
(canton.<node-type>.<node>.admin-api.jwks-cache-config).
- A token whose
kidis not in the cached JWKS triggers a new fetch only if the last fetch attempt is older than the newmin-refresh-interval(default 30 seconds). A new signing key of the identity provider is therefore accepted at mostmin-refresh-intervalafter its first use. cache-max-sizelimits the number of cached JWKS URLs instead of the number of cached keys.- A configuration is rejected at startup if
min-refresh-intervalis not less thancache-expiration, or ifauto-refresh-afteris set but less thanmin-refresh-interval. For example,auto-refresh-after = 10srequires loweringmin-refresh-intervalto at most10s.
Participant node operators
Explicit onboarding transactions disable authorized store dispatching
A participant that registers a synchronizer with explicit onboarding transactions (theonboardingTransactions of
synchronizers.register, synchronizers.register_by_config or synchronizers.connect_by_config) does not push the
transactions of its authorized store to that synchronizer. Changes to its identity, such as key rotations or new
namespace delegations, are then not propagated to that synchronizer automatically. Propose them directly in the
synchronizer store instead, by passing the synchronizer id as store to the topology commands, for example
participant.topology.namespace_delegations.propose_delegation(..., store = synchronizerId).
The new field disable_authorized_store_dispatching of SynchronizerConnectionConfig (console:
disableAuthorizedStoreDispatching) controls this. It is false by default, set automatically when onboarding
transactions are provided, and stays set for later connections to that synchronizer and its successors after a
logical synchronizer upgrade.
Synchronizer operators
Offboarding participants on protocol version 38
On protocol version 38, removing theParticipantSynchronizerPermission of a participant that is already onboarded
no longer cuts it off from the synchronizer (see Restricted synchronizers). To offboard a
participant, revoke its SynchronizerTrustCertificate. Synchronizers on protocol version 37 are not affected.
Removal of the database sequencer, the reference sequencer and sequencer drivers
Sequencer drivers (such as CometBFT) are removed in favor of CantonBFT, the BFT sequencer (type = "BFT"). The
database sequencer (type = "database") and the reference sequencer (type = "reference"), which were not supported
for production use, are removed as well. A sequencer configured with one of them fails at startup with “Sequencer of
type … is no longer supported”. Use the BFT sequencer instead.
Named sequencer throughput cap settings
Throughput cap settings are named. Configure them undercanton.sequencers.<sequencer>.sequencer.block.throughput-cap.messages.<name>:
- Each setting specifies its
request-type(for example,"confirmation request") and can setobservation-period-seconds(default 60), alongside its throughput limits. - An explicitly configured
messagesmap replaces the default settings. - Several settings can apply to the same message type, and all of them must allow a submission.
- When throughput caps are enabled, the default settings
commitmentsandtime-proofsalso cap ACS commitments and time proofs. A configuredmessagesmap must include such settings to cap them. - Caps are enforced immediately, without an initial grace period.
- Add
request-typeto every configured setting, and move a globalobservation-period-secondsinto each setting. - Remove
delayed-activation. It is accepted but ignored.
- The sequencer Admin API and the console get, set, update and unset commands identify settings by name instead of message type. In the Admin API, field number 1 holds the name instead of the message type. Pass the setting name, and include the message type and the observation period in each setting value.
traffic_control.list_throughput_caps()lists all settings.- Declarative cap configuration uses setting names as keys and includes the message type and observation period in each value.
- Throughput cap metric names use the setting name instead of the message type. Update monitoring queries if your setting names differ from the message types.
Removal of deprecated features
Traffic enforcement: PruneEvents disabled by default
As announced in 3.7.0, the deprecated traffic enforcement endpoints TrafficService.PruneEvents, the JSON endpoint
POST /v2/traffic/events/prune and the console command ledger_api.traffic.prune_events are disabled by default,
and calls fail with DEPRECATED_API_DISABLED. Use TrafficService.Prune (POST /v2/traffic/prune, console
ledger_api.traffic.prune) instead. Setting
canton.participants.<participant>.features.deprecated.enable-deprecated-endpoints-37 = true re-enables them until
their removal in 3.9.
Scope-only JWTs disabled by default
As announced in 3.5.1, “scope-only” access tokens, i.e. JWTs that carry ascope claim but no audience, are
deprecated in favor of audience-based tokens, whose aud claim names the participant
(https://daml.com/jwt/aud/participant/<participantId>) or the explicitly configured target-audience. This release
disables them by default and puts them behind a feature flag:
- An
auth-servicesentry with atarget-scopebut notarget-audienceis rejected when the configuration is validated, on the participant’s Ledger API as well as on the Admin API of participants, sequencers and mediators. - When neither
target-scopenortarget-audienceis configured, a token without a participant audience that relied on thedaml_ledger_apiscope is rejected withUNAUTHENTICATED. The rejection reason logged by the node names the feature flag that re-enables such tokens temporarily. - Scope-only JWTs issued by an identity provider configured without an audience (
identity_provider_config.audience) are rejected too.
target-scope or one without any target) logs a deprecation warning at startup.
Applications and identity providers that issue scope-only tokens, and configurations that rely on a target-scope
alone, stop working. Migrate them to audience-based tokens. The feature flag is only a temporary solution: the tokens
and the flag will be removed in a future release. Downstream projects that build scope-only tokens for their tests
are affected in the same way.
Removal of support for Postgres 14
Postgres 14 reaches end of life in November 2026, as announced in the 3.6.1 release notes. Canton no longer supports it, and by default nodes do not start against a Postgres 14 database. Upgrade the database to Postgres 15 or later before upgrading Canton. To start a node on Postgres 14 nevertheless, setcanton.parameters.non-standard-config = true. This configuration is not supported.
Deprecations
Reassignment counters
Thereassignment_counter fields of UnassignedEvent, AssignedEvent and ActiveContract are deprecated and will be
removed from the Ledger API in a future release. Do not use them. Use the other attributes of the events to follow the
lifecycle of a contract.
Other deprecations
- The Ledger API
EventQueryService(GetEventsByContractId, and the JSON endpointPOST /v2/events/events-by-contract-id) is deprecated. UseGetUpdatesorGetUpdatesPageof theUpdateServicewithEventFormat.filters_by_contract_idinstead (see Filtering updates by contract id). - The console command
<participant>.ledger_api.state.offsetForRecordTimeis deprecated. Useoffset_for_record_timeinstead. - The configuration setting
canton.participants.<participant>.parameters.ledger-api-server.indexer.batching-parallelismis deprecated. - Some expert batching and caching parameters were shared across node types but had no effect on certain nodes.
These settings are deprecated and ignored on those nodes, e.g.
canton.mediators.<mediator>.parameters.caching.sequencer-catchup-payload-cache. Remove them from your configuration to avoid deprecation messages. The previously deprecatedcaching.package-dependency-cachesetting remains accepted and ignored. - The participant configuration
canton.participants.<participant>.parameters.acs-commitments.enable-new-acs-commitment-processoris deprecated and ignored: the new ACS commitment processor is always enabled. On protocol version 38 and above,canton.participants.<participant>.parameters.acs-commitments.disable-old-acs-commitment-processoris ignored too. The old processor can only run on protocol version 36 or 37, if this option is set tonever. - The sequencer configurations for protocol versions that are no longer supported are deprecated and ignored with a
warning:
canton.sequencers.<sequencer>.parameters.enable-reject-delivered-aggregations-on-pv-35, and the BFT orderer settingssegment-length-for-pv-34andleader-selection-policy-config-for-pv-34. - Legacy sequencer throughput cap configurations, keyed by a fixed message type instead of a setting name, are
deprecated and log a deprecation warning. Their caps inherit the parent
observation-period-seconds(default 60), and omitted legacy caps keep their previous defaults. Migrate to named settings (see Named sequencer throughput cap settings).
Minor Improvements
Ledger API
- Participant authorization topology events (
TopologyFormat.include_participant_authorization_events) of theUpdateServiceare public. Previously,ReadAsrights for every listed party (orReadAsAnyPartyfor an empty party list) were required. The authorization required by the transaction and reassignment formats of the same request is unchanged. PartyManagementService.ListKnownParties: subsequent pages return the topology state seen when the first page was requested. Page tokens issued by another participant are rejected.- The results of
StateService.GetActiveContractsandGetActiveContractsPage(ActiveContract,IncompleteUnassignedandIncompleteAssigned) have a new fieldrecord_time. - The JSON Ledger API returns HTTP 401 (Unauthorized) instead of 403 (Forbidden) when a request has no valid JWT.
- JSON Ledger API list (non-websocket) endpoints enforce a maximum stream duration: they cancel the backing stream and
return
408 Request Timeoutwhen it is reached. TheRequest-Timeoutheader sets the duration, andcanton.participants.<participant>.http-ledger-api.request-timeout(default 20s) applies without the header. The new settingcanton.participants.<participant>.http-ledger-api.websocket-config.http-list-max-wait-time(default 5s) caps the idle wait that the client requests.
Multi-synchronizer
- When contracts are reassigned automatically to execute a command on a target synchronizer, the package used to validate them on the target synchronizer is a package bound to the contract in the transaction, so it is valid and vetted. A bound package vetted on the source synchronizer is preferred, otherwise the highest vetted version of the package is used.
- When a reassignment does not provide a validation package override, the highest package version vetted on both synchronizers is used.
- The validation package of the source used by
repair.rollback_unassignmentis the one used in the unassignment.
All node operators
- The new console command
keys.secret.download_signing_private_key_pkcs8_encrypteddownloads the private key of a signing key pair as a password-encrypted PKCS#8 PEM, which standard tools such asopensslcan read. An operator can keep a key, such as the root namespace key of a node, on a machine without Canton. The key is never in clear text on the wire or in the result. It requirescanton.parameters.enable-key-download = true. - The console commands
keys.secret.downloadandkeys.secret.download_tono longer require the preview feature flag. Downloading a key pair from a node still requirescanton.parameters.enable-key-download = trueon that node. - The token generators shipped with Canton mint audience-based tokens:
ledger-api-auth generate-tokentakes an - The restart delay of a sequencer connection resets to
min_restart_delayonly after the connection stayed validated for at least the newmin_stable_duration(default 10 seconds) ofSequencerConnectionPoolDelays(consoleminStableDuration). A connection that keeps failing shortly after validation is no longer restarted too quickly. - Config dumps mask more secrets, such as JWT HMAC secrets,
fixed-admin-token, keystore and database passwords, and tracing exporter request headers with credentials.
Participant node operators
- New metric
daml.participant.api.commands.completion: the time from submission to completion of a command, with the labelscompletionType(success,sync-failureorasync-failure) andsynchronizer. - Ledger API server and indexer database queries are reported in the database metrics
(
daml.participant.db-storage.ledger-api-server.executor.*anddaml.participant.db-storage.indexer.executor.*) and covered by the slow query logging. - The default of
canton.participants.<participant>.parameters.ledger-api-server.indexer.queue-uncommitted-warn-thresholdis raised to 100000.
Logical synchronizer upgrades
- The commands for manual and late logical synchronizer upgrades check that the serial of the new physical synchronizer id is exactly the serial of the old one plus one, and fail otherwise. A force flag overrides the check.
Synchronizer operators
- Initializing a sequencer with the onboarding state of the current synchronizer or the state of the predecessor of a logical synchronizer upgrade requires less JVM memory, because the initial topology state is streamed instead of loaded into memory first.
- When initializing a sequencer, the initial topology state is checked for consistency (e.g. no multiple transactions
effective for the same unique mapping key at the same time). Some of these checks can take a long time for a large
topology state (e.g. 10 million topology transactions). They can be disabled with
canton.sequencers.<sequencer>.topology.check-initial-topology-snapshot-consistency = false. - Sequencers reject submission requests and acknowledgements that carry more than one signature. On protocol version 38, such requests that are ordered anyway are discarded as invalid.
Performance improvements
- Participants index transactions faster: the indexer splits large transactions into evenly sized batches, measured by the number of database operations.
- Participants read and write the active contract journal in batches, configured by the new
canton.participants.<participant>.parameters.batching.contract-journal-aggregator. - Sequencers answer traffic state queries that include onboarding members faster, using a new database index.
CantonBFT
- Demoted some logs from
INFOtoDEBUGlevel to reduce costs
Security Fixes
- The JSON Ledger API redacts error details in the same way as the gRPC Ledger API.
- Dependency update to address security vulnerabilities: pgjdbc 42.7.14.
Bug Fixes
- The JSON Ledger API HTTPS server uses the
PKIXtrust manager and key manager instead of the legacySunX509ones.PKIXperforms full RFC 5280 certification path validation, so certificate chains that violate constraints such as the name constraints of an intermediate CA are now rejected. enable-cert-revocation-checkingon a server TLS configuration (for example the Ledger API) applies only to that server’s TLS context. It no longer sets the JVM-widecom.sun.net.ssl.checkRevocation,com.ibm.jsse2.checkRevocationandocsp.enableproperties, so other TLS connections in the same node are no longer affected. Deployments that relied on this side effect to get revocation checking elsewhere must set these properties explicitly (for example with-Dcom.sun.net.ssl.checkRevocation=true). The JSON Ledger API (http-ledger-api) and the peer-to-peer server endpoint of the BFT orderer honor the flag too.- Fixed the JSON Ledger API failing every HTTPS connection when the Ledger API TLS configuration has no
trust-collection-file, which also affected plain server-side TLS withclient-authset tonone. If client authentication is enabled (client-authset tooptional, the default, orrequire) and notrust-collection-fileis configured, client certificates are verified against the JVM default trust store, consistent with the gRPC Ledger API and the documentation. No configuration change is needed. <participant>.parties.enableno longer times out on a network with more than 100 parties.- The new ACS commitment processor tolerates a party whose hosting state on a participant changes from active back to onboarding.
- Fixed
compute_canton_hashintopology_util.shintermittently producing a wrong hash, which caused certificates fromprepare-cert.shto be rejected. - Fixed a topology change going unnoticed by participants and mediators when its effective time coincided exactly with the end of a BFT ordering epoch. The topology tick at that time was sent to the sequencers only, so other members observed the change only when other traffic or a time proof reached them.
topology.transactions.generate_onboarding_transactionsgenerates the transactions from the giventemporaryStore. Previously, a participant returned the identity transactions of its authorized store instead whenever they had the requested protocol version, which ignored a delegation to an intermediate key in the temporary store when the root namespace key is offline.- Added missing synchronization between ACS import and synchronizer disconnect and connect.
- A submission that explicitly requests a mediator group (as interactive submissions do, always requesting group
0) is routed to the group with that index. Previously, the index was interpreted as a position in the list of active mediator groups, so the submission could be routed to the wrong group. The submission fails with aNoMediatorErrorif the requested group is not active. - Early reassignment rejections report the request’s submission id in their completion instead of an empty one.
- The submitting participant emits a rejection completion when its own request has no views it can process. Previously, no completion was produced.
- Automatic reassignments of a transaction’s input contracts start only after the transaction is deduplicated, so a duplicate submission no longer competes for the contracts. Routing errors of these reassignments produce a completion.
- Java bindings:
User.RightreadsCanActAsAnyParty, which used to throw.CommandsSubmission.toProtoincludes the prefetch contract keys, which it used to drop.UpdateSubmission.withSynchronizerIdsets the synchronizer id, which it used to ignore. - Validating a Daml package that is nested too deeply fails with a validation error (“package is too deeply nested to be validated”).
- A
PartyToParticipantchange during an incomplete reassignment is rejected withTOPOLOGY_INSUFFICIENT_SIGNATORY_ASSIGNING_PARTICIPANTSonly if the party is a signatory of the reassigned contracts. For other stakeholders, it is rejected only if it leaves the party without a hosting participant. - The console reads the user id for Ledger API commands also from remote participant tokens minted for a custom
target-audienceortarget-scope. Previously, such tokens made the console fall back to theCantonConsoleuser id. - Configuring several aliases for the same logical synchronizer with different physical synchronizer ids is reported as an error instead of failing.
- Custom trust certificates of sequencer connections and of
LsuSequencerConnectionSuccessormappings must be valid X.509 PEM. Malformed ones are rejected by the console, by the declarative participant configuration and when the mapping is deserialized, so that they cannot make a logical synchronizer upgrade fail for the whole network. - If a participant misses a logical synchronizer upgrade and tries to connect to the successor’s sequencers, it
rejects the connection with
SYNCHRONIZER_UPGRADE_MISSEDinstead of creating successor state with the wrong predecessor. Upgrade the binary if needed and point the connection back at the predecessor’s sequencers. Userepair.perform_late_lsuonly if the predecessor was decommissioned. If the participant already created successor state this way on an earlier version,repair.perform_late_lsureturnsLSU_LEFTOVER_SUCCESSOR_STATE. Restore the participant from a backup taken before it connected to the successor, then upgrade it as above. - When enriching contract keys, a participant uses the target package with protocol version 38. With protocol version 37, it uses the creating package and abstains if that package is not available locally.
Compatibility
The following Canton protocol versions are supported:
Canton has been tested against the following versions of its dependencies: