Files
floci/tools/aws
Priamo Germosen 3027145979 fix(iam): check CloudWatch Logs requests on the resources they name, from the generated table (#9088)
CloudWatch Logs was built by hand: ResourceArnBuilder built a group or
stream ARN for six operations and resolved the tag operations' ARN
itself, every other Logs operation was checked on *, and only the
vended-log delivery operations and PutDestination were read from the
request resources table, through READ_IN_HAND_BUILT. logs moves from
HAND_BUILT to NAMESPACES, so the table gives each of its 118
operations the log group, stream, destination or delivery resource its
request names, from botocore and the Service Reference: PutLogEvents,
FilterLogEvents, metric and subscription filters, StartQuery and the
other operations on a group or stream are checked on it, no longer on
*. READ_IN_HAND_BUILT, whose only entries were Logs', goes with its
checks and tests. ResourceArnBuilder's buildLogResources and the
filter's Logs case go; the tagged CreateLogGroup check reads the
table's bare group ARN, which the evaluator already matches with or
without the trailing :* for the group's management actions.
CloudWatchLogsStoredResourceArns answers the stored tags of a log
group, a destination and the delivery family; IamConditionContextResolver
keeps only the request tags of Logs' create and tag calls. Log group
tag writes give the group a new map under the lock creating and
deleting a group take, so one racing a delete cannot put the group
back, and its tags field is volatile. Only Logs' operations change in
the table.
2026-11-20 16:21:08 -04:00
..