mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 23:59:27 -05:00
TaskPermissions decided a Step Functions aws-sdk:cloudformation task by six hand-written operation sets and looked stacks up through four handler methods of its own. With CloudFormation now read from iam-request-resources.json, a task goes through the generic requestPermissions, as the same request made directly is checked: CloudFormationStoredResourceArns, from the handler's storedResourceArns(), finds the stack or the stack set a name names, and a request naming none, whatever the task's input is, is checked on *, as the direct request is. The operations checked are the ones the table reads; one the handler does not serve is then its own UnknownAction. So a change set named by its ARN alone, a describeStackResources by PhysicalResourceId alone and a request with no StackName are checked on *, a stack or stack set CloudFormation does not hold with its id open, and a stack id it does not hold as given. The six sets, the arm's own lookups and the handler and service methods only they used are gone.