Skip to content

Commit f5af963

Browse files
committed
fix(triggers): mark shared block-level API keys user-only to protect trigger secrets
The trigger credential fields (RevenueCat/Rootly apiKey, Twilio authToken) are user-only, but the same-id tool-level block fields were not, so the stored secret stayed reachable as an LLM-visible block parameter. Mark those block credential fields paramVisibility 'user-only' too (matching instantly.ts) so the secret is user-only on every path. accountSid is an identifier, not a secret, so it is left as-is.
1 parent 3625f27 commit f5af963

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

apps/sim/blocks/blocks/revenuecat.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export const RevenueCatBlock: BlockConfig<RevenueCatResponse> = {
4141
title: 'API Key',
4242
type: 'short-input',
4343
password: true,
44+
paramVisibility: 'user-only',
4445
placeholder: 'Enter your RevenueCat API key',
4546
required: true,
4647
},

apps/sim/blocks/blocks/rootly.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1650,6 +1650,7 @@ export const RootlyBlock: BlockConfig<RootlyResponse> = {
16501650
type: 'short-input',
16511651
placeholder: 'Enter your Rootly API key',
16521652
password: true,
1653+
paramVisibility: 'user-only',
16531654
required: true,
16541655
},
16551656

apps/sim/blocks/blocks/twilio.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export const TwilioSMSBlock: BlockConfig<TwilioSMSBlockOutput> = {
4444
type: 'short-input',
4545
placeholder: 'Your Twilio Auth Token',
4646
password: true,
47+
paramVisibility: 'user-only',
4748
required: true,
4849
},
4950
{

0 commit comments

Comments
 (0)