mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 14:10:49 -05:00
* fix(efs): report the zone id EC2 reports for the same zone EFS derived its own availability-zone id (use1-az1) by splitting the region on hyphens, while EC2 publishes <region>-az<n> for subnets and zones, so a mount target and its subnet disagreed. The abbreviation also only worked for three-part regions: us-gov-west-1a and eusc-de-east-1a kept the whole region. EFS now takes the id from the helper EC2 and VPC flow logs use. Also drops an allowlist pattern for flow-log region abbreviations that matches no source line since flow logs moved to the same helper. Signed-off-by: Hector Ventura <hectorvent@gmail.com> * fix(ec2): give availability-zone ids AWS's shape, shared by EC2, flow logs and EFS EC2 published <region>-az<n> as a zone id and EFS its own abbreviation, so a mount target and its subnet disagreed and neither matched AWS in every region. AvailabilityZoneIds in core.common now derives the id for all three: AWS's short region prefix and -az<n> (use1-az1, apne1-az1, usgw1-az1, cnn1-az1). The prefix rule is attested for the commercial, China and GovCloud regions; AWS publishes no zone id for an ISO or EUSC region, so those keep the whole region as the prefix instead of a guessed one. Zone a is still az1, b az2, and so on: AWS maps names to ids per account, which Floci does not model. CreateSubnet resolves AvailabilityZoneId in the new shape and refuses the old one. Signed-off-by: Hector Ventura <hectorvent@gmail.com> --------- Signed-off-by: Hector Ventura <hectorvent@gmail.com>
25 lines
1.3 KiB
YAML
25 lines
1.3 KiB
YAML
# Literals partition_literals.py must not count. Every entry needs a reason a reviewer can
|
|
# check; the audit prints how many occurrences each entry excuses.
|
|
#
|
|
# files: the whole file is exempt (path relative to the repo root)
|
|
# patterns: a Python regex matched against the full source line of the literal
|
|
|
|
files:
|
|
- path: src/main/java/io/github/hectorvent/floci/services/route53/Route53VpcRegions.java
|
|
reason: the VPCRegion enum transcribed verbatim from the Route 53 model.
|
|
- path: src/main/java/io/github/hectorvent/floci/core/common/AwsNamespaces.java
|
|
reason: XML namespace URIs (http://s3.amazonaws.com/doc/2006-03-01/ and the Query
|
|
namespaces) are identifiers, not hosts, and are byte-identical in every partition;
|
|
minio and the China/GovCloud SDKs emit the same strings.
|
|
|
|
patterns:
|
|
- regex: amazonaws\.com/doc/\d{4}-\d{2}-\d{2}/
|
|
reason: an XML namespace URI outside AwsNamespaces (CloudFormation keeps its own);
|
|
the same partition-invariant identifier class as that file.
|
|
- regex: acs\.amazonaws\.com/groups/
|
|
reason: S3 canned-ACL grantee URIs (AllUsers, AuthenticatedUsers, LogDelivery) are
|
|
partition-invariant identifiers in the S3 model.
|
|
- regex: \bPARTITION_REGEX\b
|
|
reason: the line builds its regex from AwsArnUtils.PARTITION_REGEX, which is the
|
|
sanctioned way to recognise an ARN in any partition.
|