Core Concepts — Signing, SSRF Defense & Replay Protection
L3StableNuGet: v1.0.0Local HEAD: v2.1.0AOT: Full
EricksonLopez.Webhooks combines outbound delivery safety (EricksonLopez.Security.Network) with inbound signature and replay verification.
WebhookSigner&ITimestampedWebhookVerifier: Compute and verify constant-time HMAC-SHA256 webhook signatures bound to Unix timestamps (TimestampTolerance).WebhookSecret: Wraps raw webhook keys and redactsToString()("[REDACTED]") so secrets do not leak into logs.
SSRF Defense & Anti-Replay (SafeSocketsHttpHandlerFactory, IWebhookReplayDetector)
Section titled “SSRF Defense & Anti-Replay (SafeSocketsHttpHandlerFactory, IWebhookReplayDetector)”- SSRF enforcement:
EnableSsrfProtection = truevalidates resolved DNS targets and blocks private/loopback/link-local ranges (AllowPrivateNetworks = false,DangerousAllowInsecureHttp = falseby default). - Replay protection:
InMemoryWebhookReplayDetectorsuits single-node deployments;RedisWebhookReplayDetectorshares replay state across scaled-out receivers. - Native AOT JSON delivery:
WebhookSenderExtensions.SendAsync<T>(..., JsonTypeInfo<T>, ...)serializes outbound payloads via source-generatedJsonTypeInfo<T>with zero runtime reflection.