Bump dependencies where Trivy reports high or critical CVEs #147
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Updated go dependencies with CVEs reported by Trivy scanning tool, as discussed in #138. For each dependency I ran
go get -u <dependency>
and thengo mod vendor
(as well as anygo get
s needed to fetch extra packages to be saved in vendor folder, andgo build
to make sure the project still built). I checked at the end that trivy no longer reported high or critical CVEs.I had to update containermanager/container_manager_linux.go to work with the changed opencontainers/runc API. I also had to pin google.golang.org/grpc/naming because the package has been removed, as suggested in fullstorydev/grpcurl#237 (comment) and in other bug reports online.
When I run
go build
, the binary seems to build fine but these warning messages are printed:This is due to etcd-io/etcd#11931, which it looks like can be resolved by taking a recent go.etcd.io/etcd/client/v3. Unfortunately, the etcd dependency is currently on the go.etcd.io/etcd module as a whole, which it looks like is no longer receiving updates. This dependency is via k8s.io/apiserver. It looks like the minimum version of apiserver that splits out the etcd dependencies (so could take the fix) is 0.22.0, but I didn't want to make a non-patch bump to the k8s dependencies so have left as is.