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

hyperledger / fabric-x-committer / 40289479271
90%
main: 91%

Build:
Build:
LAST BUILD BRANCH: vc-remove-queue-multiplier
DEFAULT BRANCH: main
Ran 26 Oct 2026 08:06AM UTC
Jobs 3
Files 148
Run time 1min
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

26 Oct 2026 07:42AM UTC coverage: 90.19% (-0.5%) from 90.673%
40289479271

Pull #848

github

dean-amar
[auth] Add the Auth Service: nonce challenge, certificate-bound tokens, and authorization

#### Type of change

- New feature

#### Description

- New `auth` service (`committer start auth`) with three RPCs: `IssueNonce` hands out a single-use
  challenge, `Authenticate` exchanges an envelope signed over it for an opaque token bound to the
  client's TLS certificate, and `Authorize` checks a token against a resource's policy.
- Tokens (stored by hash) and nonces live in two new state-database tables, `auth_tokens` and
  `auth_nonces`, created by `init-db`, so any instance serves any request.
- Policy comes from the committed channel configuration's `ACLs` section, defaulting to
  `/Channel/Application/Readers`, and is re-read as the configuration changes.
- `statedb.ReadConfigTransaction` is the shared reader of the committed configuration (auth and query).
- Client helpers in `utils/acl`: `IssueToken`, `BuildAuthEnvelope`, `TLSCertHash`.
- Adds `grpcerror.WrapUnavailable`, `WrapUnauthenticated` and `WrapPermissionDenied`.

#### Additional details (Optional)

- Nothing enforces tokens yet; the Query Service and Sidecar are wired in #845.

#### Related issues

- resolves #844
- related to #592

Signed-off-by: Dean Amar <Dean.Amar@ibm.com>
Pull Request #848: [ACL] Add the Auth Service: nonce challenge, certificate-bound tokens, and authorization [1/4]

335 of 438 new or added lines in 15 files covered. (76.48%)

6 existing lines in 4 files now uncovered.

10095 of 11193 relevant lines covered (90.19%)

9699.34 hits per line

Uncovered Changes

Lines Coverage ∆ File
54
75.0
service/auth/auth_service.go
22
69.01
service/auth/database.go
8
81.4
service/auth/config_provider.go
8
77.14
utils/acl/issue.go
7
68.18
service/auth/policy.go
2
84.09
-3.09% cmd/committer/start_cmd.go
2
83.33
utils/statedb/config_transaction.go

Coverage Regressions

Lines Coverage ∆ File
3
90.12
0.0% service/coordinator/validator_committer_manager.go
1
85.33
-1.33% loadgen/adapters/verifier.go
1
96.2
-1.27% mock/sigverifier.go
1
95.5
-0.9% mock/vcservice.go
Jobs
ID Job ID Ran Files Coverage
1 core-db-test - 40289479271.1 26 Oct 2026 08:09AM UTC 115
50.3
GitHub Action Run
2 unit-test - 40289479271.2 26 Oct 2026 08:07AM UTC 96
85.84
GitHub Action Run
3 db-test - 40289479271.3 26 Oct 2026 08:06AM UTC 148
78.4
GitHub Action Run
Source Files on build 40289479271
  • Tree
  • List 148
  • Changed 22
  • Source Changed 0
  • Coverage Changed 22
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #848
  • PR Base - main (#39955679524)
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