Skip to content

Commit

Permalink
chore(deps): Migrate to github.com/go-jose/go-jose/v3
Browse files Browse the repository at this point in the history
Stop using archived gopkg.in/square/go-jose.v2 pkg
Switch to github.com/go-jose/go-jose/v3 instead

Fixes CVE-2024-28180
  • Loading branch information
isibeni authored and tekton-robot committed Apr 8, 2024
1 parent 2e41633 commit c19b6e6
Show file tree
Hide file tree
Showing 41 changed files with 22 additions and 9,799 deletions.
3 changes: 1 addition & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ require (
golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc
golang.org/x/oauth2 v0.18.0 // indirect
gomodules.xyz/jsonpatch/v2 v2.4.0
gopkg.in/square/go-jose.v2 v2.6.0
k8s.io/api v0.28.5
k8s.io/apimachinery v0.29.0
k8s.io/client-go v0.28.5
Expand All @@ -48,6 +47,7 @@ replace (

require (
code.gitea.io/sdk/gitea v0.17.1
github.com/go-jose/go-jose/v3 v3.0.3
github.com/goccy/kpoward v0.1.0
github.com/google/cel-go v0.20.1
github.com/google/go-containerregistry/pkg/authn/k8schain v0.0.0-20240108195214-a0658aa1d0cc
Expand Down Expand Up @@ -100,7 +100,6 @@ require (
github.com/emicklei/go-restful/v3 v3.10.2 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/go-fed/httpsig v1.1.0 // indirect
github.com/go-jose/go-jose/v3 v3.0.3 // indirect
github.com/go-jose/go-jose/v4 v4.0.1 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/golang-jwt/jwt/v5 v5.2.0 // indirect
Expand Down
2 changes: 0 additions & 2 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions pkg/spire/test/ca.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ import (
"testing"
"time"

"github.com/go-jose/go-jose/v3"
"github.com/go-jose/go-jose/v3/cryptosigner"
"github.com/go-jose/go-jose/v3/jwt"
"github.com/spiffe/go-spiffe/v2/bundle/jwtbundle"
"github.com/spiffe/go-spiffe/v2/bundle/spiffebundle"
"github.com/spiffe/go-spiffe/v2/bundle/x509bundle"
Expand All @@ -37,9 +40,6 @@ import (
"github.com/spiffe/go-spiffe/v2/svid/x509svid"
"github.com/stretchr/testify/require"
"github.com/tektoncd/pipeline/pkg/spire/test/x509util"
"gopkg.in/square/go-jose.v2"
"gopkg.in/square/go-jose.v2/cryptosigner"
"gopkg.in/square/go-jose.v2/jwt"
)

var (
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion vendor/gopkg.in/square/go-jose.v2/.gitcookies.sh.enc

This file was deleted.

8 changes: 0 additions & 8 deletions vendor/gopkg.in/square/go-jose.v2/.gitignore

This file was deleted.

45 changes: 0 additions & 45 deletions vendor/gopkg.in/square/go-jose.v2/.travis.yml

This file was deleted.

10 changes: 0 additions & 10 deletions vendor/gopkg.in/square/go-jose.v2/BUG-BOUNTY.md

This file was deleted.

14 changes: 0 additions & 14 deletions vendor/gopkg.in/square/go-jose.v2/CONTRIBUTING.md

This file was deleted.

Loading

0 comments on commit c19b6e6

Please sign in to comment.