mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 14:10:49 -05:00
* 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>