Files
floci/docs/services
Priamo Germosen 2d977bc48c fix(iam): check Amazon AppIntegrations by its generated routes, resources and tags (#10108)
Under enforcement a REST route no vendored model names runs unchecked, and Amazon AppIntegrations was among them: any
caller could create, read, update, delete or tag an event integration or a data integration. AppIntegrations' model
routes are vendored (regen_rest_routes.MODELS, signed app-integrations), so each request is checked as its operation's
action, and app-integrations joins the generated tables of request resources and tags on create: an event integration by
the name its path or body gives, a data integration by its id, and the tags a create carries.

AppIntegrationsStoredResourceArns finds the data integration CreateDataIntegration names by its name, as the table asks
(findByMembers), its ARN carrying the id AppIntegrations mints. It finds nothing by the value an ARN is filled with
(find), so a request naming a data integration by its id is checked on that id, as its handler reads it, never on
another integration whose name is that id. It answers the tags AppIntegrations holds on an event or data integration,
read in place in the ARN's account and Region, for the integration's own ARN alone, as the tag routes find it, which
an aws:ResourceTag condition reads. Floci serves no applications, so there is no application to find.
StoredResourceArns names it.

A namespace the table reads is served on its tag routes only at the ARN its path encodes, so
AppIntegrationsIntegrationTest's tag calls send the ARN encoded, as the SDKs do, rather than with its '/' raw.

IamRestRouteEnforcementIntegrationTest checks that with no grant an event integration's read is refused, that a grant on
one reads it and refuses another, that an aws:ResourceTag condition reads its tags, that a CreateEventIntegration
carrying tags needs app-integrations:TagResource on the event integration it makes, that CreateDataIntegration is
checked on the data integration of the name it gives, and that GetDataIntegration by an id is checked on that
integration, not on another named like the id. AppIntegrationsServiceTest checks that another partition's ARN reads
no tags.
2026-12-03 17:37:54 -04:00
..