We love containers. They let us run many more server applications on the same hardware than virtual machines do. There's only one not so little problem with containers: Security. CoreOS's Clair addresses this concern by checking for software vulnerabilities in your containers.
CoreOS the makers of Linux for massive server deployments and a container power in its own right, launched an early version of Clair, an open source container image security analyzer late last year. Today, CoreOS released Clair version 1.0 and it's ready for production workloads.
Matthew Garrett, CoreOS's principal security software engineer, explained in an e-mail that "Vulnerabilities in software are an unfortunate fact of life, and it's vital that admins know about them as soon as possible and be able to apply fixes. Containers add additional security by strengthening the boundaries between applications, but existing ops tooling is frequently unaware of containers and unable to notify admins of potential issues."
Clair does this, Quentin Machu, a CoreOS software engineer, explained, by providing an "an API-driven analysis service [Quay Security Scanning] that provides insight into the current vulnerabilities in your containers." It does this by checking every container image "and provides a notification of vulnerabilities that may be a threat, based on the vulnerability databases Common Vulnerabilities and Exposures (CVE) maintained by Red Hat, Ubuntu, and Debian."
For DevOps teams, Clair delivers. Machu said it offers "useful and actionable information about the vulnerabilities that threaten containers. Community feedback guided many of the latest Clair features, including the ability not only to reveal whether a vulnerability is present, but also offer the available patch or update to correct it. Additionally, the 1.0 release improves performance and extensibility, empowering developers and operations professionals to implement their own services around the Clair analyzer."
With this version users can also add fixes and vulnerabilities. This is important because, a Clair-based analysis, indexed by CoreOS's Quay container registry determined that:
Patching. It's that's simple.
As Machu observed, "Updating to the latest versions of installed software improves overall infrastructure security, which is why we deemed it important to analyze container images for security vulnerabilities as well as provide a clear path to updates mediating those issues that Clair uncovers. Container images are often infrequently updated, but with Clair security scanning, users can identify and update problematic images more easily."
Clair 1.0 includes both better performance and more features.
CoreOS is intent on making Clair a true open-source project. While the company welcomes contributions to the core Clair repository, it's extensible components mean any company can maintain its own Clair extensions. Huawei, for example, has already contributed an extension to support the ACI container image format.
If you're serious about container security, you seriously need to give Clair a try.
Related Stories: