Skip to content

Commit 720b203

Browse files
committed
fix(webhooks): warn when Twilio webhook has no auth token configured
Addresses PR review: when no auth token is set, verifyTwilioAuth skips signature verification (optional-secret convention). Log a warning so operators can detect a webhook running unauthenticated.
1 parent 0f7bf96 commit 720b203

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

apps/sim/lib/webhooks/providers/twilio-signature.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ export async function verifyTwilioAuth(
7878
const authToken = providerConfig.authToken as string | undefined
7979

8080
if (!authToken) {
81+
logger.warn(
82+
`[${requestId}] ${providerLabel} webhook has no auth token configured — accepting request without signature verification. Configure an auth token to require signed requests.`
83+
)
8184
return null
8285
}
8386

0 commit comments

Comments
 (0)