Files
floci/tools/partition/baseline.tsv
T
Hector Ventura 31b48c30be refactor(cloudformation): check ARNs through AwsArnUtils (#6486)
* refactor(rds): read and check ARNs through AwsArnUtils

RdsQueryHandler read the region of an instance ARN and rebuilt its subnet
group ARN by splitting it; those now use regionOrDefault and parse, and the
service-local regionFromRdsArn copy is gone. Six startsWith("arn:") probes in
RdsService become isArn where the result is the same for every input: replica
link names Floci stored itself, the instance and cluster list filters, the
tag-resource region default and the cluster lookup by reference.

The seven other probes stay. They treat any value starting with arn: as an
attempted ARN, so a malformed one gets InvalidParameterValue (or its own not
found error); isArn would send it down the identifier path and change the
error.

No behaviour change. The partition baseline drops from 144 to 136.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>

* refactor(cloudformation): check ARNs through AwsArnUtils

Seven startsWith("arn:") probes become AwsArnUtils.isArn where the result is
the same for every input: the deleted-stack and live-stack lookups by ARN,
where a malformed ARN resolves to no stack either way; the change set ARN
check that only runs after resolveChangeSetName has rejected malformed ARNs;
and the Batch, Bedrock AgentCore and IAM policy provisioners' checks of
physical ids Floci minted itself.

The six other probes stay: DeleteChangeSet, DeleteStack, the change set name
resolver and the change set's stack lookup give a malformed ARN its own
ValidationError or no-op, and the EC2 instance and ECS provisioners read
template values, where isArn would change how an "arn:" value resolves.

No behaviour change. The partition baseline drops from 136 to 129.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>

---------

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-10-26 22:59:04 -05:00

7.3 KiB

1# categorypathcount
2# Generated by tools/partition/partition_literals.py --write-baseline; do not hand-edit.
3arn-concatsrc/main/java/io/github/hectorvent/floci/services/appsync/graphql/auth/IamAuthValidator.java1
4arn-concatsrc/main/java/io/github/hectorvent/floci/services/controlcatalog/ControlCatalogService.java1
5arn-concatsrc/main/java/io/github/hectorvent/floci/services/dsql/DsqlClusterPolicies.java1
6arn-concatsrc/main/java/io/github/hectorvent/floci/services/ec2/Ec2InstanceCredentials.java1
7arn-concatsrc/main/java/io/github/hectorvent/floci/services/iam/AwsManagedPolicies.java2
8arn-concatsrc/main/java/io/github/hectorvent/floci/services/route53resolver/Route53ResolverService.java2
9arn-concatsrc/main/java/io/github/hectorvent/floci/services/ses/SesService.java1
10arn-concatsrc/main/java/io/github/hectorvent/floci/services/stepfunctions/StatesIntegration.java1
11arn-concatsrc/main/java/io/github/hectorvent/floci/services/stepfunctions/StepFunctionsService.java1
12arn-probesrc/main/java/io/github/hectorvent/floci/core/common/IamConditionContextResolver.java1
13arn-probesrc/main/java/io/github/hectorvent/floci/core/common/PassedRoles.java2
14arn-probesrc/main/java/io/github/hectorvent/floci/services/apigatewayv2/ApiGatewayV2Service.java1
15arn-probesrc/main/java/io/github/hectorvent/floci/services/appintegrations/AppIntegrationsService.java1
16arn-probesrc/main/java/io/github/hectorvent/floci/services/appsync/graphql/datasource/AppSyncDataSourceAuthorizer.java1
17arn-probesrc/main/java/io/github/hectorvent/floci/services/appsync/graphql/datasource/RelationalDataSourceInvoker.java1
18arn-probesrc/main/java/io/github/hectorvent/floci/services/appsync/graphql/resolver/AppSyncResolverExecutor.java1
19arn-probesrc/main/java/io/github/hectorvent/floci/services/batch/BatchService.java4
20arn-probesrc/main/java/io/github/hectorvent/floci/services/bedrock/BedrockService.java3
21arn-probesrc/main/java/io/github/hectorvent/floci/services/budgets/BudgetsService.java1
22arn-probesrc/main/java/io/github/hectorvent/floci/services/cloudformation/CloudFormationService.java4
23arn-probesrc/main/java/io/github/hectorvent/floci/services/cloudformation/provisioners/Ec2InstanceCfnProvisioner.java1
24arn-probesrc/main/java/io/github/hectorvent/floci/services/cloudformation/provisioners/EcsCfnProvisioner.java1
25arn-probesrc/main/java/io/github/hectorvent/floci/services/cloudfront/CloudFrontService.java1
26arn-probesrc/main/java/io/github/hectorvent/floci/services/cloudtrail/CloudTrailService.java1
27arn-probesrc/main/java/io/github/hectorvent/floci/services/cloudwatch/logs/CloudWatchLogsCrossAccountService.java1
28arn-probesrc/main/java/io/github/hectorvent/floci/services/connect/ConnectService.java1
29arn-probesrc/main/java/io/github/hectorvent/floci/services/docdb/DocDbService.java3
30arn-probesrc/main/java/io/github/hectorvent/floci/services/dynamodb/DynamoDbService.java1
31arn-probesrc/main/java/io/github/hectorvent/floci/services/dynamodb/DynamoDbTableNames.java2
32arn-probesrc/main/java/io/github/hectorvent/floci/services/dynamodb/backend/DynamoDbLocalBackend.java2
33arn-probesrc/main/java/io/github/hectorvent/floci/services/ecs/EcsService.java9
34arn-probesrc/main/java/io/github/hectorvent/floci/services/ecs/container/EcsContainerManager.java1
35arn-probesrc/main/java/io/github/hectorvent/floci/services/elbv2/ElbV2TargetResolver.java1
36arn-probesrc/main/java/io/github/hectorvent/floci/services/glue/GlueService.java1
37arn-probesrc/main/java/io/github/hectorvent/floci/services/iam/ResourceArnBuilder.java8
38arn-probesrc/main/java/io/github/hectorvent/floci/services/iot/IotService.java1
39arn-probesrc/main/java/io/github/hectorvent/floci/services/lakeformation/LakeFormationService.java1
40arn-probesrc/main/java/io/github/hectorvent/floci/services/lambda/LambdaArnUtils.java2
41arn-probesrc/main/java/io/github/hectorvent/floci/services/lambda/LambdaService.java4
42arn-probesrc/main/java/io/github/hectorvent/floci/services/lambdamicrovms/LambdaMicrovmsService.java1
43arn-probesrc/main/java/io/github/hectorvent/floci/services/neptune/NeptuneService.java3
44arn-probesrc/main/java/io/github/hectorvent/floci/services/rds/RdsService.java7
45arn-probesrc/main/java/io/github/hectorvent/floci/services/redshift/RedshiftService.java1
46arn-probesrc/main/java/io/github/hectorvent/floci/services/redshiftserverless/RedshiftServerlessService.java1
47arn-probesrc/main/java/io/github/hectorvent/floci/services/resourcegroups/ResourceGroupsService.java2
48arn-probesrc/main/java/io/github/hectorvent/floci/services/s3tables/S3TablesService.java1
49arn-probesrc/main/java/io/github/hectorvent/floci/services/secretsmanager/SecretsManagerService.java3
50arn-probesrc/main/java/io/github/hectorvent/floci/services/ses/SesTemplateService.java1
51arn-probesrc/main/java/io/github/hectorvent/floci/services/ssm/SsmService.java1
52arn-probesrc/main/java/io/github/hectorvent/floci/services/ssooidc/SsoOidcController.java2
53arn-splitsrc/main/java/io/github/hectorvent/floci/core/common/IamConditionContextResolver.java1
54arn-splitsrc/main/java/io/github/hectorvent/floci/services/appsync/graphql/resolver/AppSyncResolverExecutor.java1
55arn-splitsrc/main/java/io/github/hectorvent/floci/services/bedrockagentcorecontrol/BedrockAgentCoreControlService.java3
56arn-splitsrc/main/java/io/github/hectorvent/floci/services/bedrockagentcorecontrol/BedrockAgentCoreGatewayService.java1
57arn-splitsrc/main/java/io/github/hectorvent/floci/services/bedrockagentcorecontrol/BedrockAgentCoreMemoryService.java1
58arn-splitsrc/main/java/io/github/hectorvent/floci/services/bedrockagentcorecontrol/BedrockAgentCoreTagHandler.java1
59arn-splitsrc/main/java/io/github/hectorvent/floci/services/cloudwatch/dashboards/CloudWatchDashboardsService.java1
60arn-splitsrc/main/java/io/github/hectorvent/floci/services/datasync/DataSyncService.java3
61arn-splitsrc/main/java/io/github/hectorvent/floci/services/ec2/Ec2InstanceCredentials.java3
62arn-splitsrc/main/java/io/github/hectorvent/floci/services/glue/GlueService.java1
63arn-splitsrc/main/java/io/github/hectorvent/floci/services/iam/PublicAccessConditions.java1
64arn-splitsrc/main/java/io/github/hectorvent/floci/services/kms/KmsJsonHandler.java1
65arn-splitsrc/main/java/io/github/hectorvent/floci/services/lambda/LambdaController.java1
66arn-splitsrc/main/java/io/github/hectorvent/floci/services/lambda/LambdaTagController.java1
67arn-splitsrc/main/java/io/github/hectorvent/floci/services/lambdamicrovms/LambdaMicrovmsController.java1
68arn-splitsrc/main/java/io/github/hectorvent/floci/services/neptune/NeptuneQueryHandler.java1
69arn-splitsrc/main/java/io/github/hectorvent/floci/services/ram/RamService.java2
70arn-splitsrc/main/java/io/github/hectorvent/floci/services/redshift/RedshiftService.java1
71arn-splitsrc/main/java/io/github/hectorvent/floci/services/resourcegroupstagging/ResourceGroupsTaggingService.java1
72arn-splitsrc/main/java/io/github/hectorvent/floci/services/sagemaker/SageMakerService.java1
73arn-splitsrc/main/java/io/github/hectorvent/floci/services/servicecatalog/ServiceCatalogService.java1
74arn-splitsrc/main/java/io/github/hectorvent/floci/services/ses/SesTenantService.java2
75arn-splitsrc/main/java/io/github/hectorvent/floci/services/ssoadmin/SsoAdminService.java1
76arn-splitsrc/main/java/io/github/hectorvent/floci/services/swf/SwfService.java1
77arn-splitsrc/main/java/io/github/hectorvent/floci/services/verifiedpermissions/VerifiedPermissionsService.java1