Repository navigation
fix: pin Plivo callback URLs to public webhook path [AI] - #112559
Conversation
|
clawsweeper re-review |
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: fix: pin Plivo callback URLs to public webhook path [AI] This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
|
ClawSweeper proof for current head Behavior proved: Plivo callback handling keeps the configured public webhook path as the trusted path for verification and later call-control transfer URLs. Environment: local PR checkout using the real Plivo provider and webhook verifier; outbound Plivo API call was stubbed so no live provider credentials or external phone call were used. GitHub Actions CI reruns are green for the same head. Command/artifact:
Evidence:
Compatibility/operator note: this changes only Plivo Live gaps: no live Plivo credentials or public phone-call callback were available in this environment, so the external Plivo service was represented by a stub at the API boundary while the OpenClaw provider and verifier code paths were real. |
|
Verification before merge: Behavior addressed: Plivo callback handling now keeps the configured public webhook path as the trusted path for verification and later call-control transfer URLs.
Regression Risk: Best fix verdict: best. The fix is at the Plivo provider/verifier boundary where the trusted callback path is derived, which avoids adding broader server routing policy or a runtime fallback that would preserve the same path-confusion behavior. User behavior change: |
|
Codex review: needs maintainer review before merge. Reviewed July 22, 2026, 12:23 PM UTC. Summary PR surface: Source -3, Tests +80. Total +77 across 4 files. Reproducibility: Yes, source inspection gives a high-confidence reproduction path: current main copies the request pathname over configured Plivo Review metrics:
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Risk before merge
Maintainer decision needed
Next step before merge
Security Review detailsBest possible solution: Land the focused Plivo fix after maintainer acknowledgement that Do we have a high-confidence way to reproduce the issue? Yes, source inspection gives a high-confidence reproduction path: current main copies the request pathname over configured Plivo Is this the best way to solve the issue? Yes, this is the best narrow fix: both the verifier and later Plivo transfer URL builder need the same configured-path invariant. A host-only allowlist or verifier-only change would leave path drift in one side of the call-control flow. AGENTS.md: found_applied Codex review notes: model internal, reasoning high; reviewed against 74de1a2. Label detailsLabel justifications:
Evidence reviewedPR surface:
|
…blic path (#112800) * fix(voice-call): pin Twilio webhook verification to the configured public path buildTwilioVerificationUrl overwrote the configured publicUrl path with the incoming request path, so behind a path-rewriting reverse proxy the reconstructed verification URL no longer matched the URL Twilio signed and valid webhooks were rejected. Use the configured public path (keep the request query), mirroring the Plivo sibling fixed in #112559. Restores callback-path binding and adds proxy-prefix accept + local-path reject regression tests. * fix(voice-call): pin Twilio verification to public URL path --------- Co-authored-by: Vincent Koc <[email protected]>
…blic path (openclaw#112800) * fix(voice-call): pin Twilio webhook verification to the configured public path buildTwilioVerificationUrl overwrote the configured publicUrl path with the incoming request path, so behind a path-rewriting reverse proxy the reconstructed verification URL no longer matched the URL Twilio signed and valid webhooks were rejected. Use the configured public path (keep the request query), mirroring the Plivo sibling fixed in openclaw#112559. Restores callback-path binding and adds proxy-prefix accept + local-path reject regression tests. * fix(voice-call): pin Twilio verification to public URL path --------- Co-authored-by: Vincent Koc <[email protected]>
What Problem This Solves
Fixes an issue where Plivo voice-call callbacks could reuse an accepted request path when building later call-control callback URLs, even when operators configured a public webhook URL with the intended path.
Why This Change Was Made
The Plivo provider now treats
publicUrlas the trusted callback path for both stored callback bases and webhook signature URL construction. Per-call query parameters still come from the incoming callback so existing Plivo answer, speech, and listen flows can continue to route normally.User Impact
Operators using a configured Plivo public webhook URL get stable follow-up Plivo callback URLs on that configured path. Host, auth, config, storage, provider selection, and non-Plivo voice-call behavior are unchanged.
Evidence
node scripts/run-vitest.mjs extensions/voice-call/src/providers/plivo.test.ts extensions/voice-call/src/webhook-security.test.tsAI-assisted.