mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 06:00:46 -05:00
IAM enforcement evaluated every STS action against resource *, so a policy allowing sts:AssumeRole on specific role ARNs never matched and the call was denied. sts:AssumeRole is now authorized against the request's RoleArn, as on AWS. Every other STS action stays at *: like Logs and Secrets Manager, the resource follows the serving operation, so a RoleArn added to a call that never reads it, such as GetFederationToken, cannot make a role-scoped Allow grant that call. Query-protocol parameters were only read from the URL, never from the form body the SDKs and CLI POST, so SQS and SNS resource ARNs fell back to a wildcard the same way. For a form POST they are now read from the body alone: AwsQueryController dispatches on the body and never sees the URL query, so authorizing a URL value would check one resource and act on another. SQS preferred a QueueUrl in the URL over the body's, so it now reads the body first as well. A resource field with an invalid percent escape is read as absent, so the check falls back to the default resource instead of throwing out of the filter; the request then fails in the form reader exactly as it does without the resource check. The RoleArn is checked untrimmed, as the handler uses it. docs/services/sts.md no longer lists the * check as a known limitation. Co-authored-by: Robin Baeckman <27041454+RobinBaeckman@users.noreply.github.com>