Files
floci/docs
Hector Ventura bd65477927 feat(stepfunctions): evaluate the execution role on SQS tasks (#7574)
* feat(stepfunctions): evaluate the execution role on SQS tasks

Under IAM enforcement an SQS task now requires the execution role to exist
and trust Step Functions, assumes the role its Credentials name, and checks
sqs:SendMessage on the queue as the role it ends up with. LambdaTaskAuthorizer
gains a general authorize() that later integrations map onto through
TaskPermissions; it reads any service's resource policy and accepts resource
* and an S3 ARN's empty account. Lambda, API Gateway and nested tasks keep
their own paths and errors.

TaskScheduled and LambdaFunctionScheduled record taskCredentials when a task
declares Credentials. With enforcement off they are read softly, so a RoleArn
that does not resolve is omitted and the task still runs.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>

* fix(stepfunctions): let a queue's policy decide SQS task and direct calls

SQS had no resource policy provider, so a task's call to a queue in another account could never be granted. Add one reading the queue's Policy attribute, which IAM enforcement and the task authorizer both read, and build a direct request's ARN from the account its QueueUrl names so the right queue's policy is read.

Credentials read only for history now tolerate only a resolution failure, and the Step Functions integration tests share one client.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>

---------

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-11-05 09:50:01 -06:00
..
2026-03-15 17:43:56 -05:00