Skip to content

Update module github.com/theupdateframework/go-tuf/v2 to v2.5.0 - #569

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/github.com-theupdateframework-go-tuf-v2-2.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/github.com-theupdateframework-go-tuf-v2-2.x

Conversation

@renovate

@renovate renovate Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
github.com/theupdateframework/go-tuf/v2 v2.4.2 → v2.5.0 age confidence

Release Notes

theupdateframework/go-tuf (github.com/theupdateframework/go-tuf/v2)

v2.5.0

Compare Source

Highlights & Upgrade Notes

Breaking & Behavior Changes
  • Go 1.27 minimum (up from Go 1.25.0).
  • ECDSA key scheme derived from curve (#​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 (#​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 (#​743, #​819, #​833, #​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 (#​783, #​753, #​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
  • TUF specification v1.0.37 (#​826, #​831): SPECIFICATION_VERSION is bumped to 1.0.37; target lookup skips a delegated role only if it is already on the current delegation path, re-visiting and verifying shared roles reached via other paths.
  • Post-quantum ML-DSA support (TAP 21) (#​780): support for ml-dsa keys (ml-dsa-44/1, ml-dsa-65/1, ml-dsa-87/1).
  • Client, fetcher, and multirepo improvements: Updater.GetTopLevelTargets returns an empty map before refresh instead of panicking (#​832); MultiRepoClient.Refresh refreshes all repositories in deterministic order and joins errors (#​800); MultiRepoClient validates map.json up front and exposes ErrMissingRepoURL, ErrUnknownMappingRepo, and ErrMissingTrustedRoot (#​750, #​760); DefaultFetcher.SetTransport and NewFetcherWithRoundTripper no longer mutate http.DefaultClient (#​802); deterministic target hash-prefix selection (#​772); TargetsType.AddKey rejects unconfigured delegated roles (#​788); external signer and PEM key documentation and examples (#​825).

What's Changed

New Contributors

Full Changelog: theupdateframework/go-tuf@v2.4.2...v2.5.0


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants