mirror of
https://github.com/floci-io/floci.git
synced 2026-11-29 16:35:29 -05:00
Neither REST model was vendored in rest-routes.json and no rule mapped their routes, so under enforcement every Security Hub and GuardDuty request resolved to no action and was let through: a user with no policies could EnableSecurityHub or ListDetectors. - regen_rest_routes.MODELS reads securityhub and guardduty; rest-routes.json takes their routes from botocore 1.43.118, and iam-authorized-actions.json their actions of no resource type (securityhub 31, guardduty 70). Nothing else changed. - Both move from NOT_COVERED to NAMESPACES in the table of request resources: 228 operations, 3350 over 46 namespaces, no other entry changed. Security Hub's hub actions are checked on the caller's hub in the Region, hub/default, the ARN Security Hub gives it, and GuardDuty's detector and publishing destination operations on the detector their path names. - The generator gains a rule: an optional top-level member holding the ARN of a type whose format has no variable of its own also names that type when the request leaves it out. DescribeHub with no HubArn is so checked on hub/default, as AWS checks it, rather than on *, which would refuse a grant scoped to the hub. The rule changes no other operation. - Both move to NAMESPACES in the tag-on-create table too: an EnableSecurityHub carrying tags also needs securityhub:TagResource on the hub, a GuardDuty create carrying tags guardduty:TagResource, and the create is checked with aws:RequestTag and aws:TagKeys. Regenerated from the Service Reference retrieved 2026-11-11. It now also gives two Lake Formation operations, GetGlueFunctionSessionContext and GetTemporaryGlueFunctionCredentials, checked as lakeformation:GetDataAccess; they are left to the next sync, which --verify reports without failing. Macie is read by #7869. IamRestRouteEnforcementIntegrationTest checks both services: a caller with no grant refused, a grant scoped to the hub or detector let through, another Region's hub and another detector refused, and a deny holding under an allow on everything. IamTagOnCreateEnforcementIntegrationTest checks a hub enabled and a detector created with tags: TagResource needed, a request tag condition applied, and an untagged create needing its own action alone. All four fail on main. iam.md says so. Closes #7830