feat(iam): check Lake Formation, Macie and Inspector by their REST routes (#7869)

Under enforcement a REST route no rule maps and no vendored model names
runs unchecked. Lake Formation, Macie and Inspector were among those:
of their 33 served routes only Inspector's Disable had a rule, added by
hand. AWS's Service Reference gives 32 of those 33 actions no resource
type, so each is authorized on "*", which is what the route join added
in #7461 already checks when the model is vendored.

Vendors the three models, so all 33 are checked as their operation's
action. A caller holding no grant for them is now refused where the
request used to pass; that is the behaviour change.

The 33rd is Macie's CreateMember, on the POST /members it shares with
Security Hub, which AWS authorizes on the member it makes and with the
tags it carries. A correction fills the member from account.accountId,
so a grant or a deny scoped to one member holds, and Macie joins the
tag-on-create table, so a request with tags needs macie2:TagResource
and its tags are what aws:RequestTag and aws:TagKeys see.

Inspector's Disable rule goes, since the vendored route gives the same
action. Macie and Inspector move into the table of request resources,
their reason for staying out (no model vendored) no longer being true.
Lake Formation has no resource type at all, so that table does not
list it.

Regenerating the tables also brings in es:UpdateClone, which AWS has
added since. Floci does not serve it.
This commit is contained in:
Priamo Germosen authored and GitHub committed 2026-11-10 22:47:39 -06:00
1 parent 0197723641
commit dfec9737a6
10 files changed
+731 -24

No files matched your search

@@ -288,9 +288,6 @@ public class IamActionRegistry {
rule("rds-data", "POST", "^/CommitTransaction/?$", "rds-data:CommitTransaction"),
rule("rds-data", "POST", "^/RollbackTransaction/?$", "rds-data:RollbackTransaction"),
// ── Amazon Inspector ───────────────────────────────────────────────────
rule("inspector2", "POST", "^/disable/?$", "inspector2:Disable"),
// ── API Gateway ────────────────────────────────────────────────────────
// The management API, v1 and v2, is authorized by HTTP method on the resource path:
// apigateway:GET, POST, PUT, PATCH or DELETE. Two operations have an action of their own. The