This is an automated email from the ASF dual-hosted git repository. rxl pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/pulsar-client-go.git
The following commit(s) were added to refs/heads/master by this push: new 25e5957 [issue 675] oauth2 use golang-jwt address CVE-2020-26160 (#713) 25e5957 is described below commit 25e59572242edd2c4aac2a836773b6f124efb7fa Author: ming <itestmyc...@gmail.com> AuthorDate: Thu Jan 20 04:07:17 2022 -0500 [issue 675] oauth2 use golang-jwt address CVE-2020-26160 (#713) * oauth2 use golang-jwt address CVE-2020-26160 * set go 1.15 minimum version as required by golang-jwt --- .github/workflows/go.yml | 2 +- .github/workflows/project.yml | 2 +- README.md | 2 +- docker-ci.sh | 2 +- go.mod | 2 +- go.sum | 4 ++-- oauth2/auth.go | 2 +- oauth2/go.mod | 4 ++-- oauth2/go.sum | 4 ++-- 9 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index bc64a50..a3c4c60 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go-version: [1.13, 1.14, 1.15, 1.16, 1.17] + go-version: [1.15, 1.16, 1.17] steps: - name: clean docker cache run: | diff --git a/.github/workflows/project.yml b/.github/workflows/project.yml index 15ecb98..810979a 100644 --- a/.github/workflows/project.yml +++ b/.github/workflows/project.yml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go-version: [1.13, 1.14, 1.15, 1.16, 1.17] + go-version: [1.15, 1.16, 1.17] steps: - name: Set up Go uses: actions/setup-go@v1 diff --git a/README.md b/README.md index 73bd982..89c17f2 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ CGo based library. ## Requirements -- Go 1.13+ +- Go 1.15+ ## Status diff --git a/docker-ci.sh b/docker-ci.sh index 200cc50..37f97e7 100755 --- a/docker-ci.sh +++ b/docker-ci.sh @@ -25,7 +25,7 @@ cd ${SRC_DIR} IMAGE_NAME=pulsar-client-go-test:latest -GO_VERSION=${1:-1.13} +GO_VERSION=${1:-1.16} docker rmi --force ${IMAGE_NAME} || true docker rmi --force apachepulsar/pulsar:latest || true docker build -t ${IMAGE_NAME} --build-arg GO_VERSION="golang:${GO_VERSION}" . diff --git a/go.mod b/go.mod index 29407fa..eacc490 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/apache/pulsar-client-go -go 1.13 +go 1.15 require ( github.com/AthenZ/athenz v1.10.39 diff --git a/go.sum b/go.sum index ee4a2b3..b2fdce1 100644 --- a/go.sum +++ b/go.sum @@ -98,8 +98,6 @@ github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.m github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= -github.com/form3tech-oss/jwt-go v3.2.3+incompatible h1:7ZaBxOI7TMoYBfyA3cQHErNNyAWIKUMIwqxEtgHOs5c= -github.com/form3tech-oss/jwt-go v3.2.3+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= @@ -122,6 +120,8 @@ github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7a github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= +github.com/golang-jwt/jwt v3.2.2+incompatible h1:IfV12K8xAKAnZqdXVzCZ+TOjboZ2keLg81eXfW3O+oY= +github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= diff --git a/oauth2/auth.go b/oauth2/auth.go index 0a3c73a..d44bd35 100644 --- a/oauth2/auth.go +++ b/oauth2/auth.go @@ -22,7 +22,7 @@ import ( "time" "github.com/apache/pulsar-client-go/oauth2/clock" - "github.com/form3tech-oss/jwt-go" + "github.com/golang-jwt/jwt" "golang.org/x/oauth2" ) diff --git a/oauth2/go.mod b/oauth2/go.mod index 091477d..72a52e5 100644 --- a/oauth2/go.mod +++ b/oauth2/go.mod @@ -1,10 +1,10 @@ module github.com/apache/pulsar-client-go/oauth2 -go 1.13 +go 1.15 require ( github.com/99designs/keyring v1.1.6 - github.com/form3tech-oss/jwt-go v3.2.3+incompatible + github.com/golang-jwt/jwt v3.2.2+incompatible github.com/onsi/ginkgo v1.14.0 github.com/onsi/gomega v1.10.1 github.com/pkg/errors v0.9.1 diff --git a/oauth2/go.sum b/oauth2/go.sum index dad3d35..41f6868 100644 --- a/oauth2/go.sum +++ b/oauth2/go.sum @@ -8,13 +8,13 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/dvsekhvalnov/jose2go v0.0.0-20200901110807-248326c1351b h1:HBah4D48ypg3J7Np4N+HY/ZR76fx3HEUGxDU6Uk39oQ= github.com/dvsekhvalnov/jose2go v0.0.0-20200901110807-248326c1351b/go.mod h1:7BvyPhdbLxMXIYTFPLsyJRFMsKmOZnQmzh6Gb+uquuM= -github.com/form3tech-oss/jwt-go v3.2.3+incompatible h1:7ZaBxOI7TMoYBfyA3cQHErNNyAWIKUMIwqxEtgHOs5c= -github.com/form3tech-oss/jwt-go v3.2.3+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= +github.com/golang-jwt/jwt v3.2.2+incompatible h1:IfV12K8xAKAnZqdXVzCZ+TOjboZ2keLg81eXfW3O+oY= +github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=