Kubewarden 1.3 is Here
The Kubewarden development team is happy to announce the release of the Kubewarden 1.3 stack. In addition to the usual amount of small fixes, this release focused on the following themes. If you’re not familiar with Kubewarden, it is a policy engine for Kubernetes. Its mission is to simplify the adoption of policy-as-code.
Improve end-user confidence
We want our users to feel confident about using Kubewarden, knowing that the Kubewarden project is following good development and security practices. We think this is particularly relevant to Kubewarden, given our users trust us to keep their Kubernetes clusters secure and compliant.
To achieve that, we’ve joined the CLOMonitor initiative. This project from the Cloud Native Foundation performs a series of checks to ensure certain project health best practices are met.
We proudly announce that Kubewarden is currently A-rated, with a score above 90%. The results are completely transparent and can be found by visiting the Kubewarden dashboard on the CLOMonitor website.
Performance improvements
We have reduced the startup time of the Policy Server, the component in charge of running all our WebAssembly policies. Now, starting a Policy Server with multiple policies defined is an order of magnitude faster.
Better Sigstore integration
Sigstore is a project changing how software can be safely distributed. We’ve seen the potential of Sigstore and have embraced the project not just to sign our own artifacts (binaries, container images and even policies) but also to offer policies capable of verifying image signatures.
Starting from the 1.3.0 release, Kubewarden can handle Sigstore signatures produced using a PKCS11 token, like hardware security modules (HSM) and smart cards.
This has been made possible by the work done by members of the Kubewarden team inside of the official Sigstore SDK for Rust.
Info: given all the Sigstore verification code happens on the host side, not inside of WebAssembly module, there’s no need to update the Verify Image Signatures policy to gain this functionality.
Speaking of Sigstore integration, we’ve been proud consumers and ambassadors of the keyless signing mechanism. We believe this functionality provides a secure way to sign and verify artifacts, even inside CI/CD pipelines, without the hassle of maintaining a public key infrastructure.
We’re happy to learn that keyless signing is now considered stable by the Sigstore community after the recent announcement of Rekor and Fulcio being General Available.
Policy improvements
We have recently created some new Kubewarden policies. All of them are already available on ArtifactHub. So far we’ve published a blog post dedicated to the environment variable secret scanner policy. In the following weeks, we will publish other posts dedicated to the volumeMounts and the environment variable compliance policies.
We’ve also updated some of the existing policies that used to target only Pod
resources. These policies have been extended to be able to analyze also other higher-level Kubernetes resources like Deployment
, ReplicaSet
, DaemonSet
, ReplicationController
, Job
and CronJob
.
This allows the Kubernetes administrators to decide at which level the policy is going to operate:
- Target Pod: Different kinds of resources (be they native or CRDs) can create Pod objects. By having the policy target Pods, we guarantee that all the Pods will be compliant, even those created by CRDs. However, this could lead to confusion among cluster users, as high-level Kubernetes resources would be successfully created but would stay in a non-reconciled state. For example, a Deployment defining a noncompliant Pod would be accepted into the cluster. Still, it would never have all its replicas running because the policy would prevent the creation of its Pods.
- Target higher-level resources (e.g: Deployment): cluster users will get immediate feedback about rejections. However, non-compliant pods created by other higher-level resources (be it native to Kubernetes or CRDs) would not get rejected. For example, a Policy targeting only Deployment objects would not prevent the creation of non-compliant Pods spawned by a DaemonSet.
There’s no right or wrong approach, it’s even possible to use both of them simultaneously (target Pods plus some higher-level resource). What matters is that Kubernetes administrators have full control of this detail.
What’s next
We’re already actively working on what will become our next release. In the meantime, try out the freshly backed 1.3.0 release, and feel free to reach out to us to share your feedback!
Related Articles
Aug 07th, 2023
Understanding and Optimizing CI/CD Pipelines
May 11th, 2023