Skip to content

fix(iam): restrict DescribeExecution and StopExecution to specific state machine executions#697

Merged
zirkelc merged 1 commit intoserverless-operations:masterfrom
BANCS-Norway:fix-514-restrict-execution-iam
Mar 23, 2026
Merged

fix(iam): restrict DescribeExecution and StopExecution to specific state machine executions#697
zirkelc merged 1 commit intoserverless-operations:masterfrom
BANCS-Norway:fix-514-restrict-execution-iam

Conversation

@VirtueMe
Copy link
Copy Markdown
Collaborator

Summary

Fixes #514.

  • states:DescribeExecution and states:StopExecution were previously granted on *
  • They are now scoped to executions of the respective state machine (e.g. arn:...:execution:StateMachineName:*)
  • When the state machine ARN is dynamic (JSONPath StateMachineArn.$ or JSONata expression), falls back to * as before

Test plan

  • Existing tests updated to assert specific execution ARN instead of *
  • All 446 tests pass

🤖 Generated with Claude Code

…ate machine executions

Resolves serverless-operations#514. Previously, states:DescribeExecution and states:StopExecution
were granted on '*'. Now they are scoped to executions of the respective state
machine (e.g. arn:...:execution:StateMachineName:*).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 19, 2026

Open in StackBlitz

npm i https://pkg.pr.new/serverless-operations/serverless-step-functions@697

commit: 740592a

@zirkelc zirkelc merged commit f833e9f into serverless-operations:master Mar 23, 2026
3 checks passed
@VirtueMe VirtueMe deleted the fix-514-restrict-execution-iam branch March 23, 2026 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Restrict IAM Policy for states:StopExecution

2 participants