-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
bump viper to remove CVE found in github.com/miekg/dns v1.0.14 #1539
Conversation
Will check but did u run go mod tidy ? does go mod graph still reports the wrong version of the dns module ? |
I did. Actually, I double checked by removing
See:
EDIT
|
It seems that sagikazarmark/crypt#4 should be merged, then it should be updated in viper, and last we might bump it here. /cc @sagikazarmark EDIT See also bketelsen/crypt#42. /cc @bketelsen @mmorel-35 |
Let me take care of the viper side of things. |
crypt was updated, tag v0.0.5 released. |
As explained in bketelsen/crypt#42, I think we need hashicorp to publish a new verison of github.com/hashicorp/consul/api. @sagikazarmark @bketelsen, is there any technical reason to maintain two forks of |
what's the 2nd fork? I'm only aware of mine. bketelsen/crypt is the only one mentioned in the go.sum file, too. |
oh I understand now, @sagikazarmark doesn't have a "forked" version of crypt, that was a pull request against mine. |
@bketelsen according to https://github.com/spf13/viper/blob/master/go.mod#L11, spf13/viper is using https://github.com/sagikazarmark/crypt/tree/v0.2.0. |
well if someone forked crypt and added it to viper, why am I here? :) |
it's worse than that because viper and cobra are going to be out of sync. Cobra is using mine. |
"forked from bketelsen/crypt" is shown at the top of https://github.com/sagikazarmark/crypt. Since I don't know the background, sagikazarmark/crypt might have been a subset of bketelsen/crypt, which is kept in sync with it. Moreover, the user who reported the issue here (#1538), did mention viper and he opened an issue in your fork (bketelsen/crypt#42), not in sagikazarmark/crypt. Therefore, I think it makes sense for you to be in this dialogue.
That's the indirect dependency through viper:
Hence, that'll be replaced with sagikazarmark/crypt when this PR is merged, unless viper reverts back to using bketelsen/crypt. @sagikazarmark, is there any discussion/explanation about spf13/viper#1218? |
I decided to fork crypt a while ago, so we have a little bit more control over some of the dependencies. The crypt dependency will eventually disappear from Viper, so I consider it an "internal" dependency at the moment (implementation detail). I think crypt is only a transitive dependency of cobra, so once Cobra updates its Viper, everything should use my fork. I also upgraded crypt in Viper. Will tag a new version shortly. |
Tagged Viper 1.10.0 |
@sagikazarmark see https://github.com/spf13/viper/blob/a4bfcd9ea04475e70535476efda42c9757b86c18/go.sum#L295 https://github.com/sagikazarmark/crypt/blob/1e72b2159e0bc52b259cbdf78bac5f9e43a0af12/go.sum#L305, and and bketelsen/crypt#42 (comment). In short, |
Hashicorp API v1.12.0 was released yesterday. Tagged Viper v1.10.1: https://github.com/spf13/viper/releases/tag/v1.10.1 |
@sagikazarmark thanks! ❤️ @jpmcb I think this is ready to merge. |
@jpmcb since this is a security issue, can we have it merged and a bugfix release published? |
Now that we have dependabot in place, I prefer to use that. If there's no objections, we should close this PR and move any other discussion to: |
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.10.0 to 1.10.1. - [Release notes](https://github.com/spf13/viper/releases) - [Commits](spf13/viper@v1.10.0...v1.10.1) --- updated-dependencies: - dependency-name: github.com/spf13/viper dependency-type: direct:production update-type: version-update:semver-patch ... Note: For historical context on this viper dependency bump, please refer to #1539 Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: John McBride <[email protected]>
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.10.0 to 1.10.1. - [Release notes](https://github.com/spf13/viper/releases) - [Commits](spf13/viper@v1.10.0...v1.10.1) --- updated-dependencies: - dependency-name: github.com/spf13/viper dependency-type: direct:production update-type: version-update:semver-patch ... Note: For historical context on this viper dependency bump, please refer to spf13/cobra#1539 Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: John McBride <[email protected]>
Close #1538.
As reported in #1538, this addresses a security issue. However,
github.com/miekg/dns v1.0.14
is still found in thego.sum
.Ref: GHSA-44r7-7p62-q3fr
/cc @cboitel