Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use community maintained golang-jwt #21934

Merged

Conversation

jdstrand
Copy link
Contributor

@jdstrand jdstrand commented Jul 23, 2021

Closes #21926

The dgrijalva/jwt-go project is no longer maintained[1] and they have
transferred ownership to golang-jwt/jwt[2][3][4]. We should move to the
supported golang-jwt/jwt.

The following was performed:

  1. update services/httpd/handler*.go to import golang-jwt/jwt
  2. revert testcase string comparison changes from 225bcec (back to v3)
  3. go mod edit -require github.com/golang-jwt/[email protected]+incompatible
  4. go mod edit -droprequire github.com/dgrijalva/jwt-go
  5. go mod tidy # see note
  6. go clean ./... && go build ./...
  7. go test ./...

Note: 'go mod tidy' had unrelated changes (perhaps it wasn't run in
recent commits) so I removed the unrelated delta to keep this PR focused
on the dgrijalva/jwt-go to golang-jwt/jwt changes.

References:
[1] dgrijalva/jwt-go#462
[2] dgrijalva/jwt-go#463
[3] https://github.com/dgrijalva/jwt-go/blob/master/README.md
[4] https://github.com/golang-jwt/jwt
[5] #21926

The dgrijalva/jwt-go project is no longer maintained[1] and they have
transferred ownership to golang-jwt/jwt[2][3][4]. We should move to the
supported golang-jwt/jwt.

The following was performed:

1. update services/httpd/handler*.go to import golang-jwt/jwt
2. revert testcase string comparison changes from 225bcec (back to v3)
2. go mod edit -require github.com/golang-jwt/[email protected]+incompatible
3. go mod edit -droprequire github.com/dgrijalva/jwt-go
4. go mod tidy  # see note
5. go clean ./... && go build ./...
6. go test ./...

Note: 'go mod tidy' had unrelated changes (perhaps it wasn't run in
recent commits) so I removed the unrelated delta to keep this PR focused
on the dgrijalva/jwt-go to golang-jwt/jwt changes.

References:
[1] dgrijalva/jwt-go#462
[2] dgrijalva/jwt-go#463
[3] https://github.com/dgrijalva/jwt-go/blob/master/README.md
[4] https://github.com/golang-jwt/jwt
[5] influxdata#21926
@jdstrand jdstrand force-pushed the jdstrand/update-jwt-go-master1.x branch from 2241ee3 to b5e9edb Compare July 23, 2021 13:25
@jdstrand jdstrand requested a review from davidby-influx July 23, 2021 13:25
Copy link
Contributor

@davidby-influx davidby-influx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@davidby-influx davidby-influx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks!

@davidby-influx davidby-influx linked an issue Jul 23, 2021 that may be closed by this pull request
@jdstrand jdstrand merged commit dec56f9 into influxdata:master-1.x Jul 23, 2021
@jdstrand
Copy link
Contributor Author

Thanks for the review!

@jdstrand jdstrand deleted the jdstrand/update-jwt-go-master1.x branch July 26, 2021 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

move to upstream-maintained golang-jwt v3 [port to master-1.x]
2 participants