~/oleksandr-ponomarov

Portfolio · Notes · Dotfiles

Search everything

Search case studies, engineering notes, and Dotfiles documentation.

    ← all case studies

    Case study 10

    One policy engine, many jobs: Kyverno at the cluster door

    The clusters now say "no" politely, consistently, and in version control.

    securityreliability

    The situation

    Some rules can’t live in code review alone. “Please never change this setting”, “please don’t shell into those pods”, “please use the internal registry” — tribal rules get forgotten exactly once too often. Kubernetes has a better place for them: the admission layer, the front door every object passes through before it enters the cluster.

    What I did

    I introduced Kyverno, the policy engine that enforces rules at that door — with the rules themselves versioned in git like everything else. Then I kept finding jobs for it:

    The interesting part

    The policy engine became a catch-all for sharp edges that didn’t belong in memory or runbooks: data, image references, deletion safety, and little correctness traps all now fail closed at admission.

    What it changed

    The difference between a convention and a rule: conventions rely on memory, rules are enforced at admission and reviewed as code. The clusters now say “no” politely, consistently, and in version control.