mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
The bundled managed policy catalog is the commercial one, so arn:aws-cn:iam::aws:policy/AdministratorAccess did not resolve and a China deployment listed commercial ARNs. Every other partition's catalog is now derived from the bundled data on first use and cached per partition: every arn:aws: inside a document takes the partition, as AWS's SAM translator does for managed policy ARNs (arn_generator.py), and the region-bearing kms:ViaService hosts (s3.*.amazonaws.com) take the partition's DNS suffix. Bare service principals and service-linked role paths are universal (#4633) and are left alone, as is the ::aws:policy/ owner slot. IamService resolves a managed policy under the partition its ARN names, so a China ARN resolves under any signing scope, and ListPolicies lists the catalog of the caller's partition. Partition literal baseline 4 -> 3. Part of #4272