Files
floci/src
Hector Ventura eb2872f578 fix(core): read ARNs and Step Functions integration ids in every partition (#4358)
P2 of the multi-partition initiative (#4272), the parse side. StatesIntegration
replaces the literal arn:aws:states::: integration ids the ASL executor and the
definition validator compared against: the CDK builds them as
arn:${Aws.PARTITION}:states:::, so a China or GovCloud state machine never
matched (aws-cdk task-utils.ts:36). Only AWS's three suffixes (.sync, .sync:2,
.waitForTaskToken) parse, and a dispatch that does not read the suffix accepts
none, so sqs:sendMessage.bogus stays unsupported as it was. AwsArnUtils
.resourceIfArnFor replaces the 16 startsWith("arn:aws") probes, so bucket
policies, S3 resource paths, assumed-role principals, SAML role pairs, EKS
instance profiles, Security Hub, OAM and CloudTrail selectors recognise China,
GovCloud and ISO ARNs, and an assumed role's underlying role is rebuilt in the
session's own partition. Where a check used to pin arn:aws: and thereby the
commercial partition, it now pins the partition explicitly: a root principal
matches only a caller of the same partition and account, and a Security Hub
resource ARN must carry the request's partition. The 25 hand-rolled partition
alternations in regexes collapse onto AwsArnUtils.PARTITION_REGEX. The
partition-literal baseline drops from 270 to 195 gated occurrences.

Part of #4272
2026-09-24 21:03:38 -04:00
..