Skip to content

Commit 89004dd

Browse files
authored
[Security] Replace 'github.com/dgrijalva/jwt-go' with 'github.com/golang-jwt/jwt' (#766)
1 parent 432ee27 commit 89004dd

File tree

5 files changed

+6
-3
lines changed

5 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## [master](https://github.com/arangodb/kube-arangodb/tree/master) (N/A)
44
- Fix ArangoMember race with multiple ArangoDeployments within single namespace
55
- Allow to define Member Recreation Policy within group
6+
- Replace 'github.com/dgrijalva/jwt-go' with 'github.com/golang-jwt/jwt'
67
- Update 'github.com/gin-gonic/gin' dependency to v1.7.2
78

89
## [1.2.0](https://github.com/arangodb/kube-arangodb/tree/1.2.0) (2021-07-16)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ require (
3131
github.com/cenkalti/backoff v2.1.1+incompatible
3232
github.com/coreos/go-semver v0.3.0
3333
github.com/dchest/uniuri v0.0.0-20160212164326-8902c56451e9
34-
github.com/dgrijalva/jwt-go v3.2.0+incompatible
3534
github.com/evanphx/json-patch v4.9.0+incompatible
3635
github.com/ghodss/yaml v1.0.0
3736
github.com/gin-gonic/gin v1.7.2
3837
github.com/github-release/github-release v0.10.0 // indirect
38+
github.com/golang-jwt/jwt v3.2.1+incompatible
3939
github.com/go-playground/validator/v10 v10.8.0 // indirect
4040
github.com/golang/protobuf v1.5.2 // indirect
4141
github.com/google/addlicense v0.0.0-20210428195630-6d92264d7170 // indirect

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zV
213213
github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o=
214214
github.com/gogo/protobuf v1.3.1 h1:DqDEcV5aeaTmdFBePNpYsp3FlcVH/2ISVVM9Qf8PSls=
215215
github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o=
216+
github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c=
217+
github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I=
216218
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58=
217219
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
218220
github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903 h1:LbsanbbD6LieFkXbj9YNNBupiGHJgFeLpO0j0Fza1h8=

pkg/deployment/resources/secrets.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ import (
5454
"github.com/arangodb/kube-arangodb/pkg/metrics"
5555
"github.com/arangodb/kube-arangodb/pkg/util/constants"
5656
"github.com/arangodb/kube-arangodb/pkg/util/k8sutil"
57-
jg "github.com/dgrijalva/jwt-go"
57+
jg "github.com/golang-jwt/jwt"
5858
"k8s.io/apimachinery/pkg/api/equality"
5959
)
6060

pkg/util/k8sutil/secrets.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import (
3232
"k8s.io/apimachinery/pkg/types"
3333

3434
"github.com/arangodb/kube-arangodb/pkg/util/constants"
35-
jg "github.com/dgrijalva/jwt-go"
35+
jg "github.com/golang-jwt/jwt"
3636
)
3737

3838
// SecretInterface has methods to work with Secret resources.

0 commit comments

Comments
 (0)