diff --git a/go.mod b/go.mod index 083166ff..40e5fbc3 100644 --- a/go.mod +++ b/go.mod @@ -18,7 +18,7 @@ require ( github.com/cncf/xds/go v0.0.0-20260202195803-dba9d589def2 github.com/containernetworking/cni v1.3.0 github.com/containernetworking/plugins v1.9.1 - github.com/coreos/go-oidc/v3 v3.20.0 + github.com/coreos/go-oidc/v3 v3.21.0 github.com/envoyproxy/go-control-plane v0.14.0 github.com/envoyproxy/go-control-plane/envoy v1.39.0 github.com/exaring/otelpgx v0.11.1 diff --git a/go.sum b/go.sum index 799614f5..c2fb1c6b 100644 --- a/go.sum +++ b/go.sum @@ -122,6 +122,8 @@ github.com/coreos/go-iptables v0.8.0 h1:MPc2P89IhuVpLI7ETL/2tx3XZ61VeICZjYqDEgNs github.com/coreos/go-iptables v0.8.0/go.mod h1:Qe8Bv2Xik5FyTXwgIbLAnv2sWSBmvWdFETJConOQ//Q= github.com/coreos/go-oidc/v3 v3.20.0 h1:EtE0WIBHk03N+DqGkY4+UONzzZHk7amKt6IyNd7OsZE= github.com/coreos/go-oidc/v3 v3.20.0/go.mod h1:DYCf24+ncYi+XkIH97GY1+dqoRlbaSI26KVTCI9SrY4= +github.com/coreos/go-oidc/v3 v3.21.0 h1:wZo4Q9Pum8dYEj0eMUPrqR+kvuGkeUplbLpNCkBqoWM= +github.com/coreos/go-oidc/v3 v3.21.0/go.mod h1:DYCf24+ncYi+XkIH97GY1+dqoRlbaSI26KVTCI9SrY4= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/dockercfg v0.3.2 h1:DlJTyZGBDlXqUZ2Dk2Q3xHs/FtnooJJVaad2S9GKorA= github.com/cpuguy83/dockercfg v0.3.2/go.mod h1:sugsbF4//dDlL/i+S+rtpIWp+5h0BHJHfjj5/jFyUJc= diff --git a/vendor/github.com/coreos/go-oidc/v3/oidc/jwks.go b/vendor/github.com/coreos/go-oidc/v3/oidc/jwks.go index eab30aab..b90e67aa 100644 --- a/vendor/github.com/coreos/go-oidc/v3/oidc/jwks.go +++ b/vendor/github.com/coreos/go-oidc/v3/oidc/jwks.go @@ -278,6 +278,20 @@ func (j *jwkJSON) UnmarshalJSON(data []byte) error { } var jwk jose.JSONWebKey if err := json.Unmarshal(key, &jwk); err != nil { + // Ignore keys with types that go-jose doesn't support, such as + // OKP keys with Ed448 or X448 curves. Some providers include + // them in their key sets without an "alg" value, so the check + // above doesn't catch them. + // + // https://datatracker.ietf.org/doc/html/rfc7517#section-5 + // + // Implementations SHOULD ignore JWKs within a JWK Set that use + // "kty" (key type) values that are not understood by them, that + // are missing required members, or for which values are out of + // the supported ranges. + if errors.Is(err, jose.ErrUnsupportedKeyType) { + continue + } return err } j.Keys = append(j.Keys, jwk) diff --git a/vendor/modules.txt b/vendor/modules.txt index fc5bed81..1eba2330 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -260,7 +260,7 @@ github.com/containernetworking/plugins/pkg/utils/sysctl # github.com/coreos/go-iptables v0.8.0 ## explicit; go 1.16 github.com/coreos/go-iptables/iptables -# github.com/coreos/go-oidc/v3 v3.20.0 +# github.com/coreos/go-oidc/v3 v3.21.0 ## explicit; go 1.25.0 github.com/coreos/go-oidc/v3/oidc # github.com/cpuguy83/dockercfg v0.3.2