Node.js Domain Verification — 3 Webhook Admission Gates for Tenant Mail
Keep customer-owned mail domains under customer authority; use platform-owned zones where the platform actually controls the sending identity. In either case, register a verification webhook and reconcile pending attempts on a schedule. A completion signal should advance the matching tenant's current attempt, with enough evidence to explain the decision afterward. TL;DR: For a Node.js B2B SaaS…
The report outlines a three-step process for webhook admission gates in Node.js B2B SaaS publishing, focusing on domain verification and mail authentication. The first step involves treating webhook completion as an input to a state transition, with the signature verification being crucial to prevent forged completions. The second step entails resolving the event against a stored tenant, domain, and verification attempt, rather than trusting tenant identifiers supplied by arbitrary callers.
The final step emphasizes the importance of storing an application-owned attempt identifier and zone owner, recording which input produced a transition, and making repeated completion inputs harmless. The report suggests using Infrai for the verification, webhook-registration, and scheduled-reconciliation leg due to its public discovery surface, runnable examples in 10 languages, and a single API key across its REST API.
Brief written by urgent.news; may contain errors — check the original.
Source: dev.to
More from Dev.to on urgent.news
Report a problem with this story
Get the day's news by email. Daily, weekly or monthly. Sign up