solo-io / go-utils

golang utilities
Apache License 2.0
110 stars 18 forks source link

Security Scan Enhancements #469

Open sam-heilbron opened 2 years ago

sam-heilbron commented 2 years ago

We have an existing security scanning utility (https://github.com/solo-io/go-utils/tree/master/securityscanutils) which is used by various teams to run Trivy scans against release images on a consistent basis. For example, in Gloo Edge, we run these scans via a GitHub action (https://github.com/solo-io/gloo/blob/master/.github/workflows/trivy-analysis-scheduled.yaml)

In Gloo Edge, we scan open source images, and push the scan results to a google cloud bucket. Those output files are used to generate our docs, where we can document to our users whether the images they rely on contain any high or critical vulnerabilities (https://docs.solo.io/gloo-edge/latest/reference/security-updates/open_source/). In addition to the results being pushed to a google cloud bucket (to be used by our docs), we also push the output to the security tab under Code Scanning (https://github.com/solo-io/gloo/security/code-scanning).

In Gloo Edge, we also scan enterprise images and write results to a google cloud bucket (to be used by the docs). However, due to restrictions on our GitHub account, we cannot write to the security tab, and instead, create github issues in our private solo-projects repository (https://github.com/solo-io/solo-projects/issues/2754).

This method works great, except there are a couple of enhancements that could improve the utility: