mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
AssumeRolePolicyEvaluator refuses a trust policy with a statement that names no valid Effect, or whose Condition is not an object of non-empty operator objects: IAM refuses such a document when it is written, and Floci stores it as given, so the whole document is refused when it is read. The two federated evaluators read the same stored document another way. WebIdentityTrustPolicyEvaluator defaulted a missing Effect to Allow and SAMLTrustPolicyEvaluator allowed on anything that was not a Deny, so a statement naming a federated principal and no effect let AssumeRoleWithWebIdentity and AssumeRoleWithSAML assume a role that AssumeRole refused. An Effect spelled "allow" or "Permit" granted the same way, and an empty Condition, or one whose operator was empty, was read as no condition at all. The reading moves into TrustPolicyStatements, and all three evaluators use it, so one stored trust policy answers the same on each path: a document carrying such a statement lets no one assume the role.