Skip to content

Bump github.com/theupdateframework/go-tuf/v2 from 2.4.2 to 2.5.0 in /clients/go-tuf - #441

Merged
jku merged 2 commits into
mainfrom
dependabot/go_modules/clients/go-tuf/github.com/theupdateframework/go-tuf/v2-2.5.0
Nov 30, 2026
Merged

jku merged 2 commits into
mainfrom
dependabot/go_modules/clients/go-tuf/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 added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Nov 30, 2026
Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
@jku
jku merged commit bb7eb05 into main Nov 30, 2026
3 checks passed
@dependabot
dependabot Bot deleted the dependabot/go_modules/clients/go-tuf/github.com/theupdateframework/go-tuf/v2-2.5.0 branch November 30, 2026 11:54
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