BrainyBeeBrainyBee
ExploreBlogStart Studying
HomeDesigning and Implementing Microsoft DevOps Solutions (AZ-400)Secretless authentication
Lesson266 words

Secretless authentication

Secrets and secretless authentication (workload identity federation / OIDC)

The problem with a stored cloud credential

Using a hardcoded secret means creating a credential in the cloud provider and duplicating it in GitHub or Azure DevOps. Now it exists in two places, is long-lived, and must be rotated in both.

How OIDC removes it

  1. You establish an OIDC trust relationship in the cloud provider, allowing specific workflows to request access tokens on behalf of a defined cloud role.
  2. Every run, GitHub's OIDC provider auto-generates a token — a JWT containing claims that identify the workflow, repository and environment.
  3. The workflow presents that token to the cloud provider as proof of identity.
  4. On validating the claims, the cloud provider issues a short-lived access token, available only for the duration of the job.

The documented benefits are exactly three:

BenefitMeaning
No cloud secretsNothing duplicated as a long-lived secret
Authentication and authorization managementGranular control via the cloud provider's own authN/authZ
Rotating credentialsA token valid for a single job, then automatically expired

Claims are the authorisation surface

The token's sub claim references things like the repository and the job's environment — for example a prod environment in octo-org/octo-repo. Scoping the cloud trust to specific claims is what stops any workflow in the organisation from assuming a production role.

Azure Pipelines has the equivalent in workload identity federation service connections, with the same property: a federated credential, no stored secret.

Primary sources

  • https://docs.github.com/en/actions/concepts/security/openid-connect
  • https://learn.microsoft.com/en-us/azure/devops/pipelines/release/configure-workload-identity
All Designing and Implementing Microsoft DevOps Solutions (AZ-400) Study Resources

Related Notes

  • Agent and runner infrastructure421 words
  • Agent and runner infrastructure — quick notes150 words
  • Alerting on pipeline events255 words
  • Alerting on pipeline events — quick notes94 words
  • Analyzing usage and application performance241 words
  • Analyzing usage and application performance — quick notes73 words
  • Appropriate access levels217 words
  • Appropriate access levels — quick notes85 words
  • Automating container scanning277 words
  • Automating container scanning — quick notes96 words
  • Automating documentation from Git history191 words
  • Automating documentation from Git history — quick notes55 words

Ready to study Designing and Implementing Microsoft DevOps Solutions (AZ-400)?

Practice tests, flashcards, and all study notes — free, no sign-up.

Start Studying

Ready to study Designing and Implementing Microsoft DevOps Solutions (AZ-400)?

Practice tests, flashcards, and all study notes — free, no sign-up needed.

Start Studying — Free
Designing and Implementing Microsoft DevOps Solutions (AZ-400) ResourcesExplore All HivesBlogHome

© 2026 BrainyBee. Free AI-powered exam prep.