Files
floci/docs
Priamo Germosen 933e8523e6 fix(iam): check AWS Network Firewall requests on the resources they name (#10200)
Network Firewall was one of the namespaces the request-resources table left unread ("a later batch"), so every request
of it was checked on *: a grant scoped to a firewall's ARN never matched, a deny scoped to one never held, and an
aws:ResourceTag condition read nothing. network-firewall joins the table now, so each request is checked on the
resources the Service Reference gives its action, read from the request: a firewall or a firewall policy by its ARN
or by the name its ARN ends in (firewall/<name>, firewall-policy/<name>, as Floci mints them), a rule group by its ARN,
and a tag call on its ResourceArn. A rule group named by its name and type alone is checked on *, and CreateRuleGroup
on the rule group its SourceMetadata.SourceArn names or else on *, as the generated table reads them.

The generator stopped on network-firewall. with_through reads CreateFirewall's VpcId as naming a firewall, as the
model's VpcEndpointAssociation structure holds a VpcId beside a FirewallArn, and with_made then marked that through
row made, a key the table's own check refuses on a through row. A resource a create names through another member
exists already, as one it names by its ARN does, so with_made no longer marks a through row; no other namespace's rows
change. The VpcId row stands as generated: Network Firewall answers no through lookup, so it adds no resource.

NetworkFirewallStoredResourceArns answers the tags Network Firewall keeps on the firewall, firewall policy or rule
group an ARN names, read in the ARN's account without moving it, which an aws:ResourceTag condition reads. It finds
nothing: the table builds a firewall's or a policy's ARN from its name, the ARN Floci mints.

IamRequestResourceEnforcementIntegrationTest checks that with no grant a firewall's read is refused, that a grant on
one firewall's ARN reads it by its name and by its ARN and refuses another, that a deny on one refuses it beside an
allow on every resource, and that an aws:ResourceTag condition reads the tags of a firewall and of a firewall policy a
tag call names. It also checks that a grant on one rule group's ARN reads it and refuses another, and the same rule
group named by its name and type, and that CreateFirewall is refused on a grant on every firewall alone and runs with
one on the firewall policy it names beside it. NetworkFirewallStoredTagsTest checks the stored tags of each kind, in
another account too.
2026-12-04 22:59:38 -04:00
..
2026-03-15 17:43:56 -05:00