mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
Under IAM enforcement, Budgets, Cost and Usage Reports, Service Quotas, Textract and Translate requests were checked on `*`, so a grant scoped to a budget, a report definition, a quota, an adapter or a terminology was refused, and a deny scoped to one never applied. The generated table of the resources requests name now reads them, 103 operations, from AWS's Service Reference and botocore as it reads the first three batches: their namespaces move from the generator's NOT_COVERED to NAMESPACES and the table is regenerated, nothing in it edited by hand; 717 operations over 17 namespaces. Each resource type's ARN format is the one Floci mints or reads: `budget/<name>` with no Region (Budgets' tag handler parses it), `definition/<name>`, and `<service code>/<quota code>` (Service Quotas' QuotaArn). Three corrections, each with its reason: CreateBudget and UpdateBudget name their budget by Budget.BudgetName and NewBudget.BudgetName, and PutReportDefinition its report by ReportDefinition.ReportName, inside a structure the rule does not read. Without them UpdateBudget and PutReportDefinition were checked only on their BillingViewArn, a billing view's ARN by botocore's pattern, so a caller allowed on one budget or report could give its ARN there and name another. Verified Permissions minted a policy store's ARN with a Region, where AWS gives none: its CreatePolicyStore example answers arn:aws:verifiedpermissions::123456789012:policy-store/PSEXAMPLEabcdefg111111, the Service Reference's format alike. It now mints it without one, in the Region's partition. Not read yet, each with its reason in NOT_COVERED: Verified Permissions, whose policyStoreId may name a store by its alias, which AWS authorizes as the action on the store the alias points to and GetPolicyStoreAlias on the alias, and whose aliasName carries the `policy-store-alias/` its format already gives; Auto Scaling, whose group and launch configuration ARNs Floci mints without AWS's id (`autoScalingGroup:<name>` for `autoScalingGroup:<id>:autoScalingGroupName/<name>`), which ECS reads back; SWF, whose domain format the Service Reference gives no Region while the SWF Developer Guide gives one; and CloudHSM, whose formats end in names while its requests give ids.