Skip to content

build(deps): Bump github.com/go-pkgz/jrpc from 0.4.0 to 0.4.2 - #1423

Merged
lklimek merged 1 commit into
v1.7-devfrom
dependabot/go_modules/github.com/go-pkgz/jrpc-0.4.2
Sep 3, 2026
Merged

lklimek merged 1 commit into
v1.7-devfrom
dependabot/go_modules/github.com/go-pkgz/jrpc-0.4.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Bumps github.com/go-pkgz/jrpc from 0.4.0 to 0.4.2.

Release notes

Sourced from github.com/go-pkgz/jrpc's releases.

Version 0.4.2

Updates go-pkgz/routegroup to v1.6.1 and brings the example modules up to the current dependency set, including go-pkgz/rest v1.24.0. The routegroup change affects a custom NotFoundHandler only, which jrpc does not use, so behaviour is unchanged.

The binaries produced by building the examples are now ignored by git.

Version 0.4.1

CallTimeout was configurable but never enforced, so a call could run without bound. It is now applied with http.TimeoutHandler, which answers 503 at the deadline.

Worth knowing: ServerFn takes no context, so the handler keeps running after the deadline. A client that retries a state-changing call can therefore run it twice, where previously it waited for the original result.

Also removes a flaky test that compared elapsed time against a fixed window, corrects the README examples, and notes that the example needs a free local port 8080 and that the plugin keeps listening until stopped.

Dependency: go-pkgz/rest v1.24.0.

Commits
  • cff56ef Bump routegroup to v1.6.1, update example modules to current deps (#20)
  • 301cb2f chore: update go-pkgz/rest to v1.24.0
  • c7f4c42 Note the port and how to stop the plugin in the example section (#19)
  • 72a5b10 Enforce CallTimeout, fix readme examples and flaky tests (#18)
  • See full diff in compare view

@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Aug 25, 2026
@Claudius-Maginificent

Copy link
Copy Markdown
Collaborator

🔐 Dependency Security Audit — SAFE TO MERGE

Audited at 8852bf2. Diff is go.mod + go.sum only, as it should be. I read the upstream source rather than trusting the green govulncheck — for this vendor in particular, a clean scan is not evidence of anything (see §5).

1. What actually moved

The title says jrpc 0.4.0 → 0.4.2, but five modules move and one is retired. All MVS-forced by [email protected]'s own go.mod — nothing stray:

Module Old → New
go-pkgz/jrpc 0.4.0 → 0.4.2 direct
go-pkgz/rest 1.21.0 → 1.24.0 indirect (3 minor versions)
go-pkgz/routegroup 1.6.0 → 1.6.1 indirect
stretchr/testify 1.11.1 → 1.12.0 direct (test)
stretchr/objx 0.5.2 → 0.5.3 indirect
pmezard/go-difflib removed vendored into testify

2. Diff integrity

  • Tags resolve to bc67004 → cff56ef; 4 commits, both authors established go-pkgz maintainers. No maintainer handoff.
  • One new file (example_test.go). No install/build/publish hooks, no new outbound network calls, no env/credential reads, no obfuscated blobs. The CI workflow change is hardening (adds permissions: contents: read).
  • All five go.sum hashes verified byte-for-byte against the sum.golang.org transparency log. go mod verify → all modules verified; go mod tidy on a copy reproduces go.mod/go.sum byte-identically.

No integrity finding. The update itself is trustworthy.

3. Known vulnerabilities

None, for either old or new versions. OSV.dev, GitHub Advisory DB and vuln.go.dev were queried per module, and the query mechanism was validated against known-vulnerable controls (x/net → 3 GHSAs; go-pkgz/auth → GHSA-f6qq-3m3h-4g42) so the empty results are genuine absences, not broken queries.

4. Silent security fixes this bump carries

None of these have a CVE or GHSA. They are real fixes, shipped in ordinary release notes:

Module Fix CWE
rest logger passed the formatted line as a format string (Logf(formater(r,p))) → now Logf("%s", …) CWE-134
rest line breaks in logged URL/body could forge extra log records CWE-117
rest OnlyFrom matched complete-IP rules by string prefix — allowlisting 192.168.1.1 also admitted 192.168.1.10/.123 CWE-863
rest CORS now rejects wildcard origin when credentials are enabled CWE-942
rest BlackWords silently skipped filtering when the body read failed → now refuses CWE-693
routegroup the 404 probe could execute a real route handler and discard its response —
jrpc CallTimeout was advisory-only (ctx deadline); now enforced CWE-400

So the bump is net-positive on supply-chain grounds, and retires an 8-year-old go-difflib pseudo-version (v1.0.1-0.20181226105442) in the bargain.

5. Reachability — the decisive part

The only consumer is privval/dash_core_mock_signer_server.go. Verified with go list -deps across all 20 main packages:

  • jrpc, rest, routegroup are linked into cmd/tenderdash, cmd/priv_val_server, test/e2e/node and test/e2e/runner — the file is a non-test file in package privval, which node/ and cmd/ import.
  • But DashCoreMockSignerServer / NewDashCoreMockSignerServer have zero references anywhere in the repo, tests included.
  • Even if constructed, Run() never calls Add(), so it returns nothing mapped for dispatch before net.Listen — it can never bind a socket.
  • CallTimeout defaults to 0 and WithTimeouts is never called → the new http.TimeoutHandler middleware is never installed.
  • routegroup.NotFoundHandler is never set → that fix's precondition is unreachable.
  • No jrpc.Client usage anywhere. jrpc wires only Throttle/RealIP/Ping/Recoverer/AppInfo/NoCache/RenderJSON/logger — never CORS, Gzip, CacheControl, OnlyFrom or BlackWords.

Dead code, live dependency. Zero runtime attack surface — and equally, zero benefit from all that upstream hardening.

6. Findings

ID Severity Finding
SEC-001 LOW (pre-existing) privval/dash_core_mock_signer_server.go:29 hardcodes jrpc.Auth("user", "password") (CWE-798) in a non-test file compiled into cmd/tenderdash and cmd/priv_val_server. Inert only because the constructor is unreachable and Run() errors before binding.
SEC-002 INFO (upstream) rest v1.24.0 middleware.go:110 still calls l.Logf(string(debug.Stack())) — the one non-constant format-string sink (CWE-134) missed by the 1.23.x sweep. Content is compiler-generated, so not attacker-controllable; hygiene only. Recoverer is one of the middlewares jrpc wires up, so it matters if this code is ever revived.
SEC-003 INFO (upstream) jrpc enforces CallTimeout via http.TimeoutHandler, but ServerFn takes no context.Context — the handler keeps running past the deadline. A retried state-changing call could execute twice. For a signer that would be a serious property. Unreachable today; recorded against future revival.
SEC-004 INFO (ecosystem) go-pkgz ships security fixes silently — no SECURITY.md in any of the four repos, and 8 security-relevant fixes in this bump alone carry no advisory. govulncheck/Dependabot are effectively blind to this vendor; its release notes must be read by hand at audit time.

No finding trips a blocker gate. None is introduced by this PR.

7. Verification performed

go mod verify clean · go mod tidy byte-identical · go build/go vet ./privval/... clean · go test -race ./privval/... green across 3 iterations, no flakiness · go test -run '^$' ./... links 102 packages OK (the one test/e2e/pkg vet failure is pre-existing and unrelated) — so testify 1.12.0 breaks no test compilation anywhere · CI green 16/16.

8. Recommendation

Merge. Then, as a separate PR: delete privval/dash_core_mock_signer_server.go and go mod tidy. That retires three modules and the hardcoded credential literal in one stroke, and closes this recurring Dependabot lane permanently — this is the fourth jrpc bump (#1033, #1220, …) spent re-verifying a dependency nothing consumes.

Minor follow-up: testify v1.12.1 exists (moves off the archived gopkg.in/yaml.v3); Dependabot pinned 1.12.0 because jrpc v0.4.2 requires it. Maintenance, not security.

🤖 Co-authored by Claudius the Magnificent AI Agent

@Claudius-Maginificent

Copy link
Copy Markdown
Collaborator

@dependabot rebase

@dependabot @github

dependabot Bot commented on behalf of github Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

Sorry, only users with push access can use that command.

@Claudius-Maginificent

Copy link
Copy Markdown
Collaborator

@dependabot rebase

@dependabot @github

dependabot Bot commented on behalf of github Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

Sorry, only users with push access can use that command.

@lklimek

lklimek commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

@dependabot rebase

@dependabot @github

dependabot Bot commented on behalf of github Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

Looks like this PR has been edited by someone other than Dependabot. That means Dependabot can't rebase it - sorry!

If you're happy for Dependabot to recreate it from scratch, overwriting any edits, you can request @dependabot recreate.

@lklimek

lklimek commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

@dependabot recreate

Bumps [github.com/go-pkgz/jrpc](https://github.com/go-pkgz/jrpc) from 0.4.0 to 0.4.2.
- [Release notes](https://github.com/go-pkgz/jrpc/releases)
- [Commits](go-pkgz/jrpc@v0.4.0...v0.4.2)

---
updated-dependencies:
- dependency-name: github.com/go-pkgz/jrpc
  dependency-version: 0.4.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot
dependabot Bot force-pushed the dependabot/go_modules/github.com/go-pkgz/jrpc-0.4.2 branch from 8852bf2 to c93e973 Compare September 3, 2026 07:04
@lklimek
lklimek merged commit 1648430 into v1.7-dev Sep 3, 2026
16 checks passed
@lklimek
lklimek deleted the dependabot/go_modules/github.com/go-pkgz/jrpc-0.4.2 branch September 3, 2026 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants