Skip to content

How saysno decides

Markdown · llms.txt

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, ...IfExists is true, Null tests presence.
  • StringLike wildcards: * any sequence, ? one character, case-sensitive. StringEquals treats * and ? literally.
  • Context keys come from the token per AWS's mapping: amr, aud (the azp claim when present, else aud), email, oaud (aud), sub, plus for token.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 by and, single spaces, languageVersion 1. matches uses * and ?. Per issuer, only the documented claims and operators are accepted (GitHub: sub and job_workflow_ref with eq/matches, repository_id and repository_owner_id with eq, and sub plus one of the two IDs required; GitLab: sub with eq/matches and project_id with eq, both required; Terraform Cloud: sub). Anything else is "cannot evaluate".