Repository navigation
Update module github.com/theupdateframework/go-tuf/v2 to v2.5.0 - #569
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v2.4.2→v2.5.0Release Notes
theupdateframework/go-tuf (github.com/theupdateframework/go-tuf/v2)
v2.5.0Compare Source
Highlights & Upgrade Notes
Breaking & Behavior Changes
KeyFromPublicKeynow assignsecdsa-sha2-nistp384to 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 theKeyFromPublicKeydocumentation).Signrejects unverifiable signatures and replaces duplicates (#828):Signverifies the signature it produces before storing it. RSA signers using PKCS #1 v1.5 (such as Sigstore's defaultsignature.LoadSigneron RSA keys) are now rejected instead of writing an unusable signature for anrsassa-pss-sha256key; usesignature.LoadRSAPSSSignerinstead. Re-signing with the same key replaces the existing signature in place.FromBytesandUnmarshalJSONnow reject malformed or non-1.xspec_versionvalues,version < 1,rootmetadata missing any of the four required top-level roles (root,snapshot,timestamp,targets), duplicate delegated role names, delegated roles specifying bothpathsandpath_hash_prefixes, andnullmap entries. Parse and validation errors fromFromBytesare classified asmetadata.ErrDeserialization(a subset ofErrRepositorythat unwraps the underlying error), soUpdaterclients automatically re-fetch valid replacement metadata if a previously cached local file fails these checks.path_hash_prefixesand POSIX delegation globs (#783, #753, #820):path_hash_prefixesnow matches hex-encoded SHA-256 digests per the TUF specification instead of base64. Delegation path patterns use OS-independent POSIXpath.Matchand surfacepath.ErrBadPatternwhen no other pattern on the role matches.Security & Reliability Fixes
UnrecognizedFields(GHSA-x8f5-9qx3-7q7m, #821).Ed25519public keys without panicking (#739), guard againstnullJSON pointer dereferences (#743, #749), boundspec_versionsplitting (#839), and usehmac.Equalfor digest comparisons (#742).New Features & Client Improvements
SPECIFICATION_VERSIONis bumped to1.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.ml-dsakeys (ml-dsa-44/1,ml-dsa-65/1,ml-dsa-87/1).multirepoimprovements:Updater.GetTopLevelTargetsreturns an empty map before refresh instead of panicking (#832);MultiRepoClient.Refreshrefreshes all repositories in deterministic order and joins errors (#800);MultiRepoClientvalidatesmap.jsonup front and exposesErrMissingRepoURL,ErrUnknownMappingRepo, andErrMissingTrustedRoot(#750, #760);DefaultFetcher.SetTransportandNewFetcherWithRoundTripperno longer mutatehttp.DefaultClient(#802); deterministic target hash-prefix selection (#772);TargetsType.AddKeyrejects unconfigured delegated roles (#788); external signer and PEM key documentation and examples (#825).What's Changed
ed25519public keys with invalid length by @kanywst in #739path_hash_prefixesdelegations by @cyphar in #783New Contributors
Full Changelog: theupdateframework/go-tuf@v2.4.2...v2.5.0
Configuration
📅 Schedule: (UTC)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.