File tree 9 files changed +35
-7
lines changed
9 files changed +35
-7
lines changed Original file line number Diff line number Diff line change 3
3
This document describes the relevant changes between releases of the OCM API
4
4
SDK.
5
5
6
+ == 0.1.199 TBD
7
+
8
+ - Use `golang-jwt/jwt` instead of `dgrijalva/jwt-go`.
9
+ +
10
+ The `dgrijalva/jwt-go` library is no longer maintained and `golang-jwt/jwt` is
11
+ a community maintained fork. See https://github.com/dgrijalva/jwt-go/issues/462
12
+ for detailts.
13
+ +
14
+ Parts of the public interface of the SDK use this library, so this is a
15
+ backwards compatibility breaking change. Projects using the SDK will need to
16
+ switch to the new library, specially if they are using the
17
+ `context.ContextWithToken` or `context.TokenFromContext` functions. The change
18
+ should only require changing the import paths, as the fork is fully compatible
19
+ with the original library.
20
+ +
21
+ A simple way to do the required changes is the following command:
22
+ +
23
+ ....
24
+ $ find . -name '*.go' | xargs sed -i 's|dgrijalva/jwt-go|golang-jwt/jwt|'
25
+ ....
26
+ +
27
+ This also addresses
28
+ https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-26160[CVE-2020-26160],
29
+ but that vulnerability doesn't currently affect the SDK because the
30
+ authentication handler doesn't use the `aud` claim.
31
+
6
32
== 0.1.198 Aug 03 2021
7
33
8
34
- Update model to v0.0.139:
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import (
22
22
"context"
23
23
"fmt"
24
24
25
- "github.com/dgrijalva /jwt-go "
25
+ "github.com/golang-jwt /jwt"
26
26
)
27
27
28
28
// ContextWithToken creates a new context containing the given token.
Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ import (
35
35
"sync"
36
36
"time"
37
37
38
- "github.com/dgrijalva/jwt-go"
39
38
"github.com/ghodss/yaml"
39
+ "github.com/golang-jwt/jwt"
40
40
41
41
"github.com/openshift-online/ocm-sdk-go/errors"
42
42
"github.com/openshift-online/ocm-sdk-go/logging"
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import (
25
25
"os"
26
26
"time"
27
27
28
- "github.com/dgrijalva /jwt-go "
28
+ "github.com/golang-jwt /jwt"
29
29
30
30
. "github.com/onsi/ginkgo"
31
31
. "github.com/onsi/gomega" // nolint
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import (
22
22
"fmt"
23
23
"time"
24
24
25
- "github.com/dgrijalva /jwt-go "
25
+ "github.com/golang-jwt /jwt"
26
26
)
27
27
28
28
// tokenRemaining determines if the given token will eventually expire (offile access tokens, for
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ import (
35
35
36
36
//
37
37
"github.com/cenkalti/backoff/v4"
38
- jwt "github.com/dgrijalva /jwt-go "
38
+ jwt "github.com/golang-jwt /jwt"
39
39
"github.com/openshift-online/ocm-sdk-go/internal"
40
40
"github.com/openshift-online/ocm-sdk-go/logging"
41
41
"github.com/prometheus/client_golang/prometheus"
Original file line number Diff line number Diff line change 4
4
5
5
require (
6
6
github.com/cenkalti/backoff/v4 v4.0.0
7
- github.com/dgrijalva/jwt-go v3.2.0+incompatible
8
7
github.com/ghodss/yaml v1.0.0
8
+ github.com/golang-jwt/jwt v3.2.2+incompatible
9
9
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
10
10
github.com/google/uuid v1.2.0
11
11
github.com/jackc/pgconn v1.9.0
Original file line number Diff line number Diff line change @@ -101,6 +101,8 @@ github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7a
101
101
github.com/gogo/protobuf v1.2.1 /go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4 =
102
102
github.com/gogo/protobuf v1.3.1 h1:DqDEcV5aeaTmdFBePNpYsp3FlcVH/2ISVVM9Qf8PSls =
103
103
github.com/gogo/protobuf v1.3.1 /go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o =
104
+ github.com/golang-jwt/jwt v3.2.2+incompatible h1:IfV12K8xAKAnZqdXVzCZ+TOjboZ2keLg81eXfW3O+oY =
105
+ github.com/golang-jwt/jwt v3.2.2+incompatible /go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I =
104
106
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58 =
105
107
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b /go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q =
106
108
github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903 /go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc =
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import (
24
24
"net/http"
25
25
"time"
26
26
27
- "github.com/dgrijalva /jwt-go "
27
+ "github.com/golang-jwt /jwt"
28
28
29
29
. "github.com/onsi/gomega" // nolint
30
30
)
You can’t perform that action at this time.
0 commit comments