<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Upsec</title>
    <description>The latest articles on Forem by Upsec (@upsec_co).</description>
    <link>https://forem.com/upsec_co</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3865953%2F8d75750e-b38a-492c-982e-a2012c932d53.png</url>
      <title>Forem: Upsec</title>
      <link>https://forem.com/upsec_co</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/upsec_co"/>
    <language>en</language>
    <item>
      <title>I Built an Open Webhook Gateway — Here's Why and How</title>
      <dc:creator>Upsec</dc:creator>
      <pubDate>Tue, 07 Apr 2026 13:37:12 +0000</pubDate>
      <link>https://forem.com/upsec_co/i-built-an-open-webhook-gateway-heres-why-and-how-1jg2</link>
      <guid>https://forem.com/upsec_co/i-built-an-open-webhook-gateway-heres-why-and-how-1jg2</guid>
      <description>&lt;p&gt;I Built an Open Webhook Gateway — Here's Why and How&lt;br&gt;
Every app I've built in the last few years has had the same problem: webhooks are unreliable.&lt;/p&gt;

&lt;p&gt;Stripe sends a payment event, but my server is restarting. GitHub sends a push notification, but my endpoint returns a 500. Shopify fires an order webhook, but I have no idea if it actually arrived.&lt;/p&gt;

&lt;p&gt;Sound familiar?&lt;/p&gt;

&lt;p&gt;I got tired of rebuilding the same retry logic, signature verification, and logging infrastructure for every project. So I built UpSec — a webhook gateway that sits between providers and your application.&lt;/p&gt;

&lt;p&gt;The Problem with Raw Webhooks&lt;br&gt;
Webhooks are fire-and-forget. The sender makes one HTTP request and moves on. If your server is down, overloaded, or returning errors — that data is gone forever.&lt;/p&gt;

&lt;p&gt;Here are the three critical risks:&lt;/p&gt;

&lt;p&gt;Data Loss — Your server is offline for 30 seconds during a deploy. A Stripe payment_intent.succeeded event fires. You never receive it. The customer paid, but your system doesn't know.&lt;/p&gt;

&lt;p&gt;Security — Anyone can POST to your webhook URL. Without HMAC signature verification, you're accepting unverified data into your system. That's an injection vector waiting to happen.&lt;/p&gt;

&lt;p&gt;No Visibility — When something breaks, you're debugging blind. No logs. No replay. No way to see what was sent, when, or whether it was processed.&lt;/p&gt;

&lt;p&gt;What UpSec Does&lt;br&gt;
UpSec is a webhook gateway — a managed layer between webhook providers and your backend. Instead of pointing Stripe directly at your-api.com/webhooks/stripe, you point it at UpSec.&lt;/p&gt;

&lt;p&gt;Here's the flow:&lt;/p&gt;

&lt;p&gt;Provider (Stripe, GitHub, etc.)&lt;br&gt;
    ↓&lt;br&gt;
UpSec receives the webhook&lt;br&gt;
    ↓&lt;br&gt;
Verifies HMAC signature (SHA-256 / SHA-512)&lt;br&gt;
    ↓&lt;br&gt;
Logs the event with full payload&lt;br&gt;
    ↓&lt;br&gt;
Forwards to your destination(s)&lt;br&gt;
    ↓&lt;br&gt;
If it fails → automatic retry with exponential backoff&lt;br&gt;
    (30s → 2min → 10min → 1hr)&lt;br&gt;
Key Features&lt;br&gt;
Instant Endpoints — Create a webhook URL in seconds. No server setup required.&lt;br&gt;
HMAC Signature Verification — Timing-safe verification for SHA-256, SHA-512, and provider-specific formats (Stripe, GitHub, Shopify).&lt;br&gt;
Multi-Destination Forwarding — Route a single webhook to multiple internal services.&lt;br&gt;
Automatic Retries — Exponential backoff with 4 retry attempts. No more lost events.&lt;br&gt;
Real-Time Event Logs — See every webhook as it arrives, with payload, headers, and delivery status.&lt;br&gt;
Payload Transformation — Transform webhook payloads before forwarding using JSONPath rules.&lt;br&gt;
The Tech Stack&lt;br&gt;
I built UpSec with a focus on speed and reliability:&lt;/p&gt;

&lt;p&gt;Frontend: React + TypeScript + Tailwind CSS&lt;br&gt;
Backend: Serverless edge functions&lt;br&gt;
Database: PostgreSQL with JSONB for flexible payload storage&lt;br&gt;
Verification: Timing-safe HMAC comparison to prevent side-channel attacks&lt;br&gt;
SDKs: Node.js, Python, and Go&lt;br&gt;
SDK Integration&lt;br&gt;
UpSec provides SDKs so you can verify webhooks in your own codebase too:&lt;/p&gt;

&lt;p&gt;Node.js&lt;br&gt;
npm install &lt;a class="mentioned-user" href="https://dev.to/upsec"&gt;@upsec&lt;/a&gt;/webhook&lt;br&gt;
import { UpSec } from '&lt;a class="mentioned-user" href="https://dev.to/upsec"&gt;@upsec&lt;/a&gt;/webhook';&lt;/p&gt;

&lt;p&gt;const upsec = new UpSec({ secret: process.env.WEBHOOK_SECRET });&lt;/p&gt;

&lt;p&gt;app.post('/webhooks', (req, res) =&amp;gt; {&lt;br&gt;
  const isValid = upsec.verify(req.body, req.headers['x-webhook-signature']);&lt;/p&gt;

&lt;p&gt;if (!isValid) {&lt;br&gt;
    return res.status(401).json({ error: 'Invalid signature' });&lt;br&gt;
  }&lt;/p&gt;

&lt;p&gt;// Process the verified webhook&lt;br&gt;
  handleEvent(req.body);&lt;br&gt;
  res.status(200).json({ received: true });&lt;br&gt;
});&lt;br&gt;
Python&lt;br&gt;
pip install upsec-webhook&lt;br&gt;
from upsec import UpSec&lt;/p&gt;

&lt;p&gt;upsec = UpSec(secret=os.environ["WEBHOOK_SECRET"])&lt;/p&gt;

&lt;p&gt;@app.route("/webhooks", methods=["POST"])&lt;br&gt;
def handle_webhook():&lt;br&gt;
    if not upsec.verify(request.data, request.headers.get("x-webhook-signature")):&lt;br&gt;
        abort(401)&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;process_event(request.json)
return jsonify(received=True)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Go&lt;br&gt;
import "github.com/upsec/webhook-go"&lt;/p&gt;

&lt;p&gt;func webhookHandler(w http.ResponseWriter, r *http.Request) {&lt;br&gt;
    client := upsec.New(os.Getenv("WEBHOOK_SECRET"))&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;body, _ := io.ReadAll(r.Body)
sig := r.Header.Get("X-Webhook-Signature")

if !client.Verify(body, sig) {
    http.Error(w, "Invalid signature", http.StatusUnauthorized)
    return
}

// Process verified webhook
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;}&lt;br&gt;
Why Not Just Build It Yourself?&lt;br&gt;
You absolutely can. I did — multiple times. That's exactly why I built UpSec.&lt;/p&gt;

&lt;p&gt;Here's what "building it yourself" actually means:&lt;/p&gt;

&lt;p&gt;Feature DIY Effort  UpSec&lt;br&gt;
Signature verification  Research each provider's format, implement timing-safe comparison   ✅ Built-in&lt;br&gt;
Retry logic Build a job queue, implement backoff, handle dead letters   ✅ Automatic&lt;br&gt;
Logging Set up structured logging, build a viewer UI    ✅ Real-time dashboard&lt;br&gt;
Multi-destination   Build a routing layer, handle partial failures  ✅ Configure in UI&lt;br&gt;
Monitoring  Build alerting for failed deliveries    ✅ Notification channels&lt;br&gt;
For a side project, that's weeks of work. For a production system, it's months of maintenance.&lt;/p&gt;

&lt;p&gt;Security First&lt;br&gt;
Webhook security isn't optional. UpSec uses:&lt;/p&gt;

&lt;p&gt;Timing-safe HMAC comparison — Prevents timing attacks that could leak signature information&lt;br&gt;
Rate limiting — 100 events/minute per endpoint to prevent abuse&lt;br&gt;
TLS everywhere — All webhook traffic is encrypted in transit&lt;br&gt;
Payload isolation — Each workspace has isolated data access&lt;br&gt;
What's Next&lt;br&gt;
I'm actively building UpSec and would love feedback from the community:&lt;/p&gt;

&lt;p&gt;🔗 Website: &lt;a href="//upsec.co"&gt;upsec.co&lt;/a&gt;&lt;br&gt;
📖 Docs: &lt;a href="//upsec.co/docs"&gt;upsec.co/docs&lt;/a&gt;&lt;br&gt;
🚀 Product Hunt: &lt;a href="//producthunt.com/posts/upsec"&gt;producthunt.com/posts/upsec&lt;/a&gt;&lt;br&gt;
If you've dealt with webhook reliability issues, I'd love to hear your story. What providers give you the most trouble? What features would you want in a webhook gateway?&lt;/p&gt;

&lt;p&gt;If this was helpful, consider giving UpSec an upvote on Product Hunt — it really helps! 🙏&lt;/p&gt;

</description>
      <category>webhooks</category>
      <category>opensource</category>
      <category>typescript</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
