A presentation at Cloud Native Rejekts EU 2024 in in Paris, France by Marcus Noble
In the world of Kubernetes, dynamic admission controllers have long played a pivotal role in enhancing the robustness and adaptability of clusters. For instance, the ValidatingWebhookConfiguration, which empowers users to implement intricate and finely-tuned access controls beyond the capabilities of RBAC. However, this newfound agility often comes at a price – the ease with which they can be misconfigured, potentially leading to cluster disruption and downtime.
Historically, we’ve accepted this fragility as an inevitable trade-off for greater control over our clusters. But what if we could change that narrative?
Enter ValidatingAdmissionPolicies!
In this talk we’ll take a look at what makes ValidatingAdmissionPolicies a safer choice for your validation logic and what problems they aim to solve.
We will delve into the world of ValidatingAdmissionPolicies, exploring their features and limitations. We will also draw comparisons with ValidatingWebhookConfigurations, shedding light on the problems they solve. Furthermore, I’ll provide a comprehensive walkthrough on how you can begin leveraging ValidatingAdmissionPolicies today.
The following resources were mentioned during the presentation or are useful additional information.
Proposal for CEL based admission control (ValidatingAdmissionPolicy)
Issue tracking the promotion of ValidatingAdmissionPolicy to GA, currently targetting v1.30
The official documentation for using ValidatingAdmissionPolicy
Proposal introducing the concept of MutatingAdmissionPolicy
The work in progress PR adding the functionality for MutatingAdmissionPolicy
My talk from Rejekts in Chicago about the dangers of admission controller webhooks
The official Kubernetes documentation on CEL, including the custom functions available.
The documentation for using CEL with Kyverno policies.
The documentation for using CEL in Tekton Triggers.
The CEL Go library
An online, interactive tool for building and testing CEL expressions.
Here’s what was said about this presentation on social media.