fix(stepfunctions-tasks): tighten permissions in SubmitBatchJob to scoped job definitions - #38357
Conversation
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
d40204b to
273e1d3
Compare
…oped job definitions
273e1d3 to
3e4c5cd
Compare
|
Rebased onto latest |
Exemption RequestThis PR tightens IAM permissions in The change is fully covered by existing unit tests in Justification: Adding a new integration test (or modifying an existing one) for a permission-scoping change that does not alter the deployed resource shape or behavior would incur unnecessary CI cost and review latency without improving coverage. |
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
|
PRs without a linked issue will receive lower priority for review and merging. Please update the description to follow the PR template and include a line like |
Summary
Tighten IAM permissions in
SubmitBatchJobto scope job definition references instead of granting broad batch permissions.Problem
The
SubmitBatchJobtask was granting permissions that were broader than necessary, potentially allowing access to job definitions outside the intended scope.Fix
Restrict the IAM policy to only the specific job definition ARN passed to the task, following the principle of least privilege.
Security impact
Reduces blast radius by preventing the task role from interacting with unintended Batch resources.