Repository navigation
fix(twilio): redact webhook turnToken diagnostics - #102089
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 9, 2026, 6:07 AM ET / 10:07 UTC. Summary PR surface: Source +12, Tests +80. Total +92 across 4 files. Reproducibility: yes. Source inspection of current main shows invalid Twilio signatures return and log the unredacted verification URL, and the PR body provides live adapter output for the redacted failure path. Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land the diagnostic-only redaction after exact-head maintainer handling, keeping original URLs for Twilio signature verification and replay keys while redacting failed diagnostic output. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection of current main shows invalid Twilio signatures return and log the unredacted verification URL, and the PR body provides live adapter output for the redacted failure path. Is this the best way to solve the issue? Yes. Redacting only after all signature and replay checks fail keeps Twilio verification on the original URL while preventing failed diagnostics from exposing query values. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 4be6fa7413af. Label changesLabel justifications:
Evidence reviewedPR surface: Source +12, Tests +80. Total +92 across 4 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (6 earlier review cycles)
|
70a5c9e to
d36fb89
Compare
|
Land-ready after maintainer rewrite and native prepare validation. What changed:
Evidence:
No webhook configuration, routing, or signature contract changed. |
|
Merged via squash.
|
* fix(twilio): redact webhook turnToken diagnostics * chore(twilio): rerun ci * fix(twilio): contain webhook URL diagnostics Co-authored-by: Alix-007 <[email protected]> --------- Co-authored-by: Peter Steinberger <[email protected]>
* fix(twilio): redact webhook turnToken diagnostics * chore(twilio): rerun ci * fix(twilio): contain webhook URL diagnostics Co-authored-by: Alix-007 <[email protected]> --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit b37476a)
What Problem This Solves
Twilio signature failures included the full verification URL in diagnostics. Because Twilio signs the exact callback URL, including query parameters, that URL can contain
turnTokenor other sensitive callback state. The provider also logged the same URL twice.Why This Change Was Made
The maintainer rewrite keeps signature verification and diagnostic rendering as separate contracts:
<invalid verification URL>placeholder rather than a regex fallback that could echo secrets;This is the bounded fix at the webhook-security owner boundary. It does not change Twilio signature inputs, webhook routing, call state, or provider configuration.
User Impact
Failed Twilio webhook diagnostics remain useful without exposing callback tokens or other URL values in logs. Valid signatures, including signatures over callback URLs with query parameters, continue to pass unchanged.
Evidence
d36fb89f479389490be907bb60b2b4773ecf4203; no Tailscale, instance profile, or hydrated credentials.run_c43be9d22666: focused webhook-security and Twilio provider suites, 2 files / 56 tests passed.run_9160006a7c56: extension/test typechecks, lint, and changed-file repository guards passed.git diff --check: clean.The root changelog is release-owned. Release-note context and contributor credit are retained here for @Alix-007.