Files
floci/src/main/java
Priamo Germosen 4495ade6bb fix(iam): route every dispatched IAM action, and require the parameters the model requires (#5227)
28 operations IamQueryHandler dispatches were missing from AwsQueryController's
IAM set. Without a usable credential scope the controller infers the service from
the action name alone, and that chain ends in `return "sqs"`, so those answered
UnsupportedOperation in the SQS namespace. IamEnforcementFilter resolves the
policy namespace through the same code, so they were also authorized as
sqs:<Action>, and a policy denying iam:* missed them.

The set now matches the handler exactly in both directions: 158 dispatched, 158
routed, nothing routed that is not dispatched. None of the 28 names is defined by
another service here, so this adds no ambiguity to the 14 action names that
already collide across services.

Separately, five operations in the permissions-boundary family read
model-required parameters through the nullable accessor, so a missing one reached
the service as null and surfaced as InternalFailure from a null map key:
UpdateAssumeRolePolicy, PutUserPermissionsBoundary, PutRolePermissionsBoundary
and DeleteRolePermissionsBoundary did, DeleteUserPermissionsBoundary happened to
fail cleanly. That was already reachable through an IAM credential scope, so it
predates this change; routing by action name adds a second way in. All five now
answer ValidationError, and the test supplies the name on the three that take a
second required parameter, so the check on PolicyDocument and PermissionsBoundary
is exercised rather than shadowed by the one on the name.

What this does not do is decide whether Version should disambiguate a shared
action name. That is a cross-service routing change, it affects 14 names in
services this does not otherwise touch, and it is the prerequisite for IAM
ChangePassword rather than for these 28.

Refs #5032
2026-10-07 07:42:39 -05:00
..