Replace vulnerable dependency gopkg.in/square/go-jose.v2 (#6290)

Signed-off-by: hongming <coder.scala@gmail.com>
This commit is contained in:
hongming
2024-11-26 11:13:36 +08:00
committed by GitHub
parent 9c962d3cbf
commit fa7c1340e3
41 changed files with 8 additions and 9255 deletions

View File

@@ -22,11 +22,11 @@ import (
"kubesphere.io/kubesphere/pkg/server/options"
"github.com/go-jose/go-jose/v4"
"github.com/golang-jwt/jwt/v4"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gexec"
"gopkg.in/square/go-jose.v2"
"kubesphere.io/kubesphere/pkg/apiserver/authentication/identityprovider"
)

View File

@@ -17,8 +17,8 @@ import (
"os"
"time"
"github.com/go-jose/go-jose/v4"
"github.com/golang-jwt/jwt/v4"
"gopkg.in/square/go-jose.v2"
"k8s.io/apiserver/pkg/authentication/user"
"k8s.io/klog/v2"

View File

@@ -11,9 +11,9 @@ import (
"testing"
"time"
"github.com/go-jose/go-jose/v4"
"github.com/golang-jwt/jwt/v4"
"github.com/stretchr/testify/assert"
"gopkg.in/square/go-jose.v2"
"k8s.io/apiserver/pkg/authentication/user"
"kubesphere.io/kubesphere/pkg/apiserver/authentication/oauth"

View File

@@ -14,8 +14,8 @@ import (
"time"
"github.com/emicklei/go-restful/v3"
"github.com/go-jose/go-jose/v4"
"github.com/golang-jwt/jwt/v4"
"gopkg.in/square/go-jose.v2"
apierrors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apiserver/pkg/authentication/user"

View File

@@ -10,7 +10,7 @@ import (
restfulspec "github.com/emicklei/go-restful-openapi/v2"
"github.com/emicklei/go-restful/v3"
"gopkg.in/square/go-jose.v2"
"github.com/go-jose/go-jose/v4"
"kubesphere.io/kubesphere/pkg/api"
"kubesphere.io/kubesphere/pkg/apiserver/authentication/oauth"