You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2021/11/25 05:47:41 UTC
[GitHub] [trafficcontrol] lestrrat opened a new pull request #6380: Upgrade github.com/lestrrat-go/jwx to 1.2.12
lestrrat opened a new pull request #6380:
URL: https://github.com/apache/trafficcontrol/pull/6380
Hi,
I am the author of github.com/lestrrat-go/jwx. During a routine search I noticed that this project uses a rather antiquated version of that library.
After reviewing I realized that you probably have not upgraded the module because `jwt.Set` has been turned into an interface during the v0.9.x to v1.x transition. You probably needed to allow private parameters in the `jwk.Set` deserialization. I have tentatively implemented it in the main branch for github.com/lestrrat-go/jwx, and applied the changes I _think_ are required to make things work on your end. Currently the PR uses an unreleased version of github.com/lestrrat-go/jwx. If these changes actually work for you, I should probably release 1.2.12 first, and then have this PR merged.
Please note that I have only verified that `make unit` mostly works -- I did not run the `TestRemapConfig` and its related tests, and did not verify `trafficcontrol` running in any other form.
Also, I reviewed your PR template, but didn't think this particular PR really fits into your regular type of PR. I especially have no clue how `trafficcontrol` works, and just changed the minimal code so that it works with the new version of jwx. And to that extent, I made the judgement call to set aside your templates, as I do not believe I can really respond to your PR template. I feel bad for ignoring the rules, but I hope you understand my position.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficcontrol] zrhoffman commented on a change in pull request #6380: Upgrade github.com/lestrrat-go/jwx to 1.2.12
Posted by GitBox <gi...@apache.org>.
zrhoffman commented on a change in pull request #6380:
URL: https://github.com/apache/trafficcontrol/pull/6380#discussion_r758857475
##########
File path: traffic_ops/traffic_ops_golang/urisigning/urisigning.go
##########
@@ -62,7 +63,7 @@ func GetURIsignkeysHandler(w http.ResponseWriter, r *http.Request) {
return
}
if len(ro) == 0 {
- ro, err = json.Marshal(tc.URISignerKeyset{})
+ ro, err = json.Marshal(jwk.NewSet())
Review comment:
For backwards compatibility, `urisigning.GetURIsignkeysHandler()` should return
```json
{
"renewal_kid": null,
"keys": null
}
```
when there are no URI signing keys (see apache/trafficcontrol#5884).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficcontrol] lestrrat commented on a change in pull request #6380: Upgrade github.com/lestrrat-go/jwx to 1.2.12
Posted by GitBox <gi...@apache.org>.
lestrrat commented on a change in pull request #6380:
URL: https://github.com/apache/trafficcontrol/pull/6380#discussion_r759263792
##########
File path: traffic_ops/traffic_ops_golang/urisigning/urisigning.go
##########
@@ -63,7 +70,8 @@ func GetURIsignkeysHandler(w http.ResponseWriter, r *http.Request) {
return
}
if len(ro) == 0 {
- ro, err = json.Marshal(jwk.NewSet())
+ ro, err = json.Marshal(emptyURISigningKey)
+ panic(ro)
if err != nil {
Review comment:
should be fixed in 2ca737ccb
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficcontrol] zrhoffman commented on a change in pull request #6380: Upgrade github.com/lestrrat-go/jwx to 1.2.12
Posted by GitBox <gi...@apache.org>.
zrhoffman commented on a change in pull request #6380:
URL: https://github.com/apache/trafficcontrol/pull/6380#discussion_r759222752
##########
File path: go.mod
##########
@@ -71,12 +68,26 @@ require (
require github.com/go-ldap/ldap/v3 v3.4.1
+require (
+ github.com/davecgh/go-spew v1.1.1 // indirect
+ github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.0-20210816181553-5444fa50b93d // indirect
+ github.com/goccy/go-json v0.7.10 // indirect
+ github.com/lestrrat-go/backoff/v2 v2.0.8 // indirect
+ github.com/lestrrat-go/blackmagic v1.0.0 // indirect
+ github.com/lestrrat-go/httpcc v1.0.0 // indirect
+ github.com/lestrrat-go/iter v1.0.1 // indirect
+ github.com/lestrrat-go/option v1.0.0 // indirect
+)
+
require (
github.com/Azure/go-ntlmssp v0.0.0-20200615164410-66371956d46c // indirect
github.com/go-asn1-ber/asn1-ber v1.5.1 // indirect
github.com/golang/protobuf v1.4.3 // indirect
github.com/hashicorp/errwrap v1.0.0 // indirect
github.com/hashicorp/go-multierror v1.1.0 // indirect
+ github.com/lestrrat-go/jwx v1.2.12-0.20211125230033-881a53637884
+ github.com/lestrrat/go-jwx v0.0.0-20210302221443-a9d01c1b7121 // indirect
+ github.com/lestrrat/go-pdebug v0.0.0-20180220043741-569c97477ae8 // indirect
Review comment:
Yep, `go.mod` looks good now!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficcontrol] lestrrat commented on a change in pull request #6380: Upgrade github.com/lestrrat-go/jwx to 1.2.12
Posted by GitBox <gi...@apache.org>.
lestrrat commented on a change in pull request #6380:
URL: https://github.com/apache/trafficcontrol/pull/6380#discussion_r761531296
##########
File path: go.sum
##########
@@ -270,6 +270,8 @@ github.com/lestrrat-go/iter v1.0.1 h1:q8faalr2dY6o8bV45uwrxq12bRa1ezKrB6oM9FUgN4
github.com/lestrrat-go/iter v1.0.1/go.mod h1:zIdgO1mRKhn8l9vrZJZz9TUMMFbQbLeTsbqPDrJ/OJc=
github.com/lestrrat-go/jwx v1.2.12-0.20211125230033-881a53637884 h1:3o0vWB6NHNhgtxVwQdgFvqGFf8BWyS/urvmLONVsUeI=
github.com/lestrrat-go/jwx v1.2.12-0.20211125230033-881a53637884/go.mod h1:25DcLbNWArPA/Ew5CcBmewl32cJKxOk5cbepBsIJFzw=
Review comment:
weird... I wonder why I can't just pick these up by running go mod tidy in my environment.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficcontrol] lestrrat commented on pull request #6380: Upgrade github.com/lestrrat-go/jwx to 1.2.12
Posted by GitBox <gi...@apache.org>.
lestrrat commented on pull request #6380:
URL: https://github.com/apache/trafficcontrol/pull/6380#issuecomment-979511110
Fixed in a3adfe9. I couldn't remove the indirect dep to github.com/lestrrat/go-jwx (the old one) ATM, I wasn't sure where it was being used.
Please let me know if I can help you with anything else.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficcontrol] ocket8888 commented on pull request #6380: Upgrade github.com/lestrrat-go/jwx to 1.2.12
Posted by GitBox <gi...@apache.org>.
ocket8888 commented on pull request #6380:
URL: https://github.com/apache/trafficcontrol/pull/6380#issuecomment-979383801
> Please note that I have only verified that `make unit` mostly works -- I did not run the `TestRemapConfig` and its related tests, and did not verify `trafficcontrol` running in any other form.
Mostly we rely on automated testing these days, at least for changes like this. So don't worry about it, all the checks we want to run are being run.
> Also, I reviewed your PR template, but didn't think this particular PR really fits into your regular type of PR. I especially have no clue how `trafficcontrol` works, and just changed the minimal code so that it works with the new version of jwx. And to that extent, I made the judgement call to set aside your templates, as I do not believe I can really respond to your PR template. I feel bad for ignoring the rules, but I hope you understand my position.
That's fine. By the way, "`trafficcontrol`" sort of implies that this project is one main program, but actually it's more accurate to say that Traffic Control is a collection of software, rather than a single binary you run on its own. FYI.
Anyway, as of right now we have three failing checks. First, it looks like the dependency on your old 0.9 version is still in there, so it needs a `go mod tidy`. Then, `go vet` is showing some things it would like changed. Idk if you want to bother with that though, because more importantly it seems like these changes break the API. It's actually pretty remarkable that you've managed to make those changes with no understanding of how ATC works and not break the stable APIs at all. But our unstable APIv4 needs client changes to support the server changes, and it's probably gonna need to be one of us that makes that change. I nominate @zrhoffman who first noticed our version of jwx was causing some issues in #6354.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficcontrol] zrhoffman commented on a change in pull request #6380: Upgrade github.com/lestrrat-go/jwx to 1.2.12
Posted by GitBox <gi...@apache.org>.
zrhoffman commented on a change in pull request #6380:
URL: https://github.com/apache/trafficcontrol/pull/6380#discussion_r759285404
##########
File path: go.mod
##########
@@ -71,12 +68,23 @@ require (
require github.com/go-ldap/ldap/v3 v3.4.1
+require (
+ github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.0-20210816181553-5444fa50b93d // indirect
+ github.com/goccy/go-json v0.7.10 // indirect
+ github.com/lestrrat-go/backoff/v2 v2.0.8 // indirect
+ github.com/lestrrat-go/blackmagic v1.0.0 // indirect
+ github.com/lestrrat-go/httpcc v1.0.0 // indirect
+ github.com/lestrrat-go/iter v1.0.1 // indirect
+ github.com/lestrrat-go/option v1.0.0 // indirect
+)
+
require (
github.com/Azure/go-ntlmssp v0.0.0-20200615164410-66371956d46c // indirect
github.com/go-asn1-ber/asn1-ber v1.5.1 // indirect
github.com/golang/protobuf v1.4.3 // indirect
github.com/hashicorp/errwrap v1.0.0 // indirect
github.com/hashicorp/go-multierror v1.1.0 // indirect
+ github.com/lestrrat-go/jwx v1.2.12-0.20211125230033-881a53637884
Review comment:
Looks good! Happy to merge as soon as the `github.com/lestrrat-go/jwx` version is a tagged version.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficcontrol] zrhoffman commented on a change in pull request #6380: Upgrade github.com/lestrrat-go/jwx to 1.2.12
Posted by GitBox <gi...@apache.org>.
zrhoffman commented on a change in pull request #6380:
URL: https://github.com/apache/trafficcontrol/pull/6380#discussion_r758613598
##########
File path: go.mod
##########
@@ -71,12 +68,26 @@ require (
require github.com/go-ldap/ldap/v3 v3.4.1
+require (
+ github.com/davecgh/go-spew v1.1.1 // indirect
+ github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.0-20210816181553-5444fa50b93d // indirect
+ github.com/goccy/go-json v0.7.10 // indirect
+ github.com/lestrrat-go/backoff/v2 v2.0.8 // indirect
+ github.com/lestrrat-go/blackmagic v1.0.0 // indirect
+ github.com/lestrrat-go/httpcc v1.0.0 // indirect
+ github.com/lestrrat-go/iter v1.0.1 // indirect
+ github.com/lestrrat-go/option v1.0.0 // indirect
+)
+
require (
github.com/Azure/go-ntlmssp v0.0.0-20200615164410-66371956d46c // indirect
github.com/go-asn1-ber/asn1-ber v1.5.1 // indirect
github.com/golang/protobuf v1.4.3 // indirect
github.com/hashicorp/errwrap v1.0.0 // indirect
github.com/hashicorp/go-multierror v1.1.0 // indirect
+ github.com/lestrrat-go/jwx v1.2.12-0.20211125230033-881a53637884
+ github.com/lestrrat/go-jwx v0.0.0-20210302221443-a9d01c1b7121 // indirect
+ github.com/lestrrat/go-pdebug v0.0.0-20180220043741-569c97477ae8 // indirect
Review comment:
For me, the `github.com/lestrrat/go-jwx` *require* is removed from `go.mod` when I run `go mod tidy`.
Would you please run `go mod tidy` and `go mod vendor` using Go 1.17 or later and commit the changes made to `go.mod`, `go.sum`, and `vendor/`?
##########
File path: traffic_ops/traffic_ops_golang/urisigning/urisigning.go
##########
@@ -62,7 +63,7 @@ func GetURIsignkeysHandler(w http.ResponseWriter, r *http.Request) {
return
}
if len(ro) == 0 {
- ro, err = json.Marshal(tc.URISignerKeyset{})
+ ro, err = json.Marshal(jwk.NewSet())
Review comment:
For backwards compatibility, when there are no `urisigning.GetURIsignkeysHandler()` should return
```json
{
"renewal_kid": null,
"keys": null
}
```
when there are no URI signing keys (see apache/trafficcontrol#5884).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficcontrol] ocket8888 commented on pull request #6380: Upgrade github.com/lestrrat-go/jwx to 1.2.12
Posted by GitBox <gi...@apache.org>.
ocket8888 commented on pull request #6380:
URL: https://github.com/apache/trafficcontrol/pull/6380#issuecomment-982213595
I have a PR open against this branch at lestrrat/trafficcontrol#1 that fixes the license and go module issues
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficcontrol] zrhoffman merged pull request #6380: Upgrade github.com/lestrrat-go/jwx to 1.2.12
Posted by GitBox <gi...@apache.org>.
zrhoffman merged pull request #6380:
URL: https://github.com/apache/trafficcontrol/pull/6380
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficcontrol] lestrrat commented on a change in pull request #6380: Upgrade github.com/lestrrat-go/jwx to 1.2.12
Posted by GitBox <gi...@apache.org>.
lestrrat commented on a change in pull request #6380:
URL: https://github.com/apache/trafficcontrol/pull/6380#discussion_r761531969
##########
File path: go.sum
##########
@@ -270,6 +270,8 @@ github.com/lestrrat-go/iter v1.0.1 h1:q8faalr2dY6o8bV45uwrxq12bRa1ezKrB6oM9FUgN4
github.com/lestrrat-go/iter v1.0.1/go.mod h1:zIdgO1mRKhn8l9vrZJZz9TUMMFbQbLeTsbqPDrJ/OJc=
github.com/lestrrat-go/jwx v1.2.12-0.20211125230033-881a53637884 h1:3o0vWB6NHNhgtxVwQdgFvqGFf8BWyS/urvmLONVsUeI=
github.com/lestrrat-go/jwx v1.2.12-0.20211125230033-881a53637884/go.mod h1:25DcLbNWArPA/Ew5CcBmewl32cJKxOk5cbepBsIJFzw=
Review comment:
should be removed now!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficcontrol] lestrrat commented on a change in pull request #6380: Upgrade github.com/lestrrat-go/jwx to 1.2.12
Posted by GitBox <gi...@apache.org>.
lestrrat commented on a change in pull request #6380:
URL: https://github.com/apache/trafficcontrol/pull/6380#discussion_r758927304
##########
File path: go.mod
##########
@@ -71,12 +68,26 @@ require (
require github.com/go-ldap/ldap/v3 v3.4.1
+require (
+ github.com/davecgh/go-spew v1.1.1 // indirect
+ github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.0-20210816181553-5444fa50b93d // indirect
+ github.com/goccy/go-json v0.7.10 // indirect
+ github.com/lestrrat-go/backoff/v2 v2.0.8 // indirect
+ github.com/lestrrat-go/blackmagic v1.0.0 // indirect
+ github.com/lestrrat-go/httpcc v1.0.0 // indirect
+ github.com/lestrrat-go/iter v1.0.1 // indirect
+ github.com/lestrrat-go/option v1.0.0 // indirect
+)
+
require (
github.com/Azure/go-ntlmssp v0.0.0-20200615164410-66371956d46c // indirect
github.com/go-asn1-ber/asn1-ber v1.5.1 // indirect
github.com/golang/protobuf v1.4.3 // indirect
github.com/hashicorp/errwrap v1.0.0 // indirect
github.com/hashicorp/go-multierror v1.1.0 // indirect
+ github.com/lestrrat-go/jwx v1.2.12-0.20211125230033-881a53637884
+ github.com/lestrrat/go-jwx v0.0.0-20210302221443-a9d01c1b7121 // indirect
+ github.com/lestrrat/go-pdebug v0.0.0-20180220043741-569c97477ae8 // indirect
Review comment:
Hopefully https://github.com/apache/trafficcontrol/pull/6380/commits/0f29053eae4e11396f3c26802331a212349a14c2 fixed the issue?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficcontrol] lestrrat commented on a change in pull request #6380: Upgrade github.com/lestrrat-go/jwx to 1.2.12
Posted by GitBox <gi...@apache.org>.
lestrrat commented on a change in pull request #6380:
URL: https://github.com/apache/trafficcontrol/pull/6380#discussion_r759901869
##########
File path: go.mod
##########
@@ -71,12 +68,23 @@ require (
require github.com/go-ldap/ldap/v3 v3.4.1
+require (
+ github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.0-20210816181553-5444fa50b93d // indirect
+ github.com/goccy/go-json v0.7.10 // indirect
+ github.com/lestrrat-go/backoff/v2 v2.0.8 // indirect
+ github.com/lestrrat-go/blackmagic v1.0.0 // indirect
+ github.com/lestrrat-go/httpcc v1.0.0 // indirect
+ github.com/lestrrat-go/iter v1.0.1 // indirect
+ github.com/lestrrat-go/option v1.0.0 // indirect
+)
+
require (
github.com/Azure/go-ntlmssp v0.0.0-20200615164410-66371956d46c // indirect
github.com/go-asn1-ber/asn1-ber v1.5.1 // indirect
github.com/golang/protobuf v1.4.3 // indirect
github.com/hashicorp/errwrap v1.0.0 // indirect
github.com/hashicorp/go-multierror v1.1.0 // indirect
+ github.com/lestrrat-go/jwx v1.2.12-0.20211125230033-881a53637884
Review comment:
@zrhoffman released, and updated go.mod, go.sum, and vendor/modules.txt
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficcontrol] lestrrat commented on a change in pull request #6380: Upgrade github.com/lestrrat-go/jwx to 1.2.12
Posted by GitBox <gi...@apache.org>.
lestrrat commented on a change in pull request #6380:
URL: https://github.com/apache/trafficcontrol/pull/6380#discussion_r758927612
##########
File path: traffic_ops/traffic_ops_golang/urisigning/urisigning.go
##########
@@ -62,7 +63,7 @@ func GetURIsignkeysHandler(w http.ResponseWriter, r *http.Request) {
return
}
if len(ro) == 0 {
- ro, err = json.Marshal(tc.URISignerKeyset{})
+ ro, err = json.Marshal(jwk.NewSet())
Review comment:
I believe this is just a problem in this particular path, so I opted to just stick a dummy struct so that we don't have to play games https://github.com/apache/trafficcontrol/pull/6380/commits/b947d63baa1adac7124f12b387ae6a54c531613c
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficcontrol] lestrrat commented on pull request #6380: Upgrade github.com/lestrrat-go/jwx to 1.2.12
Posted by GitBox <gi...@apache.org>.
lestrrat commented on pull request #6380:
URL: https://github.com/apache/trafficcontrol/pull/6380#issuecomment-979500763
Thanks, I fixed one of the failing tests, but the other one will need additional fixes in my part -- currently `jwk.Set` does not allow _setting_ private parameters, but you programmatically create a `jwk.Set` in one of the tests. I'll com back around to it sometime later today.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficcontrol] lestrrat commented on pull request #6380: Upgrade github.com/lestrrat-go/jwx to 1.2.12
Posted by GitBox <gi...@apache.org>.
lestrrat commented on pull request #6380:
URL: https://github.com/apache/trafficcontrol/pull/6380#issuecomment-982281954
I believe I addressed the issues. PTAL again.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficcontrol] ocket8888 commented on a change in pull request #6380: Upgrade github.com/lestrrat-go/jwx to 1.2.12
Posted by GitBox <gi...@apache.org>.
ocket8888 commented on a change in pull request #6380:
URL: https://github.com/apache/trafficcontrol/pull/6380#discussion_r760300069
##########
File path: go.sum
##########
@@ -270,6 +270,8 @@ github.com/lestrrat-go/iter v1.0.1 h1:q8faalr2dY6o8bV45uwrxq12bRa1ezKrB6oM9FUgN4
github.com/lestrrat-go/iter v1.0.1/go.mod h1:zIdgO1mRKhn8l9vrZJZz9TUMMFbQbLeTsbqPDrJ/OJc=
github.com/lestrrat-go/jwx v1.2.12-0.20211125230033-881a53637884 h1:3o0vWB6NHNhgtxVwQdgFvqGFf8BWyS/urvmLONVsUeI=
github.com/lestrrat-go/jwx v1.2.12-0.20211125230033-881a53637884/go.mod h1:25DcLbNWArPA/Ew5CcBmewl32cJKxOk5cbepBsIJFzw=
Review comment:
yeah, that's my bad, I shoulda waited for the final module version before opening that PR. Pretty sure you just gotta delete these two lines like zrhoffman says, tho
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficcontrol] zrhoffman commented on a change in pull request #6380: Upgrade github.com/lestrrat-go/jwx to 1.2.12
Posted by GitBox <gi...@apache.org>.
zrhoffman commented on a change in pull request #6380:
URL: https://github.com/apache/trafficcontrol/pull/6380#discussion_r760059621
##########
File path: go.sum
##########
@@ -270,6 +270,8 @@ github.com/lestrrat-go/iter v1.0.1 h1:q8faalr2dY6o8bV45uwrxq12bRa1ezKrB6oM9FUgN4
github.com/lestrrat-go/iter v1.0.1/go.mod h1:zIdgO1mRKhn8l9vrZJZz9TUMMFbQbLeTsbqPDrJ/OJc=
github.com/lestrrat-go/jwx v1.2.12-0.20211125230033-881a53637884 h1:3o0vWB6NHNhgtxVwQdgFvqGFf8BWyS/urvmLONVsUeI=
github.com/lestrrat-go/jwx v1.2.12-0.20211125230033-881a53637884/go.mod h1:25DcLbNWArPA/Ew5CcBmewl32cJKxOk5cbepBsIJFzw=
Review comment:
These `v1.2.12-0.20211125230033-881a53637884` lines are removed from `go.sum` when I run `go mod tidy`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficcontrol] zrhoffman commented on a change in pull request #6380: Upgrade github.com/lestrrat-go/jwx to 1.2.12
Posted by GitBox <gi...@apache.org>.
zrhoffman commented on a change in pull request #6380:
URL: https://github.com/apache/trafficcontrol/pull/6380#discussion_r759223104
##########
File path: traffic_ops/traffic_ops_golang/urisigning/urisigning.go
##########
@@ -63,7 +70,8 @@ func GetURIsignkeysHandler(w http.ResponseWriter, r *http.Request) {
return
}
if len(ro) == 0 {
- ro, err = json.Marshal(jwk.NewSet())
+ ro, err = json.Marshal(emptyURISigningKey)
+ panic(ro)
if err != nil {
Review comment:
The `go vet` GitHub Action fails here:
> ```go
> # github.com/apache/trafficcontrol/traffic_ops/traffic_ops_golang/urisigning
> traffic_ops/traffic_ops_golang/urisigning/urisigning.go:75:3: unreachable code
> ```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficcontrol] lestrrat commented on a change in pull request #6380: Upgrade github.com/lestrrat-go/jwx to 1.2.12
Posted by GitBox <gi...@apache.org>.
lestrrat commented on a change in pull request #6380:
URL: https://github.com/apache/trafficcontrol/pull/6380#discussion_r759262767
##########
File path: traffic_ops/traffic_ops_golang/urisigning/urisigning.go
##########
@@ -63,7 +70,8 @@ func GetURIsignkeysHandler(w http.ResponseWriter, r *http.Request) {
return
}
if len(ro) == 0 {
- ro, err = json.Marshal(jwk.NewSet())
+ ro, err = json.Marshal(emptyURISigningKey)
+ panic(ro)
if err != nil {
Review comment:
Argh, that was a debug statement. Sorry, I was looking for how to reproduce that path in the tests. I'll remove it now
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org