mirror of
https://github.com/floci-io/floci.git
synced 2026-12-04 02:28:08 -05:00
Under enforcement a REST route no vendored model names runs unchecked, and Amazon Detective was among them: any caller could enable an organization admin account, list a behavior graph's members or change its organization configuration with no permission at all. Detective's model routes are vendored (regen_rest_routes.MODELS, signed detective), so each request is checked as its operation's action, and detective joins the generated tables of request resources and tags on create: a behavior graph by the ARN its body gives, and an operation the Service Reference gives no resource type on *. Detective passes no role. Floci keeps no tags on a graph, so an aws:ResourceTag condition on one reads none, as before. IamRestRouteEnforcementIntegrationTest checks that with no grant, or a grant on another graph, listing a graph's members is refused, and that a grant on the graph lets the request through; and that listing the organization's administrator accounts, an operation the Service Reference gives no resource type, is refused until its action is granted on *. AWS added rds:CreateDataGroup to the Service Reference with two tagging actions, rds:AddTagsToDataGroup and rds:AddTagsToResource, and regen_iam_tag_on_create asked for a hand entry for it before reading its request, though the pinned botocore does not have the operation yet. It now asks only when the request carries tags, as which tagging action checks them is a question only for those, so the operation takes the derived verdict, not in botocore, and a model bump bringing it in asks again. The regenerated tag-on-create table takes AWS's other new actions too: ec2:CreateSecondaryNetworkAclAssociation and rds:RestoreDBClusterGroupToPointInTime.