惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

罗磊的独立博客
S
Secure Thoughts
C
Check Point Blog
D
DataBreaches.Net
V
V2EX
The GitHub Blog
The GitHub Blog
博客园 - Franky
博客园_首页
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Y
Y Combinator Blog
Last Week in AI
Last Week in AI
H
Help Net Security
WordPress大学
WordPress大学
酷 壳 – CoolShell
酷 壳 – CoolShell
宝玉的分享
宝玉的分享
A
About on SuperTechFans
月光博客
月光博客
Google DeepMind News
Google DeepMind News
小众软件
小众软件
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
F
Fortinet All Blogs
Blog — PlanetScale
Blog — PlanetScale
T
Tailwind CSS Blog
N
Netflix TechBlog - Medium
GbyAI
GbyAI
G
Google Developers Blog
P
Proofpoint News Feed
Recorded Future
Recorded Future
C
CXSECURITY Database RSS Feed - CXSecurity.com
MyScale Blog
MyScale Blog
T
Threatpost
V
Vulnerabilities – Threatpost
AI
AI
Cyberwarzone
Cyberwarzone
B
Blog RSS Feed
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
L
LINUX DO - 最新话题
L
LangChain Blog
Webroot Blog
Webroot Blog
AWS News Blog
AWS News Blog
云风的 BLOG
云风的 BLOG
W
WeLiveSecurity
Latest news
Latest news
U
Unit 42
C
CERT Recently Published Vulnerability Notes
Cisco Talos Blog
Cisco Talos Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
S
Security @ Cisco Blogs
Forbes - Security
Forbes - Security

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
Introducing WebhookRelay: A Modern .NET Open Source Webhook Management Platform
Vikrant Baga · 2026-04-24 · via DEV Community

Building a webhook relay infrastructure with ASP.NET Core 8 and React 19


Introduction

I'm excited to announce WebhookRelay — a self-hosted, open-source webhook management platform built specifically for the (beta) .NET ecosystem. After years of working with webhook integrations and seeing the limitations of existing solutions, I set out to create a modern, alternative that leverages the latest .NET technologies while providing complete control and flexibility.

webhook relay infrastructure with ASP.NET Core 8 and React 19

The Problem with Webhooks

Webhooks are the backbone of modern integrations, but managing them at scale presents several challenges:

  1. Signature Verification: Each provider (Stripe, GitHub, Twilio) uses different HMAC algorithms
  2. Reliability: Network failures require intelligent retry mechanisms
  3. Observability: Debugging failed webhooks can be time-consuming
  4. Multi-System Coordination: Fan-out to multiple targets with routing rules
  5. Vendor Lock-in: Commercial solutions can be expensive and inflexible

The Solution: WebhookRelay

WebhookRelay addresses these challenges with a comprehensive feature set:

Core Features

Multi-Provider Ingestion

  • Stripe: Automatic signature verification via Stripe-Signature header
  • GitHub: X-Hub-Signature-256 verification out of the box
  • Twilio: Built-in support for Twilio webhooks
  • Generic: Custom HMAC-SHA256 verification for any provider

Security First

  • Constant-time HMAC comparison to prevent timing attacks
  • Complete audit log of all inbound requests (including rejected events)
  • Per-endpoint secret management

Intelligent Delivery

  • Fan-out: Forward one webhook to multiple target URLs simultaneously
  • Routing Rules: JSON path conditions (equals, contains, starts_with, exists, etc.)
  • Automatic Retries: Exponential backoff with configurable max attempts
  • Dead-letter Queue: Failed events stored for manual inspection

Event Management

  • Duplicate Detection: Provider event IDs deduplicated per endpoint
  • Event Replay: Re-deliver any stored event on demand
  • Real-time Dashboard: Live updates via SignalR with syntax-highlighted payloads

Technology Stack

WebhookRelay leverages cutting-edge .NET and frontend technologies:

Backend

  • ASP.NET Core 8 Web API
  • Entity Framework Core 8 for data access
  • System.Threading.Channels for high-performance in-process queuing
  • Serilog for structured logging

Frontend

  • React 19 with Vite 8
  • TypeScript for type safety
  • shadcn/ui + Tailwind CSS for modern UI
  • TanStack Query v5 for server state management
  • React Router v7 for navigation
  • React Hook Form + Zod for forms

Real-time Features

  • ASP.NET Core SignalR for live dashboard updates
  • WebSocket connections for instant event notifications

Architecture Overview

Clean Architecture

WebhookRelay.sln
├── src/
│   ├── WebhookRelay.Api/          # ASP.NET Core Web API + background workers
│   ├── WebhookRelay.Core/         # Domain entities, interfaces (no external deps)
│   ├── WebhookRelay.Infrastructure/ # EF Core, HTTP delivery, verifiers
│   └── WebhookRelay.Shared/       # DTOs shared between API and frontend
├── dashboard/                      # React 19 frontend
├── tests/                          # Comprehensive test suite
└── deploy/                         # Docker Compose deployment

Enter fullscreen mode Exit fullscreen mode

Data Flow

  1. Ingest: Webhook received at /webhooks/:endpointId
  2. Verify: HMAC signature validation per provider
  3. Store: Event persisted to database with full payload
  4. Route: Apply routing rules to determine target endpoints
  5. Deliver: Fan-out to multiple targets with retry logic
  6. Monitor: Real-time dashboard updates via SignalR

Getting Started

Prerequisites

  • .NET 8 SDK
  • Node.js 22+

Quick Start

# Clone the repository
git clone https://github.com/vrbagal/webhook-relay.git
cd webhook-relay

# Start the API (uses SQLite by default)
cd src/WebhookRelay.Api
dotnet run
# API available at https://localhost:5001

# Start the dashboard
cd dashboard
npm install
npm run dev
# Dashboard available at http://localhost:3000

Enter fullscreen mode Exit fullscreen mode

Configuration

The project supports multiple databases out of the box:

SQLite (Default - Zero Config)

{
  "DatabaseProvider": "Sqlite",
  "ConnectionStrings": {
    "DefaultConnection": "Data Source=webhookrelay.db"
  }
}

Enter fullscreen mode Exit fullscreen mode

SQL Server

{
  "DatabaseProvider": "SqlServer",
  "ConnectionStrings": {
    "DefaultConnection": "Server=localhost;Database=WebhookRelay;Trusted_Connection=True;"
  }
}

Enter fullscreen mode Exit fullscreen mode

PostgreSQL

{
  "DatabaseProvider": "PostgreSQL",
  "ConnectionStrings": {
    "DefaultConnection": "Host=localhost;Database=webhookrelay;Username=postgres;Password=yourpassword"
  }
}

Enter fullscreen mode Exit fullscreen mode

Docker Deployment

cd deploy
docker compose up --build

Enter fullscreen mode Exit fullscreen mode

Services started:

  • api: ASP.NET Core API on port 5000
  • dashboard: React app served via nginx on port 80
  • db: SQL Server 2022 (when using SqlServer profile)

Using WebhookRelay

Sending Webhooks

# Compute signature
SECRET="your-signing-secret"
PAYLOAD='{"event":"payment.completed","amount":100}'
SIG=$(echo -n "$PAYLOAD" | openssl dgst -sha256 -hmac "$SECRET" | awk '{print $2}')

# Send webhook
curl -X POST https://localhost:5001/webhooks/<endpoint-id> \
  -H "Content-Type: application/json" \
  -H "x-webhook-signature: sha256=$SIG" \
  -H "x-webhook-event: payment.completed" \
  -H "x-webhook-id: evt-$(date +%s)" \
  -d "$PAYLOAD"

Enter fullscreen mode Exit fullscreen mode

Provider-Specific Sending

Stripe: Just send the original Stripe webhook — it's automatically verified
GitHub: Send as-is — the X-Hub-Signature-256 header is verified automatically

API Endpoints

Endpoint Management

Method Path Description
GET /api/endpoints List all endpoints
POST /api/endpoints Create endpoint
GET /api/endpoints/:id Get endpoint details
PUT /api/endpoints/:id Update endpoint
DELETE /api/endpoints/:id Delete endpoint

Target Management

Method Path Description
POST /api/endpoints/:id/targets Add delivery target
DELETE /api/endpoints/:id/targets/:targetId Remove target

Event Management

Method Path Description
GET /api/events List events (paginated, filterable)
GET /api/events/:id Get event with delivery attempts
POST /api/events/:id/replay Replay event

Real-World Use Cases

E-commerce Integration

// Stripe webhook handler with routing rules
{
  "endpoint": "stripe-payments",
  "targets": [
    {
      "url": "https://api.myapp.com/payments",
      "rules": [{ "path": "$.type", "operator": "equals", "value": "payment_intent.succeeded" }]
    },
    {
      "url": "https://analytics.myapp.com/events",
      "rules": [{ "path": "$.type", "operator": "contains", "value": "payment" }]
    }
  ]
}

Enter fullscreen mode Exit fullscreen mode

GitHub Automation

// GitHub webhook fan-out for CI/CD
{
  "endpoint": "github-repo",
  "targets": [
    { "url": "https://ci.example.com/webhook" },
    { "url": "https://notifications.example.com/github" },
    { "url": "https://analytics.example.com/events" }
  ]
}

Enter fullscreen mode Exit fullscreen mode

Multi-System Coordination

  • CRM Integration: Forward webhooks to Salesforce, HubSpot, and custom systems
  • Notification Systems: Send to Slack, email, and SMS simultaneously
  • Analytics: Route events to multiple analytics platforms

Dashboard Features

The React dashboard provides comprehensive webhook management:

  1. Real-time Monitoring: Live updates via SignalR
  2. Payload Inspection: Syntax-highlighted JSON viewing
  3. Event Replay: One-click re-delivery of failed events
  4. Endpoint Management: Create, update, delete endpoints and targets
  5. Routing Rules: Visual rule builder with JSON path support
  6. Delivery Analytics: Success/failure rates and retry statistics

Performance & Scalability

In-Process Queue

WebhookRelay uses System.Threading.Channels for high-performance, in-process queueing:

  • Zero external dependencies
  • Excellent performance characteristics
  • Built-in backpressure handling

Database Flexibility

  • SQLite: Perfect for development and small deployments
  • SQL Server: Enterprise-grade with full transaction support
  • PostgreSQL: Open-source with advanced features

Deployment Options

  • Self-hosted: Complete control on your infrastructure
  • Docker: Easy containerization and orchestration
  • Cloud: Deploy to Azure, AWS, or any cloud provider

Security Considerations

HMAC Verification

Each provider's signature algorithm is implemented exactly:

  • Stripe: Stripe-Signature header with timestamp and signature
  • GitHub: X-Hub-Signature-256 with HMAC-SHA256
  • Generic: Custom x-webhook-signature header

Constant-Time Comparison

All signature verifications use constant-time comparison to prevent timing attacks.

Secret Management

  • Per-endpoint secret configuration
  • Environment variable support
  • Azure Key Vault integration ready

Testing Strategy

Unit Tests

  • Core business logic
  • Signature verification algorithms
  • Routing rule evaluation

Integration Tests

  • API endpoints with WebApplicationFactory
  • Database operations
  • External HTTP delivery

End-to-End Tests

  • Full webhook flow from ingestion to delivery
  • Dashboard functionality
  • Docker deployment

Future Roadmap

Immediate (v1.1)

  • [ ] Enhanced documentation with tutorials
  • [ ] SDK for popular languages (Python, Node.js, Go)
  • [ ] Plugin system for custom providers
  • [ ] Advanced analytics and reporting

Medium-term (v1.2)

  • [ ] Multi-tenancy support
  • [ ] Webhook transformation (modify payload before delivery)
  • [ ] Advanced routing with regex support
  • [ ] Rate limiting per endpoint

Long-term (v2.0)

  • [ ] Managed cloud service option
  • [ ] Marketplace for pre-built integrations
  • [ ] Enterprise features (SSO, audit logs, SLA)
  • [ ] Machine learning for anomaly detection

Contributing

WebhookRelay is an open-source project and welcomes contributions:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Areas for Contribution

  • Documentation: Tutorials, API docs, deployment guides
  • Testing: Unit tests, integration tests, E2E tests
  • Features: New providers, advanced routing, analytics
  • UI/UX: Dashboard improvements, accessibility

Conclusion

WebhookRelay represents a modern approach to webhook management, built from the ground up for .NET developers who want complete control over their integration infrastructure. Whether you're building a multi-tenant SaaS application, integrating multiple payment providers, or coordinating complex business workflows, WebhookRelay provides the foundation you need.

Key Takeaways

  1. Modern Stack: ASP.NET Core 8, React 19, latest technologies
  2. Self-Hosted: Complete control without vendor lock-in
  3. Open Source: MIT license, community-driven development

Next Steps

  1. Try it out: Clone the repo and run locally
  2. Star the project: Show support on GitHub
  3. Contribute: Help build the future of webhook management
  4. Share: Spread the word in .NET communities

Ready to get started? Visit the GitHub repository and start managing your webhooks like a pro!

For more .NET development content, follow me on LinkedIn.


Built with ❤️ by Vikrant Bagal