Interview Prep/DevSecOps/Secrets and Identity Management

A pipeline needs to push images to registries in three clouds. How do you avoid storing three sets of credentials?

AdvancedScenarioSecrets and Identity Management
Answer

Situation read → Each cloud supports OIDC federation from CI. Use the CI identity token everywhere.

What I'd do →

  1. AWS ECR: configure-aws-credentials with a role, then aws ecr get-login-password | docker login.
  2. GCP Artifact Registry: Workload Identity Federation pool trusting GitHub, via google-github-actions/auth.
  3. Azure ACR: federated credential on an Entra app registration, via azure/login with client-id, tenant-id, subscription-id.
  4. Restrict each trust to the repo and refs/heads/main or an environment.
  5. Push once, then replicate with the registries' own replication if possible.

Why → Zero stored secrets in CI; all three tokens are short-lived and auditable.

Interview tip → Show you know the GCP and Azure equivalents, not just AWS.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Secrets and Identity Management