Files
seaweedfs/weed/iam/integration
Chris LuandClaude Opus 5.5 8d4ec5252a iam: evaluate credential trust policies with the policy engine (#12895)
* iam: evaluate credential trust policies with the policy engine

AssumeRoleWithCredentials and the Iceberg credential vending path checked
a role's trust policy by scanning for a matching Allow statement only, so
an explicit Deny never took effect. Evaluate the trust policy through
EvaluateTrustPolicy, as AssumeRole and AssumeRoleWithWebIdentity do, so a
matching Deny wins over an Allow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* iam: keep the Federated provider match for credential trust Allows

Matching Allow statements through the shared trust matcher let
{"AWS":"*"}, "*" and empty principal objects admit credential-provider
users, and made Allow conditions fail closed on keys this path does not
supply, such as the vending duration. Keep the exact Federated provider
check for Allow and use the policy engine only to find a matching Deny,
with the requested session duration in the context.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 10:20:57 -08:00
..