Skip to content

Commit 722d1eb

Browse files
committed
fix(attio): log debug message when signature verification is skipped
1 parent 1df1933 commit 722d1eb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apps/sim/lib/webhooks/processor.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,11 @@ export async function verifyProviderAuth(
601601
if (foundWebhook.provider === 'attio') {
602602
const secret = providerConfig.webhookSecret as string | undefined
603603

604-
if (secret) {
604+
if (!secret) {
605+
logger.debug(
606+
`[${requestId}] Attio webhook ${foundWebhook.id} has no signing secret, skipping signature verification`
607+
)
608+
} else {
605609
const signature = request.headers.get('Attio-Signature')
606610

607611
if (!signature) {

0 commit comments

Comments
 (0)