mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
* fix(core): mint every regionless ARN in its partition and gate blank-region Arn.of calls Part of #4272 (P10a). Arn.of derives the partition from the region, so a blank region always minted arn:aws:, and the partition literal gate could not see it because it is a call shape, not a literal. Sixteen call sites did this, and three gated literals were left: - RdsSigV4Validator built the rds-db:connect resource as arn:aws:rds-db:, so a China IAM policy naming arn:aws-cn:rds-db: never matched and IAM auth to an RDS proxy was denied there. - CloudFront, Organizations, Cost Explorer anomaly monitors and the SSO portal role ARN now take the request's partition (RegionResolver injected). - S3 bucket ARNs (event notifications, AWS::S3::Bucket Arn, Cost Explorer S3 usage) take the bucket's or the stack region's partition; the Lambda CFN default role, the Kinesis ESM invokeIdentityArn, the EC2 launch template CreatedBy and the SQS AddPermission root principal take their own region's. - FlinkContainerManager's fallback key goes through Arn.of, and the CloudFormation S3 TemplateURL host check accepts every partition's DNS suffix. partition_literals.py gains a gated, code-scoped blank-region-arn category (Arn.of with a "" or null region, comments excluded). The baseline is now empty, so any new literal or blank-region mint fails Partition Literals. * fix(core): scan blank-region Arn.of calls across lines and skip text blocks Greptile on #4787: the blank-region-arn category ran per line, so a call whose region argument sits on the next line escaped it, and text-block contents were kept, so an example inside one would count as a call against the empty baseline. code_text now blanks comments and text blocks over the whole source and the code categories match across lines, reporting the line the call starts on.