Files
floci/docs
Priamo Germosen cd7017c6a5 fix(iam): read the stored tags of Transfer Family servers and users and SES resources (#9832)
The request-resources table gives resource-tag keys to Transfer Family's server and user types and to SES's
identity, configuration set, template, contact list, custom verification email template, dedicated IP pool and
tenant types, but neither namespace gave IAM the tags it stores, so an aws:ResourceTag condition on one of their
actions never matched: an Allow scoped to a tag never applied and a Deny scoped to one never refused.

TransferStoredResourceArns reads TransferService.heldTags: the tags the server or user the ARN names holds, in the
ARN's account and Region, read in place under every key the handlers find it under (its Region's, or one from
before keys named the Region or the account), matched on the whole ARN, and copied. AccountAwareStorageBackend gains
getForAccountWithLegacyKeys for that: the value getForAccountMigratingLegacyKeys returns, under the same keys and
owner check and the same monitor, with nothing moved. It writes nothing: the handlers' lookups move a resource under an old
key to its Region's key, and the tag read stores the tags it merges, neither of which a read made for IAM may do.

SesStoredResourceArns reads SesService.storedTags: the tags ListTagsForResource reads for the resource of each
taggable kind, in the ARN's account and Region; none for an ARN of another account, with no Region, or naming no
resource SES holds. Each domain reads it in place (SesTaggable.storedTags, through
AccountAwareStorageBackend.readInAccount): the lookup the tag operations make moves a pre-multi-account entry into the
caller's account, which a read made before the request is allowed must not do. Each tag change stores a new list, so
the copy is of one whole set. A tenant's ARN ends in the id SES mints, which a request naming the tenant by its name
(GetTenant, DeleteTenant) leaves out, so SesStoredResourceArns.find resolves the name to the stored tenant's ARN,
read in place too.

StoredResourceTagIamIntegrationTest checks a caller allowed transfer:DescribeServer and ses:GetConfigurationSet
and ses:GetTenant only on resources tagged team=blue reaches the blue one and is refused the red one; TransferServiceTest and
SesServiceStoredTagsTest check the reads, their copies and the ARNs that name nothing.
2026-11-30 09:13:57 -04:00
..
2026-03-15 17:43:56 -05:00