Switch to github.com/golang-jwt/jwt#1172
Conversation
|
Just saw discussion here. Remind me the breaking change? Just that the types are different? |
|
After taking a more thorough look at the implementation, I'm not sure that there is a breaking change, but I suspect there might be. Basically, those different types referenced in the public API are all interfaces and I assume the new package didn't break those overnight, so in theory the replaced types could be backwards compatible with the old library. In practice, though, some of the types used internally (eg. standard claims struct) are not interfaces, so those could break. A simple test to check if there is a breaking change would be (temporarily) changing back the packages in tests to the old module to see if it works with the new code. I'm not particularly worried about a breaking change (the library is basically abandoned after all), but if there is a breaking change, it should be released in a minor version, not a patch. Go 1.17 is just around the corner and Chris wants to cut a new release after that (hoping that we can further reduce the amount of dependency downloads). |
|
OK let's bench this until the next release. |
|
@peterbourgon Do you have any preliminary release date in mind? |
|
Any updates on this? |
sagikazarmark
left a comment
There was a problem hiding this comment.
Can you please upgrade the library to v4?
|
@sagikazarmark Done |
|
I recommend to upgrade to Go 1.17 pruned module graphs. https://golang.org/doc/go1.17#go-command It enables some optimizations, such as Lazy module loading. |
|
@shogo82148 If that would require setting the minimum version to 1.17 in go.mod, I would very strongly prefer that they not make that change, at least not yet. Go 1.17 was just released and we can't all immediately update our projects to require it. |
This is already in progress on another branch. Not sure which will be merged first yet. |
Imho this does not raise the minimum version. |
Could you say more about why you think it wouldn't? My reading of the linked documentation is that pruned module graphs are only a thing in |
|
pruned module graphs are just The When Go 2.0 comes out in the future, Go 2.0 will not be able to import modules that contain the |
Closes #1026
This PR switches to
github.com/golang-jwt/jwtto address security vulnerability. More details in the issue and GHSA-w73w-5m7g-f7qc