Create your FREE Codefresh account and start making pipelines fast. Create Account

Docker Image Scanning in your Codefresh Pipeline with Aqua

3 min read
Editors note: This is a guest blog post with Raj Seshadri from Aqua Security with whom we also recorded a live webinar. Scroll to the bottom of the post to view the full webinar on this topic!

There are many benefits to implementing CI/CD platforms, such as enabling fast and frequent release cycles of software and applications, but with great speed comes great responsibility. It is crucial to add security controls around container image creation and deployment to ensure that your applications are properly secure before they are deployed.

Scanning Docker images during the CI stage provides a quick and short feedback loop on security as images are built. You want to discover unsecured images well before you deploy them, and enable developers to fix them quickly, rather than wait until issues are found in production. You should also avoid unsecured images in your testing/staging environments, as they could also be targets for attack.

Aqua Security provides superior security for containers, serverless, and cloud-native applications, across all platforms and clouds that you can easily integrate into your Codefresh pipeline. A dedicated Aqua step to automate image scanning is now available in our freshSTEPS catalog. This step conducts image scanning to find known vulnerabilities, malware, embedded secrets, configuration issues, and open source licensing issues in your image build. The scan step will pass/fail builds based on policy set in Aqua and annotate all information both onto the pipeline and the image itself. This makes it easy to review and image, see how it was built, who worked on it, and what vulnerabilities are present along with recommended mitigations.

Docker Image Scanning

As you can see below, the Aqua Security scan is added as a step in the build process:

Docker Image Scanning

Image Security Policies in Action

Aqua provides flexible policies to set your appetite for risk in various applications and environments. For example, you can differentiate between customer-facing and internal apps, or between PCI and non-PCI apps. Various aspects can be set and determine whether an image will pass or fail your criteria, and also what actions will be taken in case of a non-compliant image – such as failing the CI build, blocking its deployment, or both.

If the image was scanned and no issues were found that violate the policies (in the case below, malware and blacklisted CVEs, as well as the completion of the scanning itself), the Aqua Console will show it was approved.

Docker image scanning

If an image was deemed non-compliant (in this case due to a severe vulnerability that was found), it will appear as a non-compliant image in the Aqua Console. Clicking on the Vulnerabilities tab will provide additional CVE information as well as possible remediation steps.

Docker Image scanning

More importantly, in the Codefresh UI the developer will also be notified that the build failed. Security teams can set the policy to only alert on security issues found during the build, but in this case, the policy was set to fail the build. This allows security teams to ensure that no serious issues make it even into a staging environment while providing feedback to developers right within their CI environment, shortening that time-to-fix loop.

Docker image scanning

In the case of non-compliant images, even those that are set to pass builds, Aqua can later block their use or deployment across Kubernetes clusters and hosts, so there are multiple security check-points within the CI/CD process.

Summing it Up

Codefresh’s platform provides a unique way of implementing CI/CD for Kubernetes and Docker by using steps.  By integrating the Aqua security platform as one of the build steps, Codefresh’s CI/CD benefits are augmented by providing the user with protection against security threats and vulnerabilities often found in this space.

Watch a  live demonstration of the image scanning in the CI/CD pipeline using Aqua and Codefresh below:

See more details and watch the Webinar HERE.

 

Raj Seshadri

About Raj Seshadri

Raj Seshadri is a versatile and skilled DevSecOps technologist with twenty plus years of industry experience. Prior to Aqua he had stints at EMC, Dell, Red Hat and Docker. He has proven ability to understand business problems and translate them into technical blueprints and deliver optimal DevSecOps solutions for clients.

Enjoy this article? Don't forget to share.

Comments

* All fields are required. Your email address will not be published.

Related Posts

Get a head start on building better pipelines!

Schedule a demo with a Codefresh expert today.