Ensure that vulnerability scanning for Google Cloud Artifact Registry repositories is enabled in order to find security weaknesses in your container images before deploying them and help prevent security breaches.
In Google Cloud Artifact Registry, automated vulnerability scanning conducts thorough checks on images upon their registry upload to detect any known security weaknesses or exposures. It continuously monitors for newly identified vulnerabilities, ensuring images stored within the Artifact Registry repositories remain secure. Powered by the Container Scanning API, this feature currently covers a range of image types including Alpine, CentOS, Debian, Go, Java (Maven), RedHat, and Ubuntu.
Audit
To determine if vulnerability scanning for your Artifact Registry repositories is enabled, perform the following operations:
Remediation / Resolution
To ensure that vulnerability scanning is enabled for all your Artifact Registry repositories, perform the following operations:
References
- Google Cloud Platform (GCP) Documentation
- Container scanning overview
- Scan OS packages automatically
- GCP Command Line Interface (CLI) Documentation
- gcloud projects list
- gcloud services list
- gcloud services enable