Medium Automation system

Webhook Validation & Signature Layer

A guard that sits in front of any inbound webhook and proves each request is authentic and well-formed before the workflow acts on it. Verifies signatures, checks shape, and rejects spoofed or malformed payloads.

2 to 4 days
timeline
Medium
complexity
5
tools
4
steps

Built with real HMX tool paths

SStripe
MMake
nn8n
CCloudflare Workers
SSupabase
SStripe
MMake
nn8n
CCloudflare Workers
SSupabase

System facts

Webhook Validation & Signature Layer uses an event-driven automation layer for AI Automation. A guard that sits in front of any inbound webhook and proves each request is authentic and well-formed before the workflow acts on it. The architecture connects capture the raw request body, stripe, make, and completed workflow with an explicit control path.

Outcome

Only authentic, correctly-shaped events reach the workflow, which blocks spoofed payloads and stops malformed data from corrupting downstream records.

Main risk

A forged or replayed request triggers real actions (refunds, CRM changes), or pre-parsing the body breaks signature verification so valid events get rejected.

Prevention

Verify the raw body with the official SDK or a vetted HMAC check before parsing, keep secrets in env/secret storage, and allowlist event types.

Fallback

Quarantine requests that fail verification to a logged dead-letter store and alert an admin, rather than processing or silently dropping them.

System architecture

Webhook Validation & Signature Layer Architecture

6 nodes
Capture the raw request body
Verify the provider
Stripe
Make
Exception Path
Completed Workflow
  1. 01Capture the raw request body

    A guard that sits in front of any inbound webhook and proves each request is authentic and well-formed before the workflow acts on it.

  2. 02Verify the provider

    Verify the provider signature (Stripe Stripe-Signature HMAC-SHA256, or an HMAC/shared-secret header for generic senders) against the signing secret held in env vars

  3. 03Stripe

    Stripe carries Webhook Validation & Signature Layer through validated triggers, branches, writebacks, and exception paths.

  4. 04Make

    Validate payload shape and required fields against an expected schema, and reject anything outside an allowlist of event types

  5. 05Exception Path

    Quarantine requests that fail verification to a logged dead-letter store and alert an admin, rather than processing or silently dropping them.

  6. 06Completed Workflow

    Only authentic, correctly-shaped events reach the workflow, which blocks spoofed payloads and stops malformed data from corrupting downstream records.

How it is built

A guard that sits in front of any inbound webhook and proves each request is authentic and well-formed before the workflow acts on it. Verifies signatures, checks shape, and rejects spoofed or malformed payloads.

  1. 01Capture the raw request body and headers before any JSON parsing, since signature checks run on raw bytes
  2. 02Verify the provider signature (Stripe Stripe-Signature HMAC-SHA256, or an HMAC/shared-secret header for generic senders) against the signing secret held in env vars
  3. 03Validate payload shape and required fields against an expected schema, and reject anything outside an allowlist of event types
  4. 04Return 200 fast on valid events and a 4xx on invalid ones, logging every rejection with reason

Tools

Workflow surface

  • Stripe
  • Make
  • n8n
  • Cloudflare Workers
  • Supabase
  • Event layer: Capture the raw request body and headers before any JSON parsing, since signature checks run on raw bytes
  • Validation layer: Verify the provider signature (Stripe Stripe-Signature HMAC-SHA256, or an HMAC/shared-secret header for generic senders) against the signing secret held in env vars
  • Branching layer: Stripe carries Webhook Validation & Signature Layer through validated triggers, branches, writebacks, and exception paths.
  • Writeback layer: Make handles routine steps while verify the raw body with the official SDK or a vetted HMAC check before parsing, keep secrets in env/secret storage, and allowlist event types.
  • Exception layer: Only authentic, correctly-shaped events reach the workflow, which blocks spoofed payloads and stops malformed data from corrupting downstream records.

Data flow

  1. 01Capture the raw request body and headers before any JSON parsing, since signature checks run on raw bytes
  2. 02Verify the provider signature (Stripe Stripe-Signature HMAC-SHA256, or an HMAC/shared-secret header for generic senders) against the signing secret held in env vars
  3. 03Validate payload shape and required fields against an expected schema, and reject anything outside an allowlist of event types
  4. 04Return 200 fast on valid events and a 4xx on invalid ones, logging every rejection with reason

Controls and fallbacks

  • A forged or replayed request triggers real actions (refunds, CRM changes), or pre-parsing the body breaks signature verification so valid events ge...
  • Verify the raw body with the official SDK or a vetted HMAC check before parsing, keep secrets in env/secret storage, and allowlist event types.
  • Quarantine requests that fail verification to a logged dead-letter store and alert an admin, rather than processing or silently dropping them.

Build this system around your real handoffs.

The intake captures tools, failure points, access, and owner rules before scope is confirmed.

(c) 2026 HMX Zone. All rights reserved.