-
Notifications
You must be signed in to change notification settings - Fork 407
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
Switch to maintained go-jose library #447
Conversation
thanks @liggitt |
cc @ericchiang |
Thanks! let me fix up the CI first, then will merge For the breaking changes
I'm aware of stricter parsing of base64 encodings (#422 (comment)), but is there anything else you're seeing? |
@ericchiang thanks for the quick response! we saw this as well - payload changes needed in unit tests - kubernetes/kubernetes#123649 (comment) |
Thanks, will take a look when I get a change. If you rebase over #448 you should be good to go, and I can tag a release |
go.mod
Outdated
@@ -0,0 +1,12 @@ | |||
module github.com/coreos/go-oidc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all the go.mod and vendor bits are in TMP commits I would drop before we merge this, I just included those so we could actually see the effective change in the dependency code the square → go-jose change would make
if you're done looking at the vendor change, I'll drop those commits out completely
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree we don't want to add go.mod to the v2 branch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done, dropping TMP commits
For my own reference, the changes to the kubernetes tests are based on their usage of go-jose's JWT library to generate tokens. go-oidc doesn't support creation of ID Tokens, and handles these encoding differences fine, so there shouldn't be any observable changes to other go-oidc users. |
thanks @ericchiang ! |
thanks so much, appreciate it |
This allows consumers of the v2 stream to pick up the fix for https://pkg.go.dev/vuln/GO-2024-2631
Switching to v3 changes token generation (due to changes in go-jose) in ways that make it difficult to update without visible behavior changes. Without this, Kubernetes may have to fork the v2 branch of this dependency to update to go-jose. cc @dims for visibility (xref kubernetes/kubernetes#129732 (comment))
The TMP commits would be dropped and are only there to demonstrate the effective diff in the dependency.
After review, the TMP commits would be dropped and this could be merged and tagged as v2.3.0, etc
Switch to maintained gopkg.in/go-jose/go-jose.v2 library
commit is the only change intended to be merged (only switches import paths for the go-jose library)TMP: revendor to show effective dependency diff
commit shows the actual dependency change