Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Windows Tipps & SecurityTestMu AI Review: How AI is Solving the Quality Engineering Problem(23.09.2026 um 13:18 Uhr)
Windows Tipps & SecurityAmazon haut den kabellosen Dyson V8 Stabstaubsauger zum Tiefstpreis raus(24.09.2026 um 09:32 Uhr)
Windows Tipps & SecurityUpdates beheben etliche Schwachstellen in Foxit PDF Reader(24.09.2026 um 09:44 Uhr)
Windows Tipps & Security„Vom Experience Center zum monumentalen Signage-Projekt“(24.09.2026 um 10:30 Uhr)
Windows Tipps & SecurityTestMu AI Review: How AI is Solving the Quality Engineering Problem(23.09.2026 um 13:18 Uhr)
Windows Tipps & SecurityAmazon haut den kabellosen Dyson V8 Stabstaubsauger zum Tiefstpreis raus(24.09.2026 um 09:32 Uhr)
Windows Tipps & SecurityUpdates beheben etliche Schwachstellen in Foxit PDF Reader(24.09.2026 um 09:44 Uhr)
Windows Tipps & Security„Vom Experience Center zum monumentalen Signage-Projekt“(24.09.2026 um 10:30 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Practical Example of Using a Mutating Admission Webhook

In our current project, we face a challenge: managing around 40 data pipeline applications, some of which consist of multiple components. Each application needs to be deployed to multiple environments — dev, int, pre-live, and live. We p…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

In our current project, we face a challenge: managing around 40 data pipeline applications, some of which consist of multiple components.

Each application needs to be deployed to multiple environments — dev, int, pre-live, and live. We package them as Helm charts and deploy them to Kubernetes.



The problem?

Many configuration values are the same across applications. If we need to modify one of them — for example, health check settings — we must update the Helm values for every single pipeline, which is tedious and error-prone.



Our current approach

We use a shared lib-helm chart to centralize common configuration. This way, we only need to update lib-helm to change defaults.

However, promoting these changes to production still requires manual pull requests to update the Helm chart version in each application’s repo. For 40+ applications, this is still a lot of repetitive work.



This led us to ask:



Can we apply configuration changes automatically, without touching each repository?



That’s when we discovered Kubernetes Mutating Admission Webhooks.



What is a Kubernetes Webhook?

A webhook is an extension point for the Kubernetes API server.

When you create or update a resource (e.g., a Pod or Deployment), Kubernetes can send that resource to a webhook service via HTTP(S). The webhook can validate or mutate the object before it is persisted in etcd.



K8s webhook overview flow



There are two types:



ValidatingWebhook — checks a resource and can reject it if it doesn’t meet certain criteria.



MutatingWebhook — modifies a resource before it is stored.



In our case, a Mutating Webhook can inject or override default values into Deployments at creation or update time — no manual PRs required.



Steps to Use a Mutating Webhook

Implement the webhook service — a REST API that receives AdmissionReview requests and returns a JSON Patch with modifications.



Register it in Kubernetes — using a MutatingWebhookConfiguration.



1. Implementing the MutatingWebhook Server

A webhook server is just a REST API that:



Receives an AdmissionReview request from the Kubernetes API server.



Applies business logic to modify the resource.



Returns a JSON Patch describing the changes.



In this example, I’m using Pekko-HTTP, but you can use any framework.



JSON Patch

A JSON Patch is an array of operations:




  1. add

  2. remove

  3. replace

  4. move

  5. copy

  6. test



Example:




[
{ "op": "replace", "path": "/message", "value": "Patching JSON is fun" },
{ "op": "add", "path": "/with", "value": "jsonpatch.me" },
{ "op": "remove", "path": "/from" }
]







  1. Configuring Kubernetes to Use the Webhook
    Example MutatingWebhookConfiguration:




apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
name: default-value-webhook
webhooks:
- name: default-value-webhook.default.svc.cluster.local
admissionReviewVersions: ["v1"]
sideEffects: None
timeoutSeconds: 30
objectSelector:
matchLabels:
resource-webhook-enabled: "true"
clientConfig:
service:
name: default-value-webhook
namespace: default
path: "/webhook/default-value"
port: 8080
caBundle: "<Base64-encoded CA certificate>"
rules:
- operations: ["CREATE", "UPDATE"]
apiGroups: [""]
apiVersions: ["v1"]
resources: ["deployments"]






Important Details




  • Path — must match the one in your server, e.g. /webhook/default-value.

  • HTTPS only — Kubernetes requires TLS; the caBundle contains your CA cert in base64.

  • Selective application — use objectSelector only to mutate resources with specific labels (avoids touching everything).



Why this helps us

With this setup:




  • We no longer need to bump Helm chart versions across 40+ repos for small config changes.

  • Any change to the defaults can be applied cluster-wide instantly.

  • We still keep Helm values for application-specific overrides.



This removes a huge amount of manual PR work and ensures consistent configuration across environments.

SOC Incident Playbook: Remote Code Execution (RCE) Defense
title: Detect Exploitation - Practical Example of Using a Mutating Admission Webhook
id: f335f994-e362-4e0d-b41a-8f312cc8674c
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-24
logsource:
  category: network_connection
  product: any
detection:
  selection:
      CommandLine|contains:
        - 'exploit'
  condition: selection
falsepositives:
  - Legitime administrative Zugriffe oder Penetrationstests
level: high
tags:
  - attack.initial_access
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-24"
        description = "YARA Signature for "
    strings:
        $str = "Practical Example of Using a M" ascii wide
    condition:
        any of them
}
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Kognitive Analyse für identifizierte Bedrohung: Erhöhte Bedrohungslage im Bereich Practical Example of Using a Mutating Ad.... Basierend auf 368k Vektor-Korrelationen werden sofortige Isolationsmaßnahmen für betroffene Endpunkte empfohlen.

🛡️ Angriffsfläche & Exposure

Netzwerk/Remote-Zugriff ohne Vorauthentifizierung möglich.

Empfohlene Sofortmaßnahmen
  • 1. Perimeter-Inspektion: Relevante Portfreigaben und exponierte Endpunkte unverzüglich scannen.
  • 2. Patch-Applikation: Hersteller-Hotfix einspielen oder betroffene Daemons in isolierte DMZ-Segmente überführen.
  • 3. Telemetrie & EDR-Alerts: Prozessaufrufe und Child-Processes auf anomale Shell-Spawns überwachen.
🔗 Semantisch verwandte Zero-Days MariaDB 11.7 VEC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Practical Example of Using a Mutating Admission Webhook

Thematisch verwandte Begriffe: Practical, Example, Using, Mutating · 6 Treffer

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-97056 | SigNoz versions from v0.98.0 up to (but not including) v0.143.0, when co…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel TTP ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick