Skip to content

Commit 777b435

Browse files
committed
fix(sts): stop double-parsing assume_role session tags input
tags was declared as a 'json' block input, so the generic executor JSON.parse'd it before the switch-case handler ran — but that handler already converts the raw table-rows array (or a passthrough string) into the JSON string the sts_assume_role contract expects. Declaring it 'json' broke that conversion for non-string inputs. Reverted to 'string' so the handler's existing string/array disambiguation runs on the untouched raw value.
1 parent b94cf1d commit 777b435

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/sim/blocks/blocks/sts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ export const STSBlock: BlockConfig<STSBaseResponse> = {
356356
durationSeconds: { type: 'string', description: 'Session duration in seconds' },
357357
policy: { type: 'string', description: 'JSON IAM session policy to restrict permissions' },
358358
policyArns: { type: 'string', description: 'Comma-separated managed policy ARNs' },
359-
tags: { type: 'json', description: 'Session tags (Key/Value pairs) for ABAC' },
359+
tags: { type: 'string', description: 'Session tags (Key/Value pairs) for ABAC' },
360360
transitiveTagKeys: {
361361
type: 'string',
362362
description: 'Comma-separated tag keys that propagate through role chaining',

0 commit comments

Comments
 (0)