mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
The EMR Serverless task arm wrote its action ("emr-serverless:" plus the API
name) and its ARNs (/applications/<id>, /jobruns/<id>) by hand, and skipped
the checks a direct request gets beside its own action: iam:PassRole on
StartJobRun's execution role, and emr-serverless:TagResource on the tags
CreateApplication and StartJobRun send.
A new RequestChecks reads a JSON request as the enforcement filter reads the
same request made directly: the action from IamAuthorizedActions, its
resources from RequestResources.ofBody, the request's tags on the action where
the tag-on-create table says it takes them, iam:PassRole on each role the
passed-roles table reads with iam:PassedToService, and the tagging action on
what a create makes. PassedRoles, TagOnCreate and RequestResources.created
gain a body form for it. The arm now hands RequestChecks the request the
integration sends EMR Serverless, so a regeneration of any of those tables
moves the task and the direct call together.