Skip to content

chore(deps): Bump github.com/theupdateframework/go-tuf/v2 from 2.4.2 to 2.5.0 - #15195

Closed
dependabot[bot] wants to merge 1 commit into
trunkfrom
dependabot/go_modules/github.com/theupdateframework/go-tuf/v2-2.5.0
Closed

dependabot[bot] wants to merge 1 commit into
trunkfrom
dependabot/go_modules/github.com/theupdateframework/go-tuf/v2-2.5.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 30, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/theupdateframework/go-tuf/v2 from 2.4.2 to 2.5.0.

Release notes

Sourced from github.com/theupdateframework/go-tuf/v2's releases.

v2.5.0

Highlights & Upgrade Notes

Breaking & Behavior Changes

  • Go 1.27 minimum (up from Go 1.25.0).
  • ECDSA key scheme derived from curve (theupdateframework/go-tuf#827): KeyFromPublicKey now assigns ecdsa-sha2-nistp384 to P-384 keys (changing their canonical key ID and requiring SHA-384 signatures) and rejects curves other than P-256 and P-384. Existing metadata signed under the legacy scheme still verifies; repositories rotating a P-384 root key must include a SHA-256 signature under the old key ID alongside the new signature so clients on the previous root can verify the transition (see the KeyFromPublicKey documentation).
  • Sign rejects unverifiable signatures and replaces duplicates (theupdateframework/go-tuf#828): Sign verifies the signature it produces before storing it. RSA signers using PKCS #1 v1.5 (such as Sigstore's default signature.LoadSigner on RSA keys) are now rejected instead of writing an unusable signature for an rsassa-pss-sha256 key; use signature.LoadRSAPSSSigner instead. Re-signing with the same key replaces the existing signature in place.
  • Stricter parse-time metadata validation (theupdateframework/go-tuf#743, theupdateframework/go-tuf#819, theupdateframework/go-tuf#833, theupdateframework/go-tuf#839): FromBytes and UnmarshalJSON now reject malformed or non-1.x spec_version values, version < 1, root metadata missing any of the four required top-level roles (root, snapshot, timestamp, targets), duplicate delegated role names, delegated roles specifying both paths and path_hash_prefixes, and null map entries. Parse and validation errors from FromBytes are classified as metadata.ErrDeserialization (a subset of ErrRepository that unwraps the underlying error), so Updater clients automatically re-fetch valid replacement metadata if a previously cached local file fails these checks.
  • Hex path_hash_prefixes and POSIX delegation globs (theupdateframework/go-tuf#783, theupdateframework/go-tuf#753, theupdateframework/go-tuf#820): path_hash_prefixes now matches hex-encoded SHA-256 digests per the TUF specification instead of base64. Delegation path patterns use OS-independent POSIX path.Match and surface path.ErrBadPattern when no other pattern on the role matches.

Security & Reliability Fixes

New Features & Client Improvements

What's Changed

... (truncated)

Commits
  • 71e6ddc fix(metadata): bound spec_version split and classify parse errors as ErrDeser...
  • 81a101a chore(deps): bump the github-actions group with 4 updates (#836)
  • 4506ada fix(metadata)!: validate spec_version, version, root roles and delegated role...
  • 334be9a updater: return no top-level targets before a refresh instead of panicking (#...
  • 5d01f31 updater: skip a delegated role only if it is on the current delegation path (...
  • ebbf0e9 Fix typos in README and updater comment (#834)
  • 0198b2f fix(simulator): serve hash-prefixed targets (#815)
  • afb65de multirepo: refresh every repository even when one fails (#800)
  • b08d928 metadata: reject AddKey when no delegated role is configured (#788)
  • 568d9f0 fetcher: do not set the transport on the shared http.DefaultClient (#802)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/theupdateframework/go-tuf/v2](https://github.com/theupdateframework/go-tuf) from 2.4.2 to 2.5.0.
- [Release notes](https://github.com/theupdateframework/go-tuf/releases)
- [Commits](theupdateframework/go-tuf@v2.4.2...v2.5.0)

---
updated-dependencies:
- dependency-name: github.com/theupdateframework/go-tuf/v2
  dependency-version: 2.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot requested a review from a team as a code owner November 30, 2026 14:03
@dependabot
dependabot Bot requested a review from tidy-dev November 30, 2026 14:03
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Nov 30, 2026
Copilot AI balanced review requested due to automatic review settings November 30, 2026 14:03
@dependabot dependabot Bot added the go Pull requests that update Go code label Nov 30, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Security-sensitive TUF parsing and delegation verification changes require compatibility confirmation for attestation trust loading, but upstream source and dependency-backed CI validation are unavailable here.

No open issues 🎉

What changed in this PR

Updates GitHub CLI’s direct go-tuf/v2 dependency from v2.4.2 to v2.5.0, bringing upstream TUF security, validation, and reliability improvements.

Changes:

  • Bumps the dependency version in go.mod.
  • Replaces the module and module-file checksums in go.sum.
File Description
go.sum Updates checksums for go-tuf/v2 v2.5.0.
go.mod Requires go-tuf/v2 v2.5.0 instead of v2.4.2.

Review effort: Balanced

@cli-triage

cli-triage Bot commented Nov 30, 2026

Copy link
Copy Markdown

Recommendation: Review before merging, Confidence: Medium

The upstream release includes security fixes for cached delegated metadata verification and case-sensitive JSON field handling, along with stricter metadata parsing, changed delegation matching, and ECDSA signing behavior, so the scope is consistent with a substantial feature release rather than a routine low-risk bump. This is a direct requirement, and its metadata, metadata/config, metadata/fetcher, metadata/trustedmetadata, and metadata/updater packages are compiled into the shipped binary and used by attestation verification and trusted-root flows, making the behavior changes relevant. Maintainer review is warranted for those compatibility-sensitive changes even though the completed checks passed. The PR diff was unavailable through the permitted read tooling, so I could not directly verify the manifest-only change or in-repo generated-file coherence and confidence is capped at Medium.

Assessed at head commit 8a038f8ae4b9cbeb313316a03a392f56f603863c.

Generated by Dependabot PR Triage (skills-driven) · copilot · gpt56 · ~40 AIC · ⌖ ~5 AIC · ⊞ 19.7K · ◷

@dependabot @github

dependabot Bot commented on behalf of github Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #15205.

@dependabot dependabot Bot closed this Dec 1, 2026
@dependabot
dependabot Bot deleted the dependabot/go_modules/github.com/theupdateframework/go-tuf/v2-2.5.0 branch December 1, 2026 14:31
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 go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant