mirror of
https://github.com/floci-io/floci.git
synced 2026-11-25 06:47:41 -05:00
A request whose SigV4 scope named a <partition>-global pseudo-region (aws-cn-global) kept the label as its region, so regional services stored state under it and minted ARNs such as arn:aws-cn:sqs:aws-cn-global:... for a region that does not exist. AWS never signs with a pseudo-region: endpoints.json maps each to a real credential scope region. RegionResolver now serves such a scope as the partition's implicit global region (aws-cn-global becomes cn-northwest-1) wherever it reads the region from a request. With floci.partitions.allow-unknown-regions in a non-commercial deployment, an unknown label was scoped to the deployment's partition but RegionResolver.buildArn minted it as aws. buildArn now uses the same partition as the request. ARNs built directly with Arn.of keep the commercial fallback, which partitions.md now states.