Commands icon
If icon
SlackIncomingWebhook icon
Schedule icon

Kubernetes Mutating Admission Webhook Timeout and Failure Policy Sentinel

Audits Kubernetes MutatingWebhookConfigurations to detect aggressive failure policies and high timeouts risking API server lockups.

Categories
CloudInfrastructure

How it works

This workflow connects to the target Kubernetes cluster using kubectl to inspect all MutatingWebhookConfiguration resources. It evaluates admission webhook definitions configured with failurePolicy: Fail alongside high timeoutSeconds values (>=10s). When third-party admission controllers (such as service mesh sidecar injectors or security scanners) experience network degradation, the API server blocks or refuses pod creation requests across the cluster. Identified configurations trigger an alert to Slack.

What you get

  • Proactive auditing of admission controller configuration safety.
  • Prevents catastrophic cluster-wide deployment lockups during admission controller outages.
  • Complete inventory of offending webhook configurations and failure policies.

Who it's for

  • Kubernetes Platform Architects and Security Engineers managing admission control webhooks.
  • SREs troubleshooting sudden API server latency spikes or rejected pod creation requests.

Why orchestrate this with Kestra

  • Continuous Governance: Automate daily compliance verification without manual audits.
  • Centralized Security Hygiene: Track webhook configurations across multi-cluster fleets.
  • Unified Alerting: Route configuration risk notices directly to platform engineering channels.

Prerequisites

  • Cluster RBAC permissions allowing get and list on mutatingwebhookconfigurations.admissionregistration.k8s.io.
  • Secret SLACK_WEBHOOK configured in Kestra.

Quick start

  1. Import this blueprint into Kestra.
  2. Add the SLACK_WEBHOOK secret.
  3. Run the workflow to audit admission webhook configurations across your cluster.

How to extend

  • Cross-reference with ValidatingWebhookConfigurations in the same execution.
  • Validate that webhook service endpoints resolve to running, healthy pods.

Links

See How

New to Kestra?

Use blueprints to kickstart your first workflows.