• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

hyperledger-labs / fabric-smart-client / 30338257600
81%

Build:
DEFAULT BRANCH: main
Ran 28 Jul 2026 07:27AM UTC
Jobs 17
Files 532
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Jul 2026 07:23AM UTC coverage: 81.265% (+0.05%) from 81.213%
30338257600

push

github

web-flow
fix(security): harden fabricx driver against malformed/malicious remote input (#1613)

* fix(security): harden fabricx driver against malformed/malicious remote input

Several code paths in platform/fabricx/ trusted remote-controlled input
(committer/notifier responses, block/metadata content, channel-config
envelopes) without sufficient validation, allowing a malicious or
compromised remote endpoint to bypass endorsement verification, deadlock
finality tracking, crash the client process, or suppress legitimate
channel-config propagation.

- core/transaction: verify every EndorsementWithIdentity entry in a
  namespace's endorsement set (not just the first), and cross-check each
  entry's claimed identity against the actual endorser.
- core/finality: never hold handlersMu across a blocking send on
  requestQueue; fail fast with an error once the notification stream has
  died instead of deadlocking every subsequent listener registration.
- core/ledger: bounds/nil-check block header, block data, and the
  TRANSACTIONS_FILTER metadata entry before indexing into them.
- core/channel/config: cross-validate the remote-reported config Version
  against the sequence number embedded in the config envelope's own
  content, so a compromised committer cannot suppress a genuinely new
  config merely by lying about Version.
- core/committer: bounds-check the TRANSACTIONS_FILTER entry against the
  transaction index (including an off-by-one in the outer length check)
  before indexing into it.

All previously-panicking/bypassing behavior is now covered by regression
tests asserting the fixed behavior.

Refs #1612

Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>

* test(security): satisfy make checks lint on new regression tests

golangci-lint (paralleltest, gofumpt) flagged the regression tests added
in the previous commit: several test functions were missing t.Parallel(),
and one file had a gofumpt formatting issue.

- core/committer, core/finality, core/ledger:... (continued)

104 of 111 new or added lines in 5 files covered. (93.69%)

7 existing lines in 4 files now uncovered.

32401 of 39871 relevant lines covered (81.26%)

3155.6 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
94.79
-0.5% platform/fabricx/core/channel/config/monitor.go
2
93.44
-0.68% platform/fabricx/core/ledger/ledger.go
2
92.13
-0.86% platform/fabricx/core/transaction/pr.go
1
26.98
26.98% platform/fabricx/core/committer/txhandler.go

Coverage Regressions

Lines Coverage ∆ File
2
97.22
-2.78% platform/common/utils/lazy/provider.go
2
91.4
-2.15% platform/view/services/view/web/view.go
2
54.55
-18.18% platform/view/services/storage/driver/sql/sqlite/errormapper.go
1
87.23
-0.53% platform/view/services/comm/session.go
Jobs
ID Job ID Ran Files Coverage
1 itest-fabric-iou - 30338257600.1 28 Jul 2026 07:35AM UTC 484
37.58
GitHub Action Run
2 itest-fsc-pingpong - 30338257600.2 28 Jul 2026 07:33AM UTC 272
30.04
GitHub Action Run
3 itest-fsc-signedpingpong - 30338257600.3 28 Jul 2026 07:28AM UTC 270
27.08
GitHub Action Run
4 itest-fabric-events - 30338257600.4 28 Jul 2026 07:31AM UTC 479
25.62
GitHub Action Run
5 itest-fsc-stoprestart - 30338257600.5 28 Jul 2026 07:30AM UTC 272
28.79
GitHub Action Run
6 itest-fabric-atsa - 30338257600.6 28 Jul 2026 07:33AM UTC 474
40.45
GitHub Action Run
7 itest-fabricx-multiendorsement - 30338257600.7 28 Jul 2026 07:27AM UTC 501
26.13
GitHub Action Run
8 itest-fabric-atsachaincode - 30338257600.8 28 Jul 2026 07:31AM UTC 479
28.2
GitHub Action Run
9 itest-fabric-twonets - 30338257600.9 28 Jul 2026 07:32AM UTC 474
27.18
GitHub Action Run
10 itest-fabric-iouhsm - 30338257600.10 28 Jul 2026 07:34AM UTC 484
36.82
GitHub Action Run
11 itest-fabricx-simple - 30338257600.11 28 Jul 2026 07:27AM UTC 501
25.35
GitHub Action Run
12 utest - 30338257600.12 28 Jul 2026 07:30AM UTC 523
73.01
GitHub Action Run
13 itest-fabric-runtimeconfig - 30338257600.13 28 Jul 2026 07:30AM UTC 484
35.48
GitHub Action Run
14 itest-fabric-stoprestart - 30338257600.14 28 Jul 2026 07:34AM UTC 474
28.94
GitHub Action Run
15 itest-fabricx-iou - 30338257600.15 28 Jul 2026 07:27AM UTC 503
26.4
GitHub Action Run
16 utest-postgres - 30338257600.16 28 Jul 2026 07:29AM UTC 523
14.2
GitHub Action Run
17 itest-fabricx-deployment - 30338257600.17 28 Jul 2026 07:27AM UTC 501
26.03
GitHub Action Run
Source Files on build 30338257600
  • Tree
  • List 532
  • Changed 29
  • Source Changed 5
  • Coverage Changed 29
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30338257600
  • 3bcf72e8 on github
  • Prev Build on main (#30294154788)
  • Next Build on main (#30339536778)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc