Conversation
kschoche
left a comment
There was a problem hiding this comment.
I don't suppose there is a pipeline we can check where this ran succesfully before merging?
|
@picatz Is there a pipeline we can check to see if this ran successfully before merging? |
|
I'm not sure if CRT has the ability to run the release pipeline outside of the normal release process. Though, I could be wrong about that! We would need to double check with release engineering. Though, we can run the scan locally to see the results! Created a container {
dependencies = true
alpine_secdb = true
secrets = true
}
binary {
secrets = true
go_modules = true
osv = true
oss_index = true
nvd = true
}Then downloaded the latest $ ls
consul-k8s scan.hcl
$ scan binary ./consul-k8s
Scanned file:{path:"./consul-k8s"} in 13.3s - found 29 result(s)
» Go Modules Scanner
⚠︎ found NVD reported vulnerability CVE-2022-28131 in cpe:2.3:a:golang:go:1.18.3:*:*:*:*:*:*:*
./consul-k8s:0:0
⚠︎ found NVD reported vulnerability CVE-2022-30630 in cpe:2.3:a:golang:go:1.18.3:*:*:*:*:*:*:*
./consul-k8s:0:0
⚠︎ found NVD reported vulnerability CVE-2022-30632 in cpe:2.3:a:golang:go:1.18.3:*:*:*:*:*:*:*
./consul-k8s:0:0
⚠︎ found NVD reported vulnerability CVE-2022-30635 in cpe:2.3:a:golang:go:1.18.3:*:*:*:*:*:*:*
./consul-k8s:0:0
⚠︎ found NVD reported vulnerability CVE-2022-32148 in cpe:2.3:a:golang:go:1.18.3:*:*:*:*:*:*:*
./consul-k8s:0:0
⚠︎ found NVD reported vulnerability CVE-2022-1705 in cpe:2.3:a:golang:go:1.18.3:*:*:*:*:*:*:*
./consul-k8s:0:0
⚠︎ found NVD reported vulnerability CVE-2022-1962 in cpe:2.3:a:golang:go:1.18.3:*:*:*:*:*:*:*
./consul-k8s:0:0
⚠︎ found NVD reported vulnerability CVE-2022-30631 in cpe:2.3:a:golang:go:1.18.3:*:*:*:*:*:*:*
./consul-k8s:0:0
⚠︎ found NVD reported vulnerability CVE-2022-30633 in cpe:2.3:a:golang:go:1.18.3:*:*:*:*:*:*:*
./consul-k8s:0:0
⚠︎ found NVD reported vulnerability CVE-2022-32189 in cpe:2.3:a:golang:go:1.18.3:*:*:*:*:*:*:*
./consul-k8s:0:0
⚠︎ found OSV reported vulnerability GHSA-c72p-9xmj-rx3w in github.com/containerd/containerd@v1.4.4
./consul-k8s:0:0
⚠︎ found OSV reported vulnerability GHSA-c2h3-6mxw-7mvq in github.com/containerd/containerd@v1.4.4
./consul-k8s:0:0
⚠︎ found OSV reported vulnerability GHSA-5j5w-g665-5m35 in github.com/containerd/containerd@v1.4.4
./consul-k8s:0:0
⚠︎ found OSV reported vulnerability GHSA-crp2-qrr5-8pq7 in github.com/containerd/containerd@v1.4.4
./consul-k8s:0:0
⚠︎ found OSV reported vulnerability GHSA-5ffw-gxpp-mxpf in github.com/containerd/containerd@v1.4.4
./consul-k8s:0:0
⚠︎ found OSV reported vulnerability GHSA-qq97-vm5h-rrhg in github.com/docker/distribution@v2.7.1+incompatible
./consul-k8s:0:0
⚠︎ found OSV reported vulnerability GO-2022-0379 in github.com/docker/distribution@v2.7.1+incompatible
./consul-k8s:0:0
⚠︎ found OSV reported vulnerability GHSA-hp87-p4gw-j4gq in gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b
./consul-k8s:0:0
⚠︎ found OSV reported vulnerability GO-2022-0493 in golang.org/x/sys@v0.0.0-20220114195835-da31bd327af9
./consul-k8s:0:0
⚠︎ found OSV reported vulnerability GHSA-77vh-xpmg-72qh in github.com/opencontainers/image-spec@v1.0.1
./consul-k8s:0:0
⚠︎ found OSV reported vulnerability GO-2022-0322 in github.com/prometheus/client_golang@v1.11.0
./consul-k8s:0:0
⚠︎ found OSV reported vulnerability GHSA-gp4j-w3vj-7299 in github.com/opencontainers/runc@v0.1.1
./consul-k8s:0:0
⚠︎ found OSV reported vulnerability GO-2021-0085 in github.com/opencontainers/runc@v0.1.1
./consul-k8s:0:0
⚠︎ found OSV reported vulnerability GHSA-fgv8-vj5c-2ppq in github.com/opencontainers/runc@v0.1.1
./consul-k8s:0:0
⚠︎ found OSV reported vulnerability GO-2021-0087 in github.com/opencontainers/runc@v0.1.1
./consul-k8s:0:0
⚠︎ found OSV reported vulnerability GHSA-g54h-m393-cpwq in github.com/opencontainers/runc@v0.1.1
./consul-k8s:0:0
⚠︎ found OSV reported vulnerability GHSA-c3xm-pvg7-gh7r in github.com/opencontainers/runc@v0.1.1
./consul-k8s:0:0
⚠︎ found OSV reported vulnerability GHSA-v95c-p5hm-xq8f in github.com/opencontainers/runc@v0.1.1
./consul-k8s:0:0
⚠︎ found OSV reported vulnerability GHSA-f3fp-gc8g-vw66 in github.com/opencontainers/runc@v0.1.1
./consul-k8s:0:0Running the container scan on the latest $ scan container hashicorp/consul-k8s
Scanned docker:{owner:"hashicorp" name:"consul-k8s"} tag:"latest" in 41.8s - found 29 result(s)
» Dependency Scanner
⚠︎ found reported vulnerability CVE-2021-42379 from Alpine Linux's Security Issue Tracker in busybox@1.32.1-r6
/lib/apk/db/installed:0:0
⚠︎ found reported vulnerability CVE-2021-42385 from Alpine Linux's Security Issue Tracker in busybox@1.32.1-r6
/lib/apk/db/installed:0:0
⚠︎ found reported vulnerability CVE-2021-42381 from Alpine Linux's Security Issue Tracker in busybox@1.32.1-r6
/lib/apk/db/installed:0:0
⚠︎ found reported vulnerability CVE-2021-42380 from Alpine Linux's Security Issue Tracker in busybox@1.32.1-r6
/lib/apk/db/installed:0:0
⚠︎ found reported vulnerability CVE-2021-42378 from Alpine Linux's Security Issue Tracker in busybox@1.32.1-r6
/lib/apk/db/installed:0:0
⚠︎ found reported vulnerability CVE-2021-42376 from Alpine Linux's Security Issue Tracker in busybox@1.32.1-r6
/lib/apk/db/installed:0:0
⚠︎ found reported vulnerability CVE-2021-42374 from Alpine Linux's Security Issue Tracker in busybox@1.32.1-r6
/lib/apk/db/installed:0:0
⚠︎ found reported vulnerability CVE-2021-42386 from Alpine Linux's Security Issue Tracker in busybox@1.32.1-r6
/lib/apk/db/installed:0:0
⚠︎ found reported vulnerability CVE-2021-42384 from Alpine Linux's Security Issue Tracker in busybox@1.32.1-r6
/lib/apk/db/installed:0:0
⚠︎ found reported vulnerability CVE-2021-42382 from Alpine Linux's Security Issue Tracker in busybox@1.32.1-r6
/lib/apk/db/installed:0:0
⚠︎ found reported vulnerability CVE-2022-32208 from Alpine Linux's Security Issue Tracker in curl@7.77.0-r1
/lib/apk/db/installed:0:0
⚠︎ found reported vulnerability CVE-2021-22923 from Alpine Linux's Security Issue Tracker in curl@7.77.0-r1
/lib/apk/db/installed:0:0
⚠︎ found reported vulnerability CVE-2021-22922 from Alpine Linux's Security Issue Tracker in curl@7.77.0-r1
/lib/apk/db/installed:0:0
⚠︎ found reported vulnerability CVE-2021-22925 from Alpine Linux's Security Issue Tracker in curl@7.77.0-r1
/lib/apk/db/installed:0:0
⚠︎ found reported vulnerability CVE-2021-22926 from Alpine Linux's Security Issue Tracker in curl@7.77.0-r1
/lib/apk/db/installed:0:0
⚠︎ found reported vulnerability CVE-2021-22946 from Alpine Linux's Security Issue Tracker in curl@7.77.0-r1
/lib/apk/db/installed:0:0
⚠︎ found reported vulnerability CVE-2021-22947 from Alpine Linux's Security Issue Tracker in curl@7.77.0-r1
/lib/apk/db/installed:0:0
⚠︎ found reported vulnerability CVE-2021-42386 from Alpine Linux's Security Issue Tracker in busybox@1.32.1-r6
/lib/apk/db/installed:0:0
⚠︎ found reported vulnerability CVE-2021-42382 from Alpine Linux's Security Issue Tracker in busybox@1.32.1-r6
/lib/apk/db/installed:0:0
⚠︎ found reported vulnerability CVE-2021-42378 from Alpine Linux's Security Issue Tracker in busybox@1.32.1-r6
/lib/apk/db/installed:0:0
⚠︎ found reported vulnerability CVE-2021-42374 from Alpine Linux's Security Issue Tracker in busybox@1.32.1-r6
/lib/apk/db/installed:0:0
⚠︎ found reported vulnerability CVE-2021-42376 from Alpine Linux's Security Issue Tracker in busybox@1.32.1-r6
/lib/apk/db/installed:0:0
⚠︎ found reported vulnerability CVE-2021-42385 from Alpine Linux's Security Issue Tracker in busybox@1.32.1-r6
/lib/apk/db/installed:0:0
⚠︎ found reported vulnerability CVE-2021-42384 from Alpine Linux's Security Issue Tracker in busybox@1.32.1-r6
/lib/apk/db/installed:0:0
⚠︎ found reported vulnerability CVE-2021-42381 from Alpine Linux's Security Issue Tracker in busybox@1.32.1-r6
/lib/apk/db/installed:0:0
⚠︎ found reported vulnerability CVE-2021-42380 from Alpine Linux's Security Issue Tracker in busybox@1.32.1-r6
/lib/apk/db/installed:0:0
⚠︎ found reported vulnerability CVE-2021-42379 from Alpine Linux's Security Issue Tracker in busybox@1.32.1-r6
/lib/apk/db/installed:0:0
⚠︎ found reported vulnerability CVE-2021-22924 from Alpine Linux's Security Issue Tracker in libcurl@7.77.0-r1
/lib/apk/db/installed:0:0
⚠︎ found reported vulnerability CVE-2021-22945 from Alpine Linux's Security Issue Tracker in libcurl@7.77.0-r1
/lib/apk/db/installed:0:0 |
|
Thanks looks like @kschoche also ran them locally and got the same results. Are there any libraries here on consul-k8s CLI that might be on the higher priority side of updating? I would think maybe libcurl and curl? |
|
I have not triaged the scan results to determine relative priority, but I would agree Just to be clear, especially for external parties reading this: those cURL vulnerabilities aren't for the FWIW, we should consider not installing |
|
Got it, the |
|
Do we want to invoke this earlier in the pipeline as opposed to on merge? We can you can invoke the security-scanner github action to do this: https://github.com/hashicorp/security-scanner#example-github-actions-usage |
|
Will close the PR as we first need to work on a process for addressing results of each scan. Will re-visit later. |
Changes proposed in this PR:
How I've tested this PR:
How I expect reviewers to test this PR:
Checklist: