mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 22:11:36 -05:00
EC2 network operations with resource-scoped policies were checked against `*`, and stored ownership conditions were missing. Every EC2 request is now read by the generated request-resource rules, its EC2 Query list names from botocore, so a resource-scoped policy applies to each EC2 operation whose request names a resource. A list a type's ARN variable names is the request's targets only when the request names nothing else, and the sg-, acl-, rtb- and eni- id prefixes come from botocore's examples. Each target is evaluated with its own stored tags, under every EC2 type's Service Reference resource-tag keys, and tags on creation are authorized separately. A forged SDK spelling cannot replace an EC2 wire value. ENI creation tags are kept in the regional tag index and stay in sync with CreateTags and DeleteTags. Closes #8286 Closes #8287 Closes #8291 Closes #8295 Closes #8300 Closes #8306