From 046f385f09a2a97fd577595e6ae0b28c6336e84d Mon Sep 17 00:00:00 2001 From: Dotta Date: Thu, 7 May 2026 09:03:17 -0500 Subject: [PATCH] Stabilize routine webhook secret paths Co-Authored-By: Paperclip --- server/src/services/routines.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/server/src/services/routines.ts b/server/src/services/routines.ts index 837c838aa60..b280119ac64 100644 --- a/server/src/services/routines.ts +++ b/server/src/services/routines.ts @@ -83,6 +83,10 @@ interface RoutineTriggerSecretRestoreMaterial extends RoutineTriggerSecretMateri triggerId: string; } +function routineWebhookSecretConfigPath(secretId: string) { + return `webhookSecret:${secretId}`; +} + function assertTimeZone(timeZone: string) { try { new Intl.DateTimeFormat("en-US", { timeZone }).format(new Date()); @@ -1009,7 +1013,7 @@ export function routineService( secretId: secret.id, targetType: "routine", targetId: routineId, - configPath: "webhookSecret", + configPath: routineWebhookSecretConfigPath(secret.id), }); return secret; @@ -1034,7 +1038,7 @@ export function routineService( consumerId: trigger.routineId, actorType: "system", actorId: null, - configPath: "webhookSecret", + configPath: routineWebhookSecretConfigPath(trigger.secretId), }); return value; }