webhook
An HTTP request a provider sends to an address you registered, to tell you an event happened, instead of you polling for it.
In more detail
The receiver must authenticate each delivery, usually by checking a signature, validate its shape and acknowledge quickly with a 2xx. Providers retry when they do not get a success, so duplicates are normal: store the delivery identifier and process each event idempotently. A 2xx means received, not that all downstream work finished.
Examples
X-Hub-Signature-256: sha256=<HMAC of the request body>hmac.compare_digest(good, header)Notifying chat when an automated rollback happens.Kubernetes can send audit events to a webhook back end instead of a file, and admission webhooks let external services approve or change objects.Related terms
- webhook signature — A signature, usually an HMAC of the request body made with a shared secret, that proves a webhook delivery came from the real provider and was not altered.
- polling — Having the client ask repeatedly, on its own schedule, whether something has changed or finished.
- acknowledgement — A reply that confirms a message or delivery was received and safely recorded, so the sender can stop retrying it.
- idempotent consumer — A message or webhook handler that produces the same result whether it sees a message once or several times.
- dead letter queue — A separate queue where messages that keep failing are moved, so they stop blocking others and can be inspected and replayed later.
- --authorization-mode — The kube-apiserver flag, and matching kubelet setting, that lists which authorizers decide requests, such as Node,RBAC.
- kubelet — The agent on every Kubernetes node that starts and watches the node's containers and reports back to the API server.
- HMAC — A way of combining a secret key with a hash function to produce a tag that shows a message came from someone holding the key and was not changed.
- constant-time comparison — Comparing two secret values in a way that always takes the same time, whether they differ in the first byte or the last.
- endpoint — An address that a program sends requests to, such as a web path like /health or a network socket.
- HTTP — The protocol web browsers and web servers use to send requests and responses.
- pipeline — An automated sequence of steps, such as build, test, scan and publish, that runs on every change.
- Figma — A browser-based design tool where designers draw interfaces and define shared styles, variables and components.
- Argo Rollouts — A Kubernetes controller that adds canary and blue-green strategies through a Rollout object that replaces a Deployment.
- Route Handlers — Files in a Next.js app, named route.ts, that answer HTTP requests for a path with functions named after methods such as GET and POST.
- mutating admission webhook — A Kubernetes hook that lets an external service change every new object, such as a pod, before it is stored.
- Kubernetes audit log — The Kubernetes API server's record of every request made to it: who asked, for what, and whether it was allowed.
- payload — The actual data a message carries, as opposed to the headers and framing around it.
- untrusted input — Any data a program did not create itself, including arguments, form fields, request bodies, file contents, file names and environment variables.
Taught in
- Webhooks Versus Polling — Modern API Architecture: REST, GraphQL & gRPC
- Event-Driven Architecture And Queues — Modern API Architecture: REST, GraphQL & gRPC
- Wikis, Release Notes And Integrations — Microsoft Azure DevOps Engineer Expert (AZ-400) Exam Prep
- One Commit, Four Argo Projects — Certified Argo Project Associate (CAPA) Exam Prep
- Argo CD: Components, Applications And Projects — Certified Argo Project Associate (CAPA) Exam Prep
- Health, Reconciliation And Fields Argo CD Should Ignore — Certified Argo Project Associate (CAPA) Exam Prep
- EventSource, EventBus, Sensor And Trigger — Certified Argo Project Associate (CAPA) Exam Prep
- Filters, Parameters And A Workflow From A Push — Certified Argo Project Associate (CAPA) Exam Prep
- Sixteen Pods, Room For Twelve: The System, Feedback And Continuous — Certified GitOps Associate (CGOA) Exam Prep
- Terminology Sprint: One Incident, Nine Terms — Certified GitOps Associate (CGOA) Exam Prep
- Twelve Keys To Production: Pulled Automatically — Certified GitOps Associate (CGOA) Exam Prep
- An Hour Without Payments: Continuously Reconciled — Certified GitOps Associate (CGOA) Exam Prep
- Three Minutes Of Waiting: Pull Versus Event-Driven — Certified GitOps Associate (CGOA) Exam Prep
- Three Regions By Spring: GitOps Architecture — Certified GitOps Associate (CGOA) Exam Prep
- Patterns Sprint: Eight Needs, One Pattern Each — Certified GitOps Associate (CGOA) Exam Prep
- A Bake-Off With One Rule: Argo CD And Flux — Certified GitOps Associate (CGOA) Exam Prep
- A Rollback Nobody Heard: Notifications, Observability And CI — Certified GitOps Associate (CGOA) Exam Prep
- Forty-Six Of Sixty: The Mock And What It Tells You — Certified GitOps Associate (CGOA) Exam Prep
- The Evening Before: Final Review — Certified GitOps Associate (CGOA) Exam Prep
- The Metadata Endpoint And The Kubelet's Front Door — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Allowed Registries: Admission That Refuses Images — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Two Reminders, One Booking: Integration And DevOps Tools — CompTIA Cloud+ (CV0-004) Exam Prep
- Securing the Kubernetes Control Plane & Node Components — Cloud Security & DevSecOps Engineering
- Cryptographic Hashing: SHA-256, SHA-3 & Passwords — Cybersecurity Fundamentals, GRC & Cryptography
- Token Transformation: Style Dictionary & Multi-Platform Outputs — Design Systems & Component Engineering
- Continuous Delivery: Blue-Green & Canary Pipelines — Production Full-Stack Engineering
- From Push To Runner: How GitLab Starts A Pipeline — GitLab Certified CI/CD Associate Exam Prep
- Eleven Months Of Yes: The API Server — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Copied From A Blog Post: The Kubelet — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Component Sprint: The Reference Build — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- There Is No Users Table: Authentication — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Who Read The Gateway Key? Audit Logging — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- What Outlives The Fix: Persistence And Privilege Escalation — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Threat Model Sprint: Name It, Then Stop It — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Forty Minutes Of Yes: Admission Control — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Platform Sprint: Evidence, Order, Proof — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Forty Three Of Sixty: The Mock, And How To Read It — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Audit Day: Final Review — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Route Handlers: RESTful Endpoints with NextRequest — Next.js 15 & Modern App Router Architecture
- Cryptographic Primitives: node:crypto & Ciphers — Node.js Internals & Backend Services
- Windows Event Logs, Sysmon & Linux Auditd Telemetry — Security Operations & Threat Hunting (SOC)
- Detecting Persistence: Tasks, Registry & Services — Security Operations & Threat Hunting (SOC)
- Literal Types: String, Number, Boolean Literals And const — Production TypeScript
- any Versus unknown: Defensive Typing In Practice — Production TypeScript
- Exhaustive Narrowing With never In Production Handlers — Production TypeScript
- Function Utilities: ReturnType, Parameters And Constructor — Production TypeScript
- The Customers Noticed First: SLAs, SLOs, Alerts, SNMP And Log Aggregation — CompTIA Linux+ (XK0-006) Exam Prep
References
- GitHub Docs: Best practices for using webhooks
- Stripe docs: Receive events in your webhook endpoint
- Kubernetes: webhook mode
- GitHub Docs: validating webhook deliveries
- GitHub Docs: about webhooks
- Kubernetes: Audit webhook backend
- Slack: Sending messages using incoming webhooks
Certification courses
- AZ-400 course and practice exam: Microsoft Azure DevOps Engineer Expert
- CAPA course and practice exam: Certified Argo Project Associate
- CGOA course and practice exam: Certified GitOps Associate
- CKS course and practice exam: Certified Kubernetes Security Specialist
- CompTIA Cloud+ course and practice exam: CV0-004
- GitLab CI/CD Associate course and practice exam: GitLab Certified CI/CD Associate
- KCSA course and practice exam: Kubernetes and Cloud Native Security Associate
- CompTIA Linux+ course and practice exam: XK0-006