The seven decisions hiding inside “OIDC authorized it”
Here is a sentence that has quietly closed more release tickets than any audit ever should: “The pipeline has cloud access through OIDC.” It sounds like a verdict. It is actually a shrug wearing a lanyard. Between a GitHub Actions job asking for an identity token and a cloud resource agreeing to do something, at least seven separately governed decisions take place — each with its own actor, its own clock, and its own evidence trail. Collapse them into one word and you have not documented authorization. You have documented optimism.
The first decision belongs to GitHub. The id-token: write permission lets a workflow request and use an OpenID Connect JSON Web Token. GitHub is explicit that this setting does not, by itself, grant the workflow any write access to external resources. It is an eligibility flag, not a privilege. A reviewer who spots it in a diff has learned exactly one bounded fact: this job was allowed to ask. Whether it asked, what audience it named, which claims came back, and whether anyone trusted them are all still open questions.
The second decision belongs to the cloud provider’s trust policy. GitHub’s own guidance says the provider validates token claims and, on success, hands the job a short-lived access token. That trust policy is where a subject, an audience, a repository identity, or a reusable-workflow reference becomes an admission condition. A token can be perfectly well-formed and still be rejected because a condition did not match. A condition can be broad enough to swallow a claim that quietly changed.
The federation exchange can succeed while the resulting credential is scoped far more tightly than the release author imagined — or the resource policy can slam the door even after the exchange went through.
AWS makes the seams visible. GitHub’s AWS guidance walks through configuring a trust relationship and recommends evaluating the OIDC sub condition key in a role trust policy. The presence of a sub claim is not the same record as an AWS role session. And a role session is not a record of every permission it carried in context: role policies, permission boundaries, session policies, organization-level restrictions, resource policies, and explicit denies all shape the final decision. This is not an audit of anyone’s AWS account. It is an argument that “OIDC authorized the deployment” leaves almost everything unspecified.
Reusable workflows add a third layer of ambiguity. GitHub documents that a token issued to a job inside a reusable workflow carries ordinary job information and can include job_workflow_ref; support for custom claims varies by cloud provider. A workflow name sitting in a repository is not proof that the relying provider ever checked that field. A caller can be perfectly known to GitHub and still be invisible to the trust condition the provider evaluates. Customize the subject claim later and you can change the format the provider expects — silently. These are configuration facts to capture, not gaps to paper over with the soothing word “federated.”
The seven-part receipt
What a defensible cloud-authorization statement actually needs is a receipt with seven joins, each dated and reproducible:
- The exact workflow revision, triggering ref, job identity, and
id-token: writecontext. - A bounded record of the requested audience and resulting claims — without exposing a live token.
- The cloud identity-provider and trust-policy revision in force at the moment of exchange.
- The exchange result and the role or session identity, including expiry.
- The effective-permission context relevant to the intended action.
- The cloud resource’s own decision and request record.
- A separately timed observation of the target.
Sensitive account names, resource identifiers, and values can stay protected. The point is to preserve the joins, not to publish credentials.
Sources
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






