Skip to content

Commit eced0f4

Browse files
committed
fix(data-drains): mirror webhook signingSecret min length in form gate
isComplete now requires signingSecret >= 32 to match the contract/runtime schema so the Save button can't enable on a value that will fail server-side.
1 parent 545a82d commit eced0f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/sim/ee/data-drains/destinations/registry.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ const webhookFormSpec: DestinationFormSpec<WebhookState> = {
485485
</FormField>
486486
</>
487487
),
488-
isComplete: (s) => s.url.length > 0 && s.signingSecret.length >= 8,
488+
isComplete: (s) => s.url.length > 0 && s.signingSecret.length >= 32,
489489
toDestinationBranch: (s) => ({
490490
destinationType: 'webhook',
491491
destinationConfig: {

0 commit comments

Comments
 (0)