IOSOR Learn
Validating Webhook URI Rewrites with Canary Traffic Before Cutover
Compare gateway URI rewrite fidelity, path and query preservation, signature parity, and canary DLR evidence before committing a migration cutover route.
Lead Telecom & Routing Architect · Lausanne, CH
Canary validation must prove that rewritten webhook URIs preserve path, query string, and signature bytes on live traffic, not just in unit tests. Route each canary event through the new gateway and byte-compare the received request against the pre-migration capture before any DNS or provider cutover.
1. Capture a rewrite fidelity baseline
Before canary: record 100 percent of current inbound webhook requests with method, raw path, raw query, and body bytes for a 24-hour window. Tag each capture with DLR status, delivery receipt code, and originating message ID so you can reconcile later. Store the raw signature header exactly as received. This baseline is the comparison oracle, so treat missing captures as a failed pre-check and delay the canary start rather than comparing against reconstructed samples.
2. Encode explicit pass and fail gates
Define canary acceptance numerically: URI path parity at 100 percent, query parameter order and percent-encoding parity at 100 percent, webhook latency p95 within +15 percent of baseline, and signature verification pass rate at 100 percent. DLR receipt match rate must be at least 99.5 percent per partner route. Set a hard rejection: any single signature mismatch on a production-shaped payload stops the canary.
3. Inspect path, query, and signature semantics
Run canary traffic through the new URI rewrite and compare against baseline in this order: raw path, raw query, then signature. Confirm that the rewriting layer does not decode and re-encode reserved characters, reorder query pairs, drop empty parameters, or alter trailing slashes. Re-verify signatures against the exact upstream secret ordering that the receiving endpoint will use after cutover.
4. Run canary stages and rollback thresholds
Use progressive stages: 1 percent of canary-eligible traffic for one hour, then 10 percent for four hours, then 50 percent for one hour. At each stage, recompute the four gates plus DLR receipts and webhook latency. Define rollback triggers before starting: any signature failure, path divergence above zero, p95 latency regression above threshold, or DLR match below 99.5 percent. Record each stage decision with timestamps and raw evidence.
5. Reconcile results and compare partner routes
After stages, publish a reconciliation table mapping each canary webhook to its original message ID, DLR outcome, signature result, and latency. Then compare route candidates by rewrite fidelity, since partners differ on encoding normalization and signature inputs. Confirm endpoint authentication parity before relying on verification results.
Start with IOSOR
Run the partner route comparison for this job in Decision Brief and open Decision Brief for the verification checklist. DLR receipt match rate must be at least 99.5 percent per partner route. Set a hard rejection: any single signature mismatch on a production-shaped payload stops the canary.
PAYG hold before first debit · Wallet stop-lines before production.
IOSOR takeaway
Before canary: record 100 percent of current inbound webhook requests with method, raw path, raw query, and body bytes for a 24-hour window. Confirm endpoint authentication parity before relying on verification results (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- Verifying Suppression List Portability Before Migration Cutover
Pre-cutover checks for opt-outs, bounces, complaints, and consent suppressions: export/import fidelity, DLR and webhook evidence, and partner route comparison.
- Stale Webhook Endpoint Replay Safety During Provider Migration
Decide if legacy webhook endpoints can replay or re-emit events after cutover without duplicating downstream actions, then compare partner webhook and DLR semantics.
- Sender ID Ownership Continuity Audit Before Cutover
Verify alphanumeric sender IDs, short codes, and originating numbers keep ownership proof and carrier registration parity across providers before any message leaves the new route.












