Any deny wins, and otherwise one allow is enough unless a guardrail or boundary takes it away. The delete call meets no deny and two allows, so it goes through.
Example. Request: telemetry-ingest-node deletes an object in halcyon-downlink. Identity policy: ingest-readonly allows s3:* on every bucket. Bucket policy: Names the node role for read and delete. Limits: Guardrail allows all storage actions. The role has no boundary. The tree starts at: Does any policy explicitly deny the call? From "Does any policy explicitly deny the call?", "Yes" leads to "Denied, whatever else allows it". From "Does any policy explicitly deny the call?", "No" leads to "Does an identity or bucket policy allow it?" From "Does an identity or bucket policy allow it?", "No" leads to "Denied by default". From "Does an identity or bucket policy allow it?", "Yes" leads to "Does a guardrail or boundary leave it out?" From "Does a guardrail or boundary leave it out?", "Yes" leads to "Denied by that limit". From "Does a guardrail or boundary leave it out?", "No" leads to "Allowed".
- No policy that applies has a deny for this delete call. The answer is not settled yet, so it moves on to the allows. Path: Does any policy explicitly deny the call? Then No, Does an identity or bucket policy allow it?
- ingest-readonly allows s3:* on every bucket, and the bucket policy names the role for delete. Inside one account, either allow is enough. Path: Does any policy explicitly deny the call? Then No, Does an identity or bucket policy allow it? Then Yes, Does a guardrail or boundary leave it out?
- The guardrail allows all storage actions, and the role has no boundary. Nothing takes the allow away, so the delete call is allowed. Path: Does any policy explicitly deny the call? Then No, Does an identity or bucket policy allow it? Then Yes, Does a guardrail or boundary leave it out? Then No, Allowed.
One account only. A call across accounts also needs the other account's policy to allow it. Session policies and resource control policies are not drawn.