mirror of
https://github.com/floci-io/floci.git
synced 2026-11-26 23:29:28 -05:00
fix(iam): check VPC endpoint IDs in EC2 tag calls on their endpoint ARN (#9467)
CreateTags and DeleteTags checked a vpce- ID in their Resources list on `*`, because the generated table learns each ID prefix from botocore's examples and botocore gives none for VPC endpoints. A grant on one endpoint was refused and a deny on it never applied. fetch_ec2_id_examples.py copies the identifier examples of the EC2 API reference's CreateVpcEndpoint page into tools/aws/sources/ec2-id-examples.json, and the generator matches their XML paths to botocore's output shapes, which gives VpcEndpointId the vpce- prefix. That prefix joins botocore's in the one prefix map and reads only the tagging calls' generic list, so DeleteVpcEndpoints keeps its typed reader. The source names its namespace and pages, and the shared source verifier checks it against the live page. The regenerated table also takes in what the Service Reference added on 2026-11-25: CloudWatch's omni-slo, experiment and lookup types, which its tag operations now act on, Elastic Load Balancing's proxy type and the amplifygen3 namespace. Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
This commit is contained in:
1 parent
1206d32a03
commit
b012f4d6bf
12 files changed
+526
-38
No files matched your search
@@ -61,6 +61,9 @@ on:
|
||||
- 'src/main/resources/aws/iam-request-resources.json'
|
||||
- 'tools/aws/regen_iam_request_resources.py'
|
||||
- 'tools/aws/test_regen_iam_request_resources.py'
|
||||
- 'tools/aws/sources/ec2-id-examples.json'
|
||||
- 'tools/aws/fetch_ec2_id_examples.py'
|
||||
- 'tools/aws/test_fetch_ec2_id_examples.py'
|
||||
- 'src/main/resources/aws/dynamodb-condition-keys.json'
|
||||
- 'tools/aws/regen_dynamodb_condition_keys.py'
|
||||
- 'tools/aws/test_regen_dynamodb_condition_keys.py'
|
||||
|
||||
Reference in new issue
Block a user