Files
floci/docs
Priamo Germosen 631f2eface fix(cloudwatch): read every member of a Query list past a gap (#10177)
The CloudWatch Query handler read most lists by counting up from
member.1 and stopping at the first index the request left out, so
AlarmNames.member.1 and AlarmNames.member.3 deleted only the first
alarm, and a datum's third dimension, a GetMetricData query numbered 3
after 1, or an alarm metric numbered 2 were dropped without a word.

Every list now reads through AwsQueryLists, which takes every index the
request numbers, in order: Statistics, AlarmNames, AlarmTypes, TagKeys,
DashboardNames, Names, the alarm actions, Tags, dimensions, metric data
queries, alarm metrics, stream filters and statistics configurations. A
member without its key field is skipped rather than ending the list.

A list nested in each member is read from that member's own keys, which
AwsQueryLists.keysByMember groups in one pass, so a large request is not
scanned again for every member.

IAM reads the request the same way, so it checks what the handler acts
on: RequestResources reads a CloudWatch form's lists past a gap, as its
handler does, while ELBv2's stops at the first missing index, as its
handler does; and TagOnCreate reads CloudWatch's Tags through
AwsQueryLists, so a tag past a gap is a request tag, and a policy
requiring it no longer refuses an alarm that gets it.
2026-12-04 16:04:02 -04:00
..
2026-03-15 17:43:56 -05:00