diff --git a/go.mod b/go.mod index f189a2b8ca..8d2a22b552 100644 --- a/go.mod +++ b/go.mod @@ -32,7 +32,7 @@ require ( github.com/tektoncd/pipeline v1.12.3 github.com/tektoncd/plumbing v0.0.0-20250430145243-3b7cd59879c1 github.com/tektoncd/triggers v0.35.1-0.20260401091813-1aad8a1898ec - github.com/theupdateframework/go-tuf v0.7.0 + github.com/theupdateframework/go-tuf v0.7.1 github.com/titanous/rocacheck v0.0.0-20171023193734-afe73141d399 go.opentelemetry.io/otel v1.44.0 go.uber.org/multierr v1.11.0 diff --git a/go.sum b/go.sum index 413f54449e..867cfc270d 100644 --- a/go.sum +++ b/go.sum @@ -603,8 +603,8 @@ github.com/tektoncd/triggers v0.35.1-0.20260401091813-1aad8a1898ec h1:Aipi80gVmf github.com/tektoncd/triggers v0.35.1-0.20260401091813-1aad8a1898ec/go.mod h1:ivDXe8xmMbVB4F0+MiUW0avU2o/me1mRsGh4shPKaUU= github.com/thales-e-security/pool v0.0.2 h1:RAPs4q2EbWsTit6tpzuvTFlgFRJ3S8Evf5gtvVDbmPg= github.com/thales-e-security/pool v0.0.2/go.mod h1:qtpMm2+thHtqhLzTwgDBj/OuNnMpupY8mv0Phz0gjhU= -github.com/theupdateframework/go-tuf v0.7.0 h1:CqbQFrWo1ae3/I0UCblSbczevCCbS31Qvs5LdxRWqRI= -github.com/theupdateframework/go-tuf v0.7.0/go.mod h1:uEB7WSY+7ZIugK6R1hiBMBjQftaFzn7ZCDJcp1tCUug= +github.com/theupdateframework/go-tuf v0.7.1 h1:Aog4aeC0kMpZno/N16uSGP0yrJHB4ZH1uGuiICj7fQU= +github.com/theupdateframework/go-tuf v0.7.1/go.mod h1:qp61mIYjcpISwN32wWs+mxc5F3TrtVMzFe/yap5grY8= github.com/theupdateframework/go-tuf/v2 v2.4.2-0.20260407074541-7e8f69f906ef h1:jJac5InhEfD0Z46/d5RayZjoavf/se7bPZpOgg8GLrM= github.com/theupdateframework/go-tuf/v2 v2.4.2-0.20260407074541-7e8f69f906ef/go.mod h1:cLUSJ2cgR194lNWfp+TJT4P8PX7qGleCXdudqlCMtOE= github.com/tidwall/gjson v1.14.2 h1:6BBkirS0rAHjumnjHF6qgy5d2YAJ1TLIaFE2lzfOLqo= diff --git a/vendor/github.com/theupdateframework/go-tuf/.golangci.yml b/vendor/github.com/theupdateframework/go-tuf/.golangci.yml index 992c1190a5..9973db5fc9 100644 --- a/vendor/github.com/theupdateframework/go-tuf/.golangci.yml +++ b/vendor/github.com/theupdateframework/go-tuf/.golangci.yml @@ -8,3 +8,10 @@ linters: - unused - typecheck - forbidigo +issues: + exclude-rules: + # Every package in this legacy module is deprecated in favour of + # go-tuf/v2, so don't report the module's packages importing each other. + - linters: + - staticcheck + text: '^SA1019: "github\.com/theupdateframework/go-tuf[/"]' diff --git a/vendor/github.com/theupdateframework/go-tuf/README.md b/vendor/github.com/theupdateframework/go-tuf/README.md index 7af9abb70c..62cbaafcff 100644 --- a/vendor/github.com/theupdateframework/go-tuf/README.md +++ b/vendor/github.com/theupdateframework/go-tuf/README.md @@ -1,10 +1,22 @@ # go-tuf -[![build](https://github.com/theupdateframework/go-tuf/workflows/build/badge.svg)](https://github.com/theupdateframework/go-tuf/actions?query=workflow%3Abuild) [![Coverage Status](https://coveralls.io/repos/github/theupdateframework/go-tuf/badge.svg)](https://coveralls.io/github/theupdateframework/go-tuf) [![PkgGoDev](https://pkg.go.dev/badge/github.com/theupdateframework/go-tuf)](https://pkg.go.dev/github.com/theupdateframework/go-tuf) [![Go Report Card](https://goreportcard.com/badge/github.com/theupdateframework/go-tuf)](https://goreportcard.com/report/github.com/theupdateframework/go-tuf) +![ci](https://github.com/theupdateframework/go-tuf/actions/workflows/ci.yml/badge.svg) [![Coverage Status](https://coveralls.io/repos/github/theupdateframework/go-tuf/badge.svg)](https://coveralls.io/github/theupdateframework/go-tuf) [![PkgGoDev](https://pkg.go.dev/badge/github.com/theupdateframework/go-tuf)](https://pkg.go.dev/github.com/theupdateframework/go-tuf) [![Go Report Card](https://goreportcard.com/badge/github.com/theupdateframework/go-tuf)](https://goreportcard.com/report/github.com/theupdateframework/go-tuf) This is a Go implementation of [The Update Framework (TUF)](http://theupdateframework.com/), a framework for securing software update systems. +## Deprecation notice + +**The legacy go-tuf module (`github.com/theupdateframework/go-tuf`) is deprecated in favour of [go-tuf/v2](https://github.com/theupdateframework/go-tuf) (`github.com/theupdateframework/go-tuf/v2`).** New projects should use go-tuf/v2, and existing users are encouraged to migrate to it. + +## API instability + +**Note**: go-tuf's API is in flux and backwards compatibility with version 0.7.0 and earlier will _**not**_ be maintained. + +We recommend production users of go-tuf pin their dependency so that changes in main do not cause disruptions. + +For more details on the changes, and the rationale for making them, see [issue #485](https://github.com/theupdateframework/go-tuf/issues/485) and the v0.7.0 [release notes](https://github.com/theupdateframework/go-tuf/releases/tag/v0.7.0) + ## Directory layout A TUF repository has the following directory layout: diff --git a/vendor/github.com/theupdateframework/go-tuf/client/client.go b/vendor/github.com/theupdateframework/go-tuf/client/client.go index 8e99176b1d..1fc0ab931f 100644 --- a/vendor/github.com/theupdateframework/go-tuf/client/client.go +++ b/vendor/github.com/theupdateframework/go-tuf/client/client.go @@ -1,3 +1,9 @@ +// Package client implements a TUF client that updates trusted metadata +// from a remote repository and downloads verified target files. +// +// Deprecated: The legacy go-tuf module is deprecated in favour of +// github.com/theupdateframework/go-tuf/v2. Use +// github.com/theupdateframework/go-tuf/v2/metadata/updater instead. package client import ( diff --git a/vendor/github.com/theupdateframework/go-tuf/client/leveldbstore/leveldbstore.go b/vendor/github.com/theupdateframework/go-tuf/client/leveldbstore/leveldbstore.go index d9390494bd..e880a4eeab 100644 --- a/vendor/github.com/theupdateframework/go-tuf/client/leveldbstore/leveldbstore.go +++ b/vendor/github.com/theupdateframework/go-tuf/client/leveldbstore/leveldbstore.go @@ -1,3 +1,8 @@ +// Package client provides a client.LocalStore that stores TUF metadata +// in a LevelDB database. +// +// Deprecated: The legacy go-tuf module is deprecated in favour of +// github.com/theupdateframework/go-tuf/v2. package client import ( diff --git a/vendor/github.com/theupdateframework/go-tuf/data/types.go b/vendor/github.com/theupdateframework/go-tuf/data/types.go index eb00489b67..ca5334e2d4 100644 --- a/vendor/github.com/theupdateframework/go-tuf/data/types.go +++ b/vendor/github.com/theupdateframework/go-tuf/data/types.go @@ -1,3 +1,8 @@ +// Package data defines the types used to represent TUF metadata. +// +// Deprecated: The legacy go-tuf module is deprecated in favour of +// github.com/theupdateframework/go-tuf/v2. Use +// github.com/theupdateframework/go-tuf/v2/metadata instead. package data import ( diff --git a/vendor/github.com/theupdateframework/go-tuf/pkg/keys/keys.go b/vendor/github.com/theupdateframework/go-tuf/pkg/keys/keys.go index dc5f3ea2c3..3e9aa54a7b 100644 --- a/vendor/github.com/theupdateframework/go-tuf/pkg/keys/keys.go +++ b/vendor/github.com/theupdateframework/go-tuf/pkg/keys/keys.go @@ -1,3 +1,8 @@ +// Package keys implements signers and verifiers for the key types +// supported by go-tuf. +// +// Deprecated: The legacy go-tuf module is deprecated in favour of +// github.com/theupdateframework/go-tuf/v2. package keys import ( diff --git a/vendor/github.com/theupdateframework/go-tuf/pkg/targets/delegation.go b/vendor/github.com/theupdateframework/go-tuf/pkg/targets/delegation.go index dce61710b8..286ca58622 100644 --- a/vendor/github.com/theupdateframework/go-tuf/pkg/targets/delegation.go +++ b/vendor/github.com/theupdateframework/go-tuf/pkg/targets/delegation.go @@ -1,3 +1,8 @@ +// Package targets implements the traversal of targets delegations and +// the generation of hashed bin delegations. +// +// Deprecated: The legacy go-tuf module is deprecated in favour of +// github.com/theupdateframework/go-tuf/v2. package targets import ( diff --git a/vendor/github.com/theupdateframework/go-tuf/repo.go b/vendor/github.com/theupdateframework/go-tuf/repo.go index e9382ddb3e..bb29b3cce7 100644 --- a/vendor/github.com/theupdateframework/go-tuf/repo.go +++ b/vendor/github.com/theupdateframework/go-tuf/repo.go @@ -1,3 +1,9 @@ +// Package tuf implements the management of a TUF repository: generating +// and revoking keys, adding targets and delegations, and signing and +// committing metadata. +// +// Deprecated: The legacy go-tuf module is deprecated in favour of +// github.com/theupdateframework/go-tuf/v2. package tuf import ( diff --git a/vendor/github.com/theupdateframework/go-tuf/requirements-test.txt b/vendor/github.com/theupdateframework/go-tuf/requirements-test.txt index c4ce782360..964791d12d 100644 --- a/vendor/github.com/theupdateframework/go-tuf/requirements-test.txt +++ b/vendor/github.com/theupdateframework/go-tuf/requirements-test.txt @@ -1,5 +1,5 @@ iso8601==2.1.0 requests==2.31.0 -securesystemslib==0.30.0 +securesystemslib==0.31.0 six==1.16.0 tuf==3.1.0 diff --git a/vendor/github.com/theupdateframework/go-tuf/sign/sign.go b/vendor/github.com/theupdateframework/go-tuf/sign/sign.go index aa6d958c29..1af72807bb 100644 --- a/vendor/github.com/theupdateframework/go-tuf/sign/sign.go +++ b/vendor/github.com/theupdateframework/go-tuf/sign/sign.go @@ -1,3 +1,7 @@ +// Package sign provides functions to sign TUF metadata. +// +// Deprecated: The legacy go-tuf module is deprecated in favour of +// github.com/theupdateframework/go-tuf/v2. package sign import ( diff --git a/vendor/github.com/theupdateframework/go-tuf/util/util.go b/vendor/github.com/theupdateframework/go-tuf/util/util.go index 049169db1a..6406d111b6 100644 --- a/vendor/github.com/theupdateframework/go-tuf/util/util.go +++ b/vendor/github.com/theupdateframework/go-tuf/util/util.go @@ -1,3 +1,8 @@ +// Package util provides helpers shared by the go-tuf packages, such as +// hashing, length and version checks for metadata and target files. +// +// Deprecated: The legacy go-tuf module is deprecated in favour of +// github.com/theupdateframework/go-tuf/v2. package util import ( diff --git a/vendor/github.com/theupdateframework/go-tuf/verify/verify.go b/vendor/github.com/theupdateframework/go-tuf/verify/verify.go index e62042ee16..9d5539e9ff 100644 --- a/vendor/github.com/theupdateframework/go-tuf/verify/verify.go +++ b/vendor/github.com/theupdateframework/go-tuf/verify/verify.go @@ -1,3 +1,8 @@ +// Package verify implements the verification of signatures, thresholds, +// versions and expiration of TUF metadata. +// +// Deprecated: The legacy go-tuf module is deprecated in favour of +// github.com/theupdateframework/go-tuf/v2. package verify import ( diff --git a/vendor/modules.txt b/vendor/modules.txt index 06b6948ff7..639a1dc24a 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -933,7 +933,7 @@ github.com/tektoncd/triggers/test # github.com/thales-e-security/pool v0.0.2 ## explicit; go 1.12 github.com/thales-e-security/pool -# github.com/theupdateframework/go-tuf v0.7.0 +# github.com/theupdateframework/go-tuf v0.7.1 ## explicit; go 1.20 github.com/theupdateframework/go-tuf github.com/theupdateframework/go-tuf/client