Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/nginx-ingress/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"github.com/aws/aws-sdk-go-v2/service/marketplacemetering"
"github.com/aws/aws-sdk-go-v2/service/marketplacemetering/types"

"github.com/golang-jwt/jwt/v4"
"github.com/golang-jwt/jwt/v5"
)

var (
Expand Down Expand Up @@ -97,16 +97,16 @@

func (c claims) Valid() error {
if c.Nonce == "" {
return jwt.NewValidationError("token doesn't include the Nonce", jwt.ValidationErrorClaimsInvalid)

Check failure on line 100 in cmd/nginx-ingress/aws.go

View workflow job for this annotation

GitHub Actions / Unit Tests

undefined: jwt.ValidationErrorClaimsInvalid

Check failure on line 100 in cmd/nginx-ingress/aws.go

View workflow job for this annotation

GitHub Actions / Unit Tests

undefined: jwt.NewValidationError
}
if c.ProductCode == "" {
return jwt.NewValidationError("token doesn't include the ProductCode", jwt.ValidationErrorClaimsInvalid)

Check failure on line 103 in cmd/nginx-ingress/aws.go

View workflow job for this annotation

GitHub Actions / Unit Tests

undefined: jwt.ValidationErrorClaimsInvalid

Check failure on line 103 in cmd/nginx-ingress/aws.go

View workflow job for this annotation

GitHub Actions / Unit Tests

undefined: jwt.NewValidationError
}
if c.PublicKeyVersion == 0 {
return jwt.NewValidationError("token doesn't include the PublicKeyVersion", jwt.ValidationErrorClaimsInvalid)

Check failure on line 106 in cmd/nginx-ingress/aws.go

View workflow job for this annotation

GitHub Actions / Unit Tests

undefined: jwt.ValidationErrorClaimsInvalid

Check failure on line 106 in cmd/nginx-ingress/aws.go

View workflow job for this annotation

GitHub Actions / Unit Tests

undefined: jwt.NewValidationError
}

if err := c.RegisteredClaims.Valid(); err != nil {

Check failure on line 109 in cmd/nginx-ingress/aws.go

View workflow job for this annotation

GitHub Actions / Unit Tests

c.RegisteredClaims.Valid undefined (type "github.com/golang-jwt/jwt/v5".RegisteredClaims has no field or method Valid)
return err
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/nginx-ingress/aws_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"
"time"

"github.com/golang-jwt/jwt/v4"
"github.com/golang-jwt/jwt/v5"
)

func TestValidClaims(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/cert-manager/cert-manager v1.18.2
github.com/dlclark/regexp2 v1.11.5
github.com/gkampitakis/go-snaps v0.5.15
github.com/golang-jwt/jwt/v4 v4.5.2
github.com/golang-jwt/jwt/v5 v5.3.0
github.com/google/go-cmp v0.7.0
github.com/gruntwork-io/terratest v0.50.0
github.com/jinzhu/copier v0.4.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ 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/v4 v4.5.2 h1:YtQM7lnr8iZ+j5q71MGKkNw9Mn7AjHM68uc9g5fXeUI=
github.com/golang-jwt/jwt/v4 v4.5.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0=
github.com/golang-jwt/jwt/v5 v5.3.0 h1:pv4AsKCKKZuqlgs5sUmn4x8UlGa0kEVt/puTpKx9vvo=
github.com/golang-jwt/jwt/v5 v5.3.0/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE=
github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=
github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps=
github.com/gonvenience/bunt v1.3.5 h1:wSQquifvwEWtzn27k1ngLfeLaStyt0k1b/K6TrlCNAs=
Expand Down
Loading