mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 07:39:24 -05:00
fix(iam): authorize Budgets operations as ModifyBudget and ViewBudget (#6436)
Under IAM enforcement a Budgets operation other than a budget action was authorized as its own name, budgets:CreateBudget and the like, which is no IAM action. A policy granting budgets:ModifyBudget was denied CreateBudget, and one granting budgets:ViewBudget was denied DescribeBudgets, while a policy naming the operation, which grants nothing on AWS, let it through. AWS's Service Reference authorizes these operations as budgets:ModifyBudget or budgets:ViewBudget. Beside that action it lists the aws-portal Billing console permissions and, for CreateBudget, the tag-on-create budgets:TagResource, so the authorized-action generator counted two or three actions and left them out. It now counts neither: the aws-portal actions gate the Billing console, and the Billing and Cost Management user guide says programmatic requests to AWS Budgets are not affected by them; a namespace's tagging action beside exactly one other is the tag-on-create permission. That adds the 15 Budgets operations and IoT FleetWise BatchCreateVehicle, which Floci does not serve, to the vendored map. Not checked: budgets:TagResource when CreateBudget or CreateBudgetAction carries tags.
This commit is contained in:
1 parent
e5ea747644
commit
b36fd2f0be
7 files changed
+147
-8
No files matched your search
@@ -25,7 +25,10 @@ import java.util.Set;
|
||||
* <p>The file is generated by {@code tools/aws/regen_iam_authorized_actions.py} from the
|
||||
* {@code Operations} AWS's Service Reference publishes per service, which name the actions each SDK
|
||||
* operation is authorized by. It carries only operations authorized by exactly one action of their
|
||||
* own namespace under another name; the generator documents the shapes it leaves out and why.
|
||||
* own namespace under another name, counting neither a Billing console permission nor a
|
||||
* tag-on-create permission beside that action: Budgets {@code CreateBudget} is authorized as
|
||||
* {@code budgets:ModifyBudget} and {@code DescribeBudgets} as {@code budgets:ViewBudget}. The generator
|
||||
* documents the shapes it leaves out and why.
|
||||
* {@code make iam-authorized-actions-check} gates its shape offline and
|
||||
* {@code make iam-authorized-actions-verify} checks every entry against AWS. A namespace Floci
|
||||
* authorizes under a name other than the IAM namespace matches nothing here, and its operations keep
|
||||
|
||||
Reference in new issue
Block a user