Repository navigation
Releases
v0.29.1
Upgrading
No breaking changes. Upgrade from v0.29.x at any time, one node at a time. What changed is listed below.
Tested with
| Go | Hyperledger Fabric | Fabric-x committer | Fabric-x tools | PostgreSQL |
|---|---|---|---|---|
| 1.27.3 | 3.1.4 | 1.0.7 | v1.0.3 | 16.2 |
Every store's schema steps and the component version ranges are in the release data.
What's Changed
Bug fixes
- fix(fabric): stop channel config updates from racing orderer reads (backport #2608) by @mergify[bot] in #2616
New Contributors
Full Changelog: v0.29.0...v0.29.1
v0.29.0
Upgrading
Read the upgrade guide before upgrading. What changed is listed below.
Tested with
| Go | Hyperledger Fabric | Fabric-x committer | Fabric-x tools | PostgreSQL |
|---|---|---|---|---|
| 1.27.3 | 3.1.4 | 1.0.7 | v1.0.3 | 16.2 |
Every store's schema steps and the component version ranges are in the release data.
What's Changed
Breaking changes
- fix(fabricx)!: fail over the ledger to another committer by @SaidAltury-ibm in #2541
- fix(fabric)!: stop re-initializing logging in the network provider by @mbrandenburger in #2574
- fix(config)!: reject websocket P2P TLS keys that cannot take effect by @mbrandenburger in #2571
- fix(view)!: return server start failures instead of exiting the process by @mbrandenburger in #2575
Features
- feat(view): let SDKs add readiness gates to /readyz by @mbrandenburger in #2569
Bug fixes
- fix(fabric): wait for idemix cache provisioning to stop in Close by @SaidAltury-ibm in #2543
- fix(comm): don't await an acknowledgement for a sub-connection the peer closed by @SaidAltury-ibm in #2563
- fix(comm): accept websocket peers whose identity certificate has no SANs by @mbrandenburger in #2568
- fix(logging): apply logging.otel.sanitize to span events from all loggers by @entrepreneurme in #2579
- fix(fabric): reread a pending transaction status from the shared vault by @SaidAltury-ibm in #2580
- fix(logging): stop logging raw state values at debug by @entrepreneurme in #2582
- fix(logging): report the right caller from test and derived loggers by @mbrandenburger in #2584
- fix(fabricx): resolve pending finality listeners while the notification stream is down by @SaidAltury-ibm in #2581
- fix(fabric): keep the error type when collecting an endorsement fails by @SaidAltury-ibm in #2585
Dependencies
- chore(deps): bump the go-dependencies group across 2 directories with 2 updates by @dependabot[bot] in #2542
Other changes
- docs: point the README at Panurus and the application guides by @mbrandenburger in #2583
- docs: correct facts that no longer match the code by @mbrandenburger in #2587
- docs: lead newcomers from concepts to a running application by @mbrandenburger in #2597
- docs: clean up wording, structure and style by @mbrandenburger in #2602
- docs(upgrade): complete the v0.28 to v0.29 guide by @mbrandenburger in #2604
Full Changelog: v0.28.0...v0.29.0
v0.28.0
Upgrading
Read the upgrade guide before upgrading. What changed is listed below.
Tested with
| Go | Hyperledger Fabric | Fabric-x committer | Fabric-x tools | PostgreSQL |
|---|---|---|---|---|
| 1.27.3 | 3.1.4 | 1.0.7 | v1.0.3 | 16.2 |
Every store's schema steps and the component version ranges are in the release data.
What's Changed
Breaking changes
- feat(node)!: drain running views on shutdown by @mbrandenburger in #2417
- fix(view)!: refuse binding redirects and report binding conflicts by @mbrandenburger in #2446
- fix(fabricx)!: skip the failed endpoint when retrying a query by @mbrandenburger in #2453
- feat(view)!: add a policy checker group to the view API by @mbrandenburger in #2447
- fix(fabric)!: require proof of ownership in the recipient exchange by @mbrandenburger in #2452
- fix(fabric)!: build received transactions on the network they belong to by @mbrandenburger in #2466
- feat(view)!: authorize responders and type P2P rejections by @mbrandenburger in #2465
- fix(storage)!: reject store writes that conflict with the stored value by @mbrandenburger in #2472
- refactor(nwo)!: keep libp2p out of nwo/fsc by @mbrandenburger in #2501
- feat(storage)!: bound how long a database query may run by @mbrandenburger in #2505
- refactor(view)!: remove the DHT and bootstrap node from the libp2p host by @mbrandenburger in #2506
- feat(fabric)!: exchange and store transactions as platform messages by @mbrandenburger in #2508
Features
- feat(storage): add versioned schema migrations by @mbrandenburger in #2416
- feat(storage): version every FSC store and add node migrate by @mbrandenburger in #2425
- feat(comm): reload TLS listener certificates without a restart by @mbrandenburger in #2448
- feat(view): cap concurrent responders across all peers by @mbrandenburger in #2450
- feat(storage): operate schema migrations safely by @mbrandenburger in #2467
- feat(comm): stream preamble with version ranges and a framing epoch by @mbrandenburger in #2464
- feat(storage): contract steps for changes the previous release cannot read by @mbrandenburger in #2473
- feat(node): report a binary's versions and check its peers by @mbrandenburger in #2475
- feat(view): negotiate FSC formats per session by @mbrandenburger in #2474
- feat(view): limit concurrent requests on the view API by @mbrandenburger in #2504
- feat(release): generate release data and release notes by @mbrandenburger in #2529
- feat(release): link the upgrade guide from the release notes instead of quoting it by @mbrandenburger in #2537
Bug fixes
- fix(fabric): never set a valid transaction back to busy by @SaidAltury-ibm in #2420
- fix: reject lying endorsements and keep sessions apart per sender by @SaidAltury-ibm in #2419
- fix(fabric): validate transactions received from peers by @mbrandenburger in #2441
- fix(comm): detect a silently cut websocket connection between FSC nodes by @SaidAltury-ibm in #2428
- fix(view): end a view waiting for a reply when its caller cancels it by @SaidAltury-ibm in #2471
- fix(fabric): verify idemix recipients through the channel MSP and bound the verifier cache by @mbrandenburger in #2476
- fix(fabric): keep envelopes of invalid transactions out of the committer by @mbrandenburger in #2480
- fix(fabric): resolve a txID shadowed by a forged envelope in delivery finality by @mbrandenburger in #2485
- fix(fabric): resolve a txID shadowed by a forged envelope of any type by @mbrandenburger in #2490
- fix(fabric): resolve a txID shadowed by a forged envelope in ledger lookups by @mbrandenburger in #2523
- fix(fabric): honour WithTxID in endorser.NewTransaction by @entrepreneurme in #2532
- fix(storage): hold back a contract step on a store filled meanwhile by @mbrandenburger in #2534
- fix(fabric): return from BFT broadcast once the threshold is met by @PsychoPunkSage in #2518
Dependencies
- chore(deps): bump the go-dependencies group across 3 directories with 4 updates by @dependabot[bot] in #2429
- chore(deps): override minimatch to ^11.0.4 in bot scripts by @mbrandenburger in #2430
- chore(deps): bump the go-dependencies group across 3 directories with 5 updates by @dependabot[bot] in #2531
Other changes
- refactor(view): remove unused view service surface by @SurbhiAgarwal1 in #2426
- docs: make the developer guides self-contained and document where docs live by @mbrandenburger in #2489
- docs: align the hardening docs with the code by @mbrandenburger in #2492
- docs(dev): add a maintainer guide for cutting a release by @mbrandenburger in #2517
- chore(ci): check PR titles and group the release notes by label by @mbrandenburger in #2521
- chore(make): clean up the Makefile by @mbrandenburger in #2527
- docs(upgrade): complete and correct the v0.27 to v0.28 guide by @mbrandenburger in #2530
Full Changelog: v0.27.0...v0.28.0
v0.27.0
Breaking changes
A v0.26 core.yaml starts unchanged: no configuration key is renamed or removed. The step-by-step guide is docs/upgrade/v0.26-to-v0.27.md.
For operators
Storage primary keys (#2244, #2273)
- The vault state table and the KVS table use the primary key
(ns, pkey)instead of(pkey, ns). On first start, an existing key is reordered once, on Postgres and SQLite. Replicas that share a database reorder it once between them. Back up the databases before upgrading. - On Postgres the key is dropped and added back under
ACCESS EXCLUSIVE, so the database user must own the vault state and KVS tables, or startup fails. - On SQLite the table is rebuilt in one transaction. A replica that waits on the rebuild past
busy_timeoutfails to start withSQLITE_BUSYand finds the table reordered on restart. - Any other key order, or a table without a primary key, fails startup and leaves the table unchanged. A v0.26 node keeps working against a reordered table.
Storage behaviour (#2289, #2300)
- A persistence name (
fsc.kvs.persistence,fabric.<network>.vault.persistence, ...) accepts only letters, digits,_and-. Any other name fails startup. - The SQLite
cache_size=1000000000default is dropped. Set it in thedataSourceif you rely on it. - A SQLite write that keeps failing with
SQLITE_BUSYreturns the error after 3 retries instead of retrying forever.
Configuration from the environment (#2200, #2299)
- Only variables that start with
CORE_are read. A variable that starts withCOREbut notCORE_, such asCOREPACK_ENABLE_AUTO_PIN, no longer becomes a configuration key. __in a variable name stands for a literal_in the key, for exampleCORE_FSC_PERSISTENCES_DEFAULT_OPTS_TLS_SSL__MODEsetstls.ssl_mode. A variable that already contains__changes meaning.
P2P and sessions (#2266, #2331, #2415)
- A node answers a call to a view it has no responder for with
unknown_view: <view>, and the initiator fails at once. A v0.26 node does not answer, so its peer waits until the session times out. Upgrade FSC nodes that talk to each other in the same window where you can. - The busy rejection payload is
busy: too many concurrent responders for this peer. Code that matchedtoo many concurrent responders for this peerexactly must match the prefix or a substring. - A session whose streams all died closes after a 5-second grace period, and a view waiting on
Receive()gets a closed channel. On libp2p all sessions to a peer share one stream, so a dead stream closes every session to that peer that is idle for the grace period.
Fabric-x committer endpoints (#2249)
The query and notification services keep a connection to every listed committer endpoint and use the first healthy one. connectionTimeout has no effect on these endpoints.
Metrics (#2240, #2257, #2262, #2372)
fsc_view_services_tracing_listens_operationsandfsc_view_services_tracing_listens_durationare removed. They always read 0.- The connection state component
database_notifieris removed. - On Fabric, a block commit that fails on a lost database connection is retried until it commits. These retries count in
commit_retries, not incommit_failures. Alert oncommit_retriestogether with the database connection state during Postgres outages.
version output (#2414)
version also prints the FSC version, the application module and its version, and the VCS revision. Scripts that parse its output must allow the extra lines.
For developers
Dependencies
github.com/jackc/pgxlistenis no longer a dependency of the root module. Add it to your owngo.modif you import it (#2372).modernc.org/sqliteis v1.61.0 (#2246).
Views, sessions and communication (#2331, #2415)
DeleteSessionis removed fromP2PNode,comm.Service,view.SessionFactoryandp2p.CommLayer; a view context closes the session instances it holds.Sessions.GetSessionInfosis replaced bySessions.All.Context.GetSessionByIDreplaces a cached session that has closed instead of returning it.CommLayer.ReplyErrorwrites only to a stream that already exists and returns an error when there is none.
Storage
postgres.Notifier,NewNotifier,AllOperations,NewSimplePrimaryKey,NewBytePrimaryKeyandKeyValueStoreNotifierare removed fromplatform/view/services/storage/driver/sql/postgres, andconnstate.ComponentDatabaseNotifierfromplatform/view/services/metrics/connstate(#2372).postgres.NewKeyValueStorereturns*postgres.KeyValueStore. Code that type-asserts the store to*common.KeyValueStoremust use itsKeyValueStorefield (#2273).driver.EnvelopeService.Existsreturns(bool, error)(#2255).NewWrappedIteratortakes adriver.SQLErrorWrapper, and the SQL iterators returnrows.Err()when reading rows fails (#2259).- The Postgres error mapper returns the new
driver.ErrConnectionLostfor a broken connection.SqlBusyalso covers SQLSTATE40001and SQLite's extended busy codes (#2240, #2295). kvs.GetExistingno longer caches empty values (#2242).
Fabric and Fabric-x
driver.ConfigServicehas a new methodReportFailure(address string). External implementations and fakes must add it; regenerate counterfeiter mocks (#2236).- When a finality wait runs out,
IsFinalreturns an error that wraps the newdriver.ErrFinalityTimeoutand names the last status read. A cancelled caller context is returned asctx.Err()(#2318). queryservice.NewProviderandfinality.NewListenerManagerProviderinplatform/fabricxtake a*connstate.Metrics.queryservice.NewRemoteQueryServicetakes a client factoryfunc() (committerpb.QueryServiceClient, string, error)and a tracker func instead of a fixed client (#2245, #2249).
Integration test harness (nwo)
web/client.Config, NewClient and Client.Metrics are removed from platform/view/services/web/client. Read node metrics with integration/nwo/client.MetricsClient. NewWebClientConfigFromFSC is replaced by NewWebConnectionConfigFromFSC, which returns a grpc.ConnectionConfig (#2234).
What's Changed
- refactor(errors): use the plain constructors for constant messages by @rgowrishankar in #2238
- fix(kvs): do not cache empty values in GetExisting by @sid200727 in #2242
- feat(fabric,fabricx)!: skip recently failed peers and orderers, accept several Fabric-x endpoints by @PsychoPunkSage in #2236
- fix(fabric): order the vault state primary key by namespace by @entrepreneurme in #2244
- refactor(integration)!: read node metrics through a connection-config based client by @mbrandenburger in #2234
- fix(storage): retry block commits after a lost Postgres connection by @mbrandenburger in #2240
- chore(deps): bump modernc.org/sqlite from 1.60.1 to 1.61.0 in the go-dependencies group across 1 directory by @dependabot[bot] in #2246
- test(integration): node crash and catch-up specs in the faultrecovery suites by @mbrandenburger in #2241
- feat(fabricx)!: report notification and query service connection state by @SaidAltury-ibm in #2245
- feat(storage): wait for Postgres at node startup by @mbrandenburger in #2239
- fix(committer)!: keep transient vault failures retryable on the config, envelope and row-read paths by @mbrandenburger in #2255
- fix(storage): map row-read errors through the SQL error wrapper by @mbrandenburger in #2259
- refactor(storage): stop recording identity binding logs as trace events by @SaidAltury-ibm in #2261
- fix(committer): retry a transient discard failure for Fabric-invalid transactions by @mbrandenburger in #2260
- fix(metrics): count BFT ordered transactions and complete the metrics catalog by @SaidAltury-ibm in #2257
- test: replace hand-written error checks with testify by @sid200727 in #2258
- fix(storage): pass the read and write databases in the right order to the Postgres stores by @sid200727 in #2256
- fix(committer): keep retrying a block while Postgres is unreachable by @mbrandenburger in #2262
- fix(committer): apply config blocks recorded by another replica sharing the vault by @mbrandenburger in #2264
- fix(committer): catch up on config another replica committed before the first block by @mbrandenburger in #2265
- fix(comm): close sessions whose streams died by @SaidAltury-ibm in #2266
- feat(nwo): add topology-level P2P message-size limits by @adecaro in #2275
- fix(storage): map connection...
v0.26.0
Breaking changes
For operators
Remote view API configuration (#2220, #2226)
The remote view API has its own configuration tree under fsc.view.remote. fsc.grpc and fsc.web configure listeners only.
- The remote view API is served only when
fsc.view.remote.enabledistrue, on the transports listed infsc.view.remote.backends. A node that serves views must add the block explicitly, for examplefsc.view.remote: {enabled: true, backends: [grpc]}. fsc.grpc.enabled: truewithoutfsc.view.remotefails startup, since nothing else uses the gRPC listener.- Renamed keys; the old keys fail startup:
| Old key | New key |
|---|---|
fsc.web.viewTimeout |
fsc.view.remote.timeout (default 2m) |
fsc.grpc.authentication.timeWindow |
fsc.view.remote.timeWindow |
fsc.client.certs |
fsc.view.remote.clients |
fsc.view.remote.timeoutbounds gRPC view calls as well as HTTP ones. gRPC calls had no server-side bound before, so a view that runs longer than2mis now cut off withview execution timed out. Raise the timeout if your views legitimately run longer.- Startup also fails, naming the key, on any
fsc.view.remotekey other thanenabledwithoutenabled: true, on an unknown key, on no, duplicate or unknown backends, on a listed backend whose listener is disabled, and on an invalidtimeWindow,maxMessageSizeorclientsentry. - A string-list key such as
fsc.view.remote.backendsaccepts a comma-separated value, so the whole tree can be set throughCORE_variables.
View service over HTTP (#2220, #2222)
PUT /v1/Views/{View}andGET /v1/Views/Stream/{View}are removed. The web listener servesPOST /v1/ViewService/ProcessCommandand the WebSocketGET /v1/ViewService/StreamCommand, which carry the same signed commands as gRPC (protojsonSignedCommand/SignedCommandResponse). Unsigned requests are rejected. REST clients must switch to the FSC view client (see below) or sign commands themselves.- The view routes no longer require a client certificate; requests are authenticated by the command signature.
- The view service no longer accepts
InitiateView.CallView, unary or streamed, is the only command. - A command accepted on one transport counts as a replay on the other.
- The
fsc_view_services_view_grpc_client_*metric families are renamedfsc_view_services_view_client_*, and thefsc_view_services_view_grpc_server_view_handlerfamily is removed. Update dashboards and alerts.
Client certificates on the gRPC listener (#2212, #2220)
- With
clientAuthRequired: falseandclientRootCAsset,fsc.grpcverifies a client certificate the client offers, and fails the handshake when it does not chain to those roots. WithoutclientRootCAs,fsc.grpcno longer requests a client certificate. - On a listener with
clientRootCAsbut withoutclientAuthRequired, a client that offers a certificate must name it in the command'stlsCertHash.
Fabric-x (#2237)
FSC requires fabric-x-committer v1.0.7 or later. The finality and ledger services dial the committer's SidecarService, which older committers do not serve. Upgrade the committer before or together with FSC.
For developers
Go 1.27.3 is required (#2194).
Dependencies
github.com/IBM/idemixresolves to v0.3.1 or later in modules that depend on FSC. In v0.3.1, verifying withIdemixSignerOptsfails unlessNymis set (#2232).github.com/hyperledger/fabric-x-commonis v0.2.12 (#2237).
View client and service
- The view client lives in
platform/view/services/view/client;platform/view/services/view/grpc/clientis gone.NewClientreturns*client.Client, andConfig.Transportselects gRPC (the default) or HTTP.ViewServiceClientandViewServiceClientImplare replaced byTransport(#2222). - The client rejects a response whose header does not name the hash of the command it sent (#2222).
- The client's
Initiate, and the web client'sInitiatestub, are removed (#2220). server.InstallViewHandlertakes the remote timeout in place of atracing.Provider(#2220).grpc.NewBindingInspector,grpc.BindingInspectorandgrpc.CertHashExtractorare removed (#2220).web.InstallViewHandleris replaced byNewProcessCommandHandlerandNewStreamCommandHandler.web/server.HttpHandler,ReqContext,RequestHandler,WSStreamand theplatform/view/services/webmessage package are removed;web/clientkeepsNewClient,Metricsand the WebSocket dial helpers (#2222).
View SDK servers (#2219, #2220, #2222, #2226)
- Listeners are the
WebServerandGRPCServerinterfaces, built byWebServerConstructorandGRPCServerConstructor. Replace a listener by decorating its constructor; the SDK calls a constructor only when the listener is enabled. Transports areBackends in theview-remote-backendsdig group, andSDK.Startmounts the listed ones. sdk.Serveris renamedsdk.WebServer.OperationsServerembedsWebServer, soops.Serverbecomesops.WebServer.NewOperationsServertakes aWebServer, andServetakes aGRPCServerand aWebServer.sdk.NewWebServertakes only the configuration service and mounts no routes. The view routes are mounted by the web backend, and/healthzand/readyzbySDK.Start.sdk.NewGRPCServerreturns theGRPCServerinterface. Neither constructor reads theenabledflag.sdk.NewViewServiceServertakes aRemoteConfigas its first argument in place of the configuration service, and no longer takes a*grpc.GRPCServer.sdk.CommandTimeWindowKeyis removed.config.Provider.GetStringSlicesplits a single string value on commas.
Connection-state metrics (#2201)
delivery.Newanddelivery.NewServiceinplatform/fabric/core/generic/deliverytake a*connstate.Metrics(nil reports nothing).generic/driver.NewProviderandfabricx.NewProvidertake a*connstate.Metricsas their third argument.- The dig input structs of the fabric and fabricx
NewDriverandNewChannelProvidergain aConnStatefield. The view SDK providesconnstate.NewMetrics; code that builds these by hand must pass it.
Fabric and fabricx
ledger.Newinplatform/fabricx/core/ledgertakes acommitterpb.SidecarServiceClientin place of acommitterpb.BlockQueryServiceClient. The finality and ledger counterfeiter mocks are regenerated and named afterSidecarService(#2237).idemix.NewProviderWithStandardPolicyis removed; useNewProviderWithSigType(conf, kvs, sp, bccsp.Standard).idemix.Deserializer.DeserializeVerifierAgainstNymEIDis removed; callDeserializeAgainstNymEID(raw, true, nymEID)and build aNymSignatureVerifierfrom the returnedNymPublicKey(#2232).Network,Endpoint,Vault,VaultPersistence,VaultOpts,TLS,FileandFilesare removed fromplatform/fabric/core/generic/config. Read network configuration throughconfig.Service(#2193).platform/fabric/services/db/driver/sql/commonno longer exportsToBytes,FromBytes, theTTest*helpers or theCases,UnversionedCases,UnversionedNotifierCasesandErrorCasestables (#2191).
Other removed symbols
- The
platform/common/utils/cache/secondcachepackage is removed. Usecache.NewSecondChanceCachefromplatform/common/utils/cache, typed ascache.Map[K, V](#2229). collections.CopyIterator,NewSingleIteratorandFilter: useiterators.Copy,iterators.Fromanditerators.Filter.collections.ContainsValueandDifference: usecollections/maps.ContainsValueandcollections/slices.Difference.lazy.Getterandlazy.NewGetter: usesync.OnceValues.utils.RetryRunner: use the concrete retry runners.pkg/node.ExecuteCallbackFunc: usefunc() error.logging.Named: use a customfloggingtestoption (#2151).events.Serviceand its dig provider: injectevents.Publisher,events.Subscriberorevents.EventSystem(#2149).
Integration test harness (nwo)
NWO.KillFSC,NWO.FSCProcesses,NWO.TerminationSignaland theGroupinterface are removed, as are the Fabric network'sOrdererGroupRunnerandPeerGroupRunner. Every FSC node, peer and orderer runs as its own ifrit process, named<prefix>.orderer.<name>and<prefix>.peer.<name>instead of<prefix>.orderersand<prefix>.peers. UseKillFSCNode,StopPeer/StartPeerandStopOrderer/StartOrderer(#2221).api.GRPCClientis renamedapi.RemoteViewClient, andapi.WebClient.StreamCallViewreturns*client.Stream. The web client calls views over the HTTP binding, signed as the node'sfsc.identity(#2222).- The Fabric-x integration tests require fabric-x tools v1.0.3 or later (
make install-fabricx-tools) (#2237).
What's Changed
- docs: fix broken links and Bootstrap typos by @aditya-rai-5 in #2145
- refactor: log node panics and view starts through the FSC logger by @entrepreneurme in #2146
- refactor(platform): use pkg/utils/errors instead of the standard errors package by @entrepreneurme in #2147
- refactor(view)!: remove the unused events.Service wrapper and its dig provider by @Rozerxshashank in #2149
- docs: add package comments to small utility packages by @aditya-rai-5 in #2144
- refactor!: remove unused helpers from collections, lazy, pkg/utils, pkg/node and logging by @SaidAltury-ibm in #2151
- fix(comm): honour maxRecvMsgSize/maxSendMsgSize in the websocket transport by @adecaro in https://github.com/hyperledger-labs/fabric-sma...
v0.25.0
⚠️ Breaking changes
Upgrade steps for operators
- Postgres vault: the state table's
pkeycolumn is converted fromTEXTtoBYTEAon first start. Stop every replica before upgrading; an older FSC version still runs against the converted table but writes keys this version never reads. Downgrading requires a backup. (#2070) /metricsand/logspecrequire a verified client certificate by default (fsc.metrics.clientAuthRequired: true). Set it tofalseto keep serving them without one. (#2045)- Signed view commands must carry a timestamp within
fsc.grpc.authentication.timeWindow(default15m) of the node's clock and are accepted only once. Clients must sign a fresh command per call. (#2074) - Websocket peers: the server's TLS certificate must belong to the dialed peer ID, so each resolver's identity must be the remote node's
fsc.identity. (#2076) - REST view calls time out after
fsc.web.viewTimeout(default2m). (#2037) - Responders per peer are capped by
fsc.p2p.maxRespondersPerPeer(default1000). (#2024) - Tracing with no sampling ratio now samples every trace (ratio
1). (#2120) - Fabric keepalive under
fabric.<network>.keepaliveand per-entryconnectionTimeoutnow take effect as documented. (#2034, #2059)
Configuration that now fails startup
- Keys that differ only in case, a dotted key that repeats a nested key, or an unreadable
core.yaml(#2046); keys colliding with aCORE_environment variable or with the live configuration onMergeConfig(#2067) - An unset
fsc.id; a resolver entry withoutnameoridentity.path; an address key other thanListen,VieworP2P(#2122) fsc.web.enabled: truewithout ahost:portfsc.web.address(#2117)- An unknown
fsc.tracing.provideror a sampling ratio outside[0, 1](#2120) - A reference to an undefined persistence,
persistence: defaultwithout a default block, or a persistence without a type; FSC no longer falls back to memory (#2119) - In
fabric.<network>: a negativemspCacheSize,ordering.connectionPoolSizebelow 1, or a negativechannels[].finality.eventQueueWorkers(#2118) - An unparsable or non-positive
fsc.grpc.authentication.timeWindow, or a non-booleanfsc.metrics.clientAuthRequired(#2074, #2045)
Opening a channel not listed in fabric.<network>.channels returns an error (#2109), and fabric.<network>.delivery.waitForEventTimeout is gone (#2031).
API changes for developers
- Go 1.27.2 is required. (#2053)
driver.RWSetgainsGetReadVersion.Transaction.HasBeenEndorsedByverifies signatures and errors on no parties; register verifier providers withTransaction.AppendVerifierProvider.SetFromBytes/SetFromEnvelopeBytesreject mismatched proposals; callEndorseProposalbefore collecting remote endorsements. (#2038)server.NewViewServiceServertakes a time window;dig.NewViewServiceServertakes the config service. (#2074)p2p.NewServicetakes aConfigService;p2p.CommLayergainsReplyErrorandDeleteSession;Manager.NewResponderContextreturns a release func instead ofisNew;p2p.ViewManagerdropsDeleteContext. (#2024, #2032, #2073)AddResolver/UpdateResolverreject unknown and repeated address keys;ResolverInfo.AddressListis removed. (#2122)websocket.Config.ClientTLSConfigtakes no arguments (#2069).DefaultEnqueueTimeout,DefaultDispatcherTimeoutandSetEnqueueTimeoutare removed (#2049). Label-based routing andAlwaysLastare removed (#2025).common.NewVaultStoretakes aKeyEncoder; the SQL sanitizers are removed (#2070).sqlite.NewDriver/postgres.NewDriverare replaced byNewDriverWithDbProvider(#2058).driver.ConfigService.NewDefaultChannelConfigis removed (#2109);delivery.NewdropswaitForEventTimeout(#2031).vault.UniqueKeyViolationandvault.DeadlockDetectedare removed; use the sentinels inplatform/view/services/storage/driver.driver.AuditRegistryanddriver.SigRegistryare removed. (#2126)- The
platform/fabric/services/state/scriptpackages (script,script/api,script/ownable) are removed. (#2124) - Unused exported symbols are removed across the view, fabric and fabricx platforms (#2025, #2026, #2048, #2050, #2051, #2081, #2092, #2094, #2095, #2127). Each PR description lists the replacements.
What's Changed
- refactor(fabric)!: remove the unused delivery.waitForEventTimeout by @mbrandenburger in #2031
- fix(view): release the sub-connection map lock before websocket rejection writes by @mbrandenburger in #2028
- refactor(view)!: remove label-based websocket routing and AlwaysLast by @mbrandenburger in #2025
- refactor(fabricx)!: delete unreachable core/committer/txhandler.go by @mbrandenburger in #2026
- fix(fabric): read the network's client keepalive settings by @mbrandenburger in #2034
- fix(view): dial outside provider lock and set websocket handshake timeout by @SurbhiAgarwal1 in #2036
- chore(deps): bump the go-dependencies group across 3 directories with 6 updates by @dependabot[bot] in #2040
- refactor(fabricx)!: remove leftover WebSocket constant from sdk/dig by @entrepreneurme in #2048
- fix(web): bound REST view invocations with a configurable timeout by @Rozerxshashank in #2037
- fix(view)!: bound concurrent responders per remote peer by @mbrandenburger in #2024
- fix(comm)!: stop one non-draining session from stalling message dispatch by @SaidAltury-ibm in #2049
- chore(deps): bump Go to 1.27.2, x/net to v0.60.0 and golangci-lint to v2.14.0 by @SaidAltury-ibm in #2053
- refactor(view)!: remove unused storage driver declarations by @entrepreneurme in #2051
- feat(cache): add a second-chance eviction policy and let policies observe reads by @sid200727 in #1955
- refactor(fabric)!: remove unused fabric driver aliases by @entrepreneurme in #2050
- fix(view)!: reject incoming sessions that name an initiator context by @mbrandenburger in #2032
- fix(fabric): close only opened channels in FSNProvider.Stop by @SaidAltury-ibm in #2055
- test(view): wait for StreamCallView to delete its context before asserting it by @SaidAltury-ibm in #2057
- fix(fabric): honor per-entry connectionTimeout when dialling peers and orderers by @entrepreneurme in #2059
- fix(view)!: require a client certificate on /metrics and /logspec by default by @SaidAltury-ibm in #2045
- fix(fabric)!: verify endorsement signatures, proposal hash and read version of state certifications by @SaidAltury-ibm in #2038
- refactor(fabric)!: remove unused SQL NewDriver wrappers and TracingConfig by @entrepreneurme in #2058
- fix(view)!: reject configuration keys that collide after lowercasing or flattening by @SaidAltury-ibm in #2046
- fix(view): release the context and websocket of streamed REST view calls by @SaidAltury-ibm in #2039
- fix(cache): keep second-chance victim scans from orphaning entries by @mbrandenburger in #2060
- fix(comm): trust peers discovered after startup on outbound websocket connections by @SaidAltury-ibm in #2061
- chore(deps): bump the github-actions group with 2 updates by @dependabot[bot] in #2065
- chore(deps): bump the go-dependencies group across 2 directories with 15 updates by @dependabot[bot] in #2064
- fix(comm): kill websocket multiplexer on write failure by @Rozerxshashank in #2052
- fix(view)!: reject configuration keys outside AddNetwork's networks and collisions across loads by @SaidAltury-ibm in #2067
- fix(view): accept websocket streams with an undecodable span context in both providers by @mbrandenburger in #2068
- fix(comm)!: stop the websocket server trusting withdrawn extra CAs by @mbrandenburger in #2069
- fix(fabric)!: store Postgres vault keys as BYTEA so distinct keys keep distinct rows and range scans find every child by @mbrandenburger in #2070
- fix(view)!: keep a shared responder context alive until its last responder returns by @mbrandenburger in https://github.com/hyperledger...
v0.24.0
What's Changed
- fix(vault): guard GetDirectState against nil qe and closed instances by @mbrandenburger in #1892
- fix(fabric/delivery): stop leaking the receiver goroutine and its stream on shutdown by @mbrandenburger in #1894
- fix(fabricx): implement NewTransactionFromEnvelopeBytes by @mbrandenburger in #1897
- fix(fabric): guard the rwset envelope unpacker against a malformed transaction envelope by @mbrandenburger in #1898
- fix(state): reject a recipient-exchange request missing recipient data by @mbrandenburger in #1903
- fix(fabric,fabricx): report a missing endorsement or response instead of dereferencing it by @mbrandenburger in #1901
- fix(discovery): reject a Discovery response with more endorsement descriptors than requested by @mbrandenburger in #1904
- fix(fabric): guard remaining unsafe protobuf field accesses by @mbrandenburger in #1906
- chore(deps): bump the go-dependencies group across 2 directories with 2 updates by @dependabot[bot] in #1911
- fix(fabric): guard the processor registries against concurrent registration by @SaidAltury-ibm in #1908
- fix(vfsdk): only test nilable factory returns with IsNil by @SaidAltury-ibm in #1910
- fix(runner): validate batch capacity and timeout before starting the batcher by @SaidAltury-ibm in #1914
- fix(view): return errors instead of panicking from client Initiate paths by @mbrandenburger in #1916
- fix(nwo): guard AppendOrganization against a topology with no consortium by @mbrandenburger in #1921
- fix(integration): stop asserting inside bare goroutines in container log helpers by @mbrandenburger in #1922
- fix(sig): verify through the resolved verifier instead of panicking by @SaidAltury-ibm in #1924
- fix(integration): guard unguarded X(...)[0] indexing in the nwo test harness by @mbrandenburger in #1923
- test(fabricx): add cross-node regression test for endorsement result equality by @mbrandenburger in #1926
- test(fabric): increase coverage of platform/fabric/services/db/driver/sql/common by @sid200727 in #1912
- fix(state): compare Output fields in Equals instead of panicking by @SaidAltury-ibm in #1927
- fix(state)!: return errors instead of panicking from transaction inspection APIs (#1388) by @mbrandenburger in #1928
- fix(endorser)!: return an error instead of panicking on a nil service provider by @SaidAltury-ibm in #1929
- test(fabric): increase coverage of platform/fabric/core/generic/membership/channelconfig by @mbrandenburger in #1931
- test(fabric): increase coverage of platform/fabric/core/generic/services by @SaidAltury-ibm in #1930
- fix!: correct typos in identifiers, messages, and docs by @mbrandenburger in #1933
- test(fabricx): increase coverage of platform/fabricx/core/transaction by @mbrandenburger in #1949
- fix(integration): exit with an error instead of panicking in pingpong mains by @mbrandenburger in #1943
- refactor(id)!: remove unused admin identities from id.Provider by @mbrandenburger in #1947
- fix(fabricx)!: validate envelopes in the rwset loader and cover it with tests by @mbrandenburger in #1951
- fix(kvs): stop GetExisting and SplitCompositeKey from panicking by @mbrandenburger in #1944
- fix(kvs): report scan errors from the GetByPartialCompositeID iterator by @mbrandenburger in #1946
- test(fabric): increase coverage of platform/fabric/core/msp by @SaidAltury-ibm in #1956
- fix(fabricx): reject RWSet bytes that carry unknown protobuf fields by @mbrandenburger in #1953
- refactor!: consolidate composite key helpers in pkg/utils/compose by @mbrandenburger in #1958
- test(view): cover error paths of web/server and config decode hooks by @mbrandenburger in #1959
- fix(fabricx): keep vault reads, appends and equality consistent by @mbrandenburger in #1960
- test(fabric): increase coverage of platform/fabric/services/state by @SaidAltury-ibm in #1961
- fix(fabricx): record a read of a missing key in the vault RWSet by @mbrandenburger in #1963
- fix(config, web): parse byte sizes in base 10, catch shift overflow, match websocket upgrades case-insensitively by @mbrandenburger in #1968
- test(view): cover websocket host failure and teardown paths by @mbrandenburger in #1965
- refactor(config, web)!: bound request bodies, report websocket read errors, simplify decode hooks by @mbrandenburger in #1970
- fix(view): stop late websocket frames from killing the connection by @mbrandenburger in #1971
- test(fabric): increase coverage of platform/fabric/core/generic/transaction by @SaidAltury-ibm in #1972
- test(fabric): increase coverage of platform/fabric/core/generic/ledger/kvledger/rwsetutil by @SaidAltury-ibm in #1977
- fix(fabric): fail state views on a bad reply and a short recipient exchange by @SaidAltury-ibm in #1982
- test(view): increase coverage of platform/view/services/comm/host/websocket/routing by @sid200727 in #1954
- fix(vault): cache the failed open in setVaultReader by @sid200727 in #1948
- fix(view)!: delete only the disposed session and stop on a closed master session by @mbrandenburger in #2022
- fix(web): release the HTTP connection on non-200 responses by @SaidAltury-ibm in #1984
- refactor(common)!: remove unused grpc.CredentialSupport by @mbrandenburger in #2023
Full Changelog: v0.23.0...v0.24.0
v0.23.0
What's Changed
- chore(deps): bump the go-dependencies group across 3 directories with 4 updates by @dependabot[bot] in #1863
- test(view): cover the pagination implementations by @sid200727 in #1853
- test(view): improve test coverage for view sdk dig by @Rozerxshashank in #1831
- fix(logging): report an unparseable caller name instead of panicking by @sid200727 in #1844
- test(fabric): cover the postgres db driver by @SaidAltury-ibm in #1857
- fix(fabric): initialize per-channel map in AddChannelProcessor by @SaidAltury-ibm in #1868
- fix(runner): guard the output cardinality in the serial implementations by @SaidAltury-ibm in #1873
- fix(metrics): guard the no-separator case in GetPackageName by @SaidAltury-ibm in #1870
- fix(fabric): treat a block with no header as a query failure by @SaidAltury-ibm in #1875
- test(common): improve test coverage for platform/common/sdk/dig by @Rozerxshashank in #1866
- fix(view): report a missing endpoint resolver instead of dereferencing it by @SaidAltury-ibm in #1879
- test(fabric): increase coverage of platform/fabric/core/protoutil by @sid200727 in #1864
- test(view): increase coverage of platform/view/services/storage/driver/sql/sqlite by @sid200727 in #1876
- fix(state): bound-check the stream At methods by @SaidAltury-ibm in #1881
- fix(fabric/delivery): classify commit failures instead of stopping the channel on any error by @SaidAltury-ibm in #1840
- fix(kvs): reject a cache size below 1 instead of panicking on the first write by @SaidAltury-ibm in #1883
- fix(grpc): report an error from SetClientRootCAs when TLS is disabled by @SaidAltury-ibm in #1885
- fix(fabric): return the declared errors instead of panicking by @SaidAltury-ibm in #1887
- test(fabricx): increase coverage of platform/fabricx/core/channel by @Rozerxshashank in #1888
- fix(vault): report an absent key from GetDirectState instead of dereferencing it by @SaidAltury-ibm in #1890
Full Changelog: v0.22.0...v0.23.0
v0.22.0
What's Changed
- chore(deps): bump the go-dependencies group across 3 directories with 6 updates by @dependabot[bot] in #1819
- test(metrics/operations): replace the dead spec suite with real tests by @sid200727 in #1815
- chore(lint): enable usetesting in golangci-lint by @mbrandenburger in #1812
- chore(lint): enable forcetypeassert in golangci-lint by @mbrandenburger in #1821
- chore(lint): enable sqlclosecheck in golangci-lint by @mbrandenburger in #1820
- test: add fuzz coverage for pre-auth parsing paths by @Rozerxshashank in #1818
- test(fabricx): improve test coverage for fabricx sdk dig providers by @Rozerxshashank in #1817
- refactor(grpc)!: unify gRPC/TLS config by @mbrandenburger in #1813
- refactor!: retire closer.go, replace with standard Go error discards by @mbrandenburger in #1829
- test(grpc/logging): cover the interceptors, options and stream wrapper, and guard stream payload logging by @sid200727 in #1814
- refactor!: cleanup utils by @mbrandenburger in #1834
- test(logging): cover the context-aware methods, lazy types and replacer registry by @sid200727 in #1837
- refactor: simplify lazy package using stdlib, close test coverage gaps by @mbrandenburger in #1836
- refactor: simplify collections package using stdlib, add Godoc, close test gaps by @mbrandenburger in #1839
- refactor!: propagate TLS config errors instead of panicking in websocket host by @mbrandenburger in #1846
- refactor!: propagate errors instead of panicking by @mbrandenburger in #1845
- test(fabric): cover the identity provider in platform/fabric/core/generic/id by @sid200727 in #1850
- refactor(logging): inline MustGetLogger's panic instead of utils.MustGet by @mbrandenburger in #1854
- refactor!: retire utils.IsNil by @mbrandenburger in #1855
- refactor(utils): remove Zero, inline its zero-value construction at call sites by @mbrandenburger in #1856
- test(fabric): cover the network service provider in platform/fabric/core by @sid200727 in #1848
- refactor: replace fmt.Errorf and stdlib errors.New with pkg/utils/errors by @mbrandenburger in #1860
- refactor!: retire utils.Must and utils.MustGet by @mbrandenburger in #1858
Full Changelog: v0.21.0...v0.22.0
v0.21.0
What's Changed
- test(integration): share one network per Describe, drop four redundant specs by @mbrandenburger in #1730
- test(ci): split unit tests per module and stop rebuilding what CI alr… by @mbrandenburger in #1727
- build(deps): let dependabot update every module by @mbrandenburger in #1744
- docs: align the project docs with the OpenSSF passing criteria by @mbrandenburger in #1742
- chore(deps): bump actions/setup-node from 6.4.0 to 7.0.0 by @dependabot[bot] in #1748
- chore(deps): bump actions/checkout from 6.0.2 to 7.0.1 by @dependabot[bot] in #1749
- chore: drop the committed .env and ignore it by @mbrandenburger in #1743
- fix(comm): stop reusing the JSON decode target in readIncoming by @mbrandenburger in #1746
- chore(deps): replace the unmaintained uptrace opentelemetry-go-extra modules by @mbrandenburger in #1753
- chore(deps): upgrade every module to Go 1.27.1 by @mbrandenburger in #1751
- ci(govulncheck): scan every module on main and weekly by @mbrandenburger in #1754
- chore(lint): enable gosec in golangci-lint by @mbrandenburger in #1757
- refactor(tls)!: resolve all TLS configuration through one path by @mbrandenburger in #1728
- ci(govulncheck): run on pull requests by @mbrandenburger in #1762
- fix: wire up committer.pollingTimeout from channel config by @Rozerxshashank in #1740
- fix(vault): dedup ordered reads, and add missing tests by @sid200727 in #1759
- fix(fabric): return UnknownTxTimeout from its own accessor by @SaidAltury-ibm in #1763
- test: improve platform/fabric test coverage to >90% by @Rozerxshashank in #1739
- chore(lint): name the standard linters explicitly in golangci config by @mbrandenburger in #1765
- chore(lint): enable durationcheck in golangci-lint by @mbrandenburger in #1767
- chore(lint): enable loggercheck in golangci-lint by @mbrandenburger in #1768
- chore(lint): enable makezero in golangci-lint by @mbrandenburger in #1769
- chore(lint): enable nilnesserr in golangci-lint by @mbrandenburger in #1770
- chore(docs): Update community call information by @mbrandenburger in #1771
- chore(lint): enable recvcheck in golangci-lint by @mbrandenburger in #1774
- chore(lint): enable rowserrcheck in golangci-lint by @mbrandenburger in #1775
- chore(lint): enable nilerr in golangci-lint by @mbrandenburger in #1776
- chore(lint): enable usestdlibvars in golangci-lint by @mbrandenburger in #1777
- chore(lint): enable spancheck in golangci-lint by @mbrandenburger in #1778
- chore(lint): enable predeclared in golangci-lint by @mbrandenburger in #1779
- chore(lint): enable errorlint in golangci-lint by @mbrandenburger in #1780
- build(deps): exclude Fabric and IBM crypto deps from Dependabot versi… by @mbrandenburger in #1781
- chore(lint): enable bodyclose in golangci-lint by @mbrandenburger in #1782
- chore(lint): enable contextcheck in golangci-lint by @mbrandenburger in #1783
- chore(lint): enable testifylint in golangci-lint by @mbrandenburger in #1785
- chore(lint): enable unconvert in golangci-lint by @mbrandenburger in #1786
- test(vault): cover interceptor and vault error and lifecycle paths by @sid200727 in #1764
- fix(deps): drop invalid applies-to from dependabot ignore rules by @mbrandenburger in #1784
- chore(deps): bump the go-dependencies group across 3 directories with 14 updates by @dependabot[bot] in #1790
- chore(ci): harden workflow token permissions by @mbrandenburger in #1792
- chore(docs): Add OpenSSF scorecards by @mbrandenburger in #1788
- chore(lint): enable gocritic in golangci-lint by @mbrandenburger in #1789
- chore(lint): enable revive in golangci-lint by @mbrandenburger in #1793
- fix(comm)!: bound the varint reader's allocation by @SaidAltury-ibm in #1766
- chore(ci): add nightly fuzz-testing workflow by @mbrandenburger in #1795
- fix(fabric): check the validation code on non-filtered delivery by @SaidAltury-ibm in #1797
- docs: document how to write and maintain documentation by @SaidAltury-ibm in #1802
- fix(fabric): guard the nil PickPeer returns by @SaidAltury-ibm in #1798
- chore(deps): bump actions/cache from 4.3.0 to 6.1.0 by @dependabot[bot] in #1803
- chore(deps): bump actions/upload-artifact from 4.6.2 to 7.0.1 by @dependabot[bot] in #1804
- fix(fabric): do not wrap a nil err as if it were the failure cause by @mbrandenburger in #1807
- docs(testing): document fuzzing workflow and crash triage by @mbrandenburger in #1805
- fix(fabric): bound the remote finality probe by the caller's context by @SaidAltury-ibm in #1810
- test(fabric): improve test coverage for fabric sdk dig providers by @Rozerxshashank in #1796
- test: use require in tests where a failure matters by @mbrandenburger in #1809
- refactor(fabric): simplify CFTBroadcaster retry loop, fix connection-pool leak by @mbrandenburger in #1808
Full Changelog: v0.20.0...v0.21.0