AWS (condition operators, multiple keys and values, set operators, OIDC context keys):
- An explicit Deny that applies wins. Otherwise an Allow must apply.
- Within a statement, all operators and all keys must hold (AND). Several values for one key are OR; for negated operators (
StringNotEquals,StringNotLike, ...) they are NOR. - A key missing from the request context makes a condition false, except: negated operators and
ForAllValues:are true,...IfExistsis true,Nulltests presence. StringLikewildcards:*any sequence,?one character, case-sensitive.StringEqualstreats*and?literally.- Context keys come from the token per AWS's mapping:
amr,aud(theazpclaim when present, elseaud),email,oaud(aud),sub, plus fortoken.actions.githubusercontent.com:actor,actor_id,job_workflow_ref,repository,repository_id,repository_owner_id,workflow,ref,environment,enterprise_id. A key outside that mapping is treated as missing; if a condition would pass only because of that, the result is "cannot evaluate". - Policy variables are resolved from the token (
${*},${?},${$}are literal characters). Request-side keys (aws:*,sts:*) are unknown unless given with--context.
Entra (workload identity federation, flexible credentials):
- Issuer, subject and audience must match exactly. With several credentials, any one matching is enough.
- Flexible expressions:
claims['NAME'] eq|matches 'VALUE'joined byand, single spaces,languageVersion1.matchesuses*and?. Per issuer, only the documented claims and operators are accepted (GitHub:subandjob_workflow_refwitheq/matches,repository_idandrepository_owner_idwitheq, andsubplus one of the two IDs required; GitLab:subwitheq/matchesandproject_idwitheq, both required; Terraform Cloud:sub). Anything else is "cannot evaluate".
© 2026 The saysno Authors. Licensed under Apache-2.0. Part of dyokto.