Skip to content

Commit da3d336

Browse files
cursoragentiuwqyir
andcommitted
Fix webhook secret masking to always use 10 asterisks
Co-authored-by: toomas <[email protected]>
1 parent 00cd8eb commit da3d336

File tree

1 file changed

+1
-1
lines changed
  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/components

1 file changed

+1
-1
lines changed

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/components/WebhooksTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function maskWebhookSecret(secret: string): string {
3535
return secret;
3636
}
3737
const lastThreeChars = secret.slice(-3);
38-
const maskedPart = "*".repeat(Math.max(secret.length - 3, 8));
38+
const maskedPart = "*".repeat(10);
3939
return maskedPart + lastThreeChars;
4040
}
4141

0 commit comments

Comments
 (0)