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 →
- AWS ECR:
configure-aws-credentialswith a role, thenaws ecr get-login-password | docker login. - GCP Artifact Registry: Workload Identity Federation pool trusting GitHub, via
google-github-actions/auth. - Azure ACR: federated credential on an Entra app registration, via
azure/loginwithclient-id,tenant-id,subscription-id. - Restrict each trust to the repo and
refs/heads/mainor an environment. - 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.
More on Secrets and Identity Management
A team stores database passwords in a `.env` file committed to a private repo. How do you migrate them out?BeginnerYour CI pipeline uses long-lived AWS access keys stored as repository secrets. How do you replace them?IntermediateAn auditor asks how often you rotate database credentials. You currently never do. What do you build?IntermediatePods need AWS access. A developer mounted an IAM user's keys as a Kubernetes Secret. What do you propose instead?BeginnerShould you use Kubernetes Secrets, Sealed Secrets, External Secrets Operator or the Secrets Store CSI driver?IntermediateA Slack webhook URL and a Stripe live key were posted in a public GitHub issue. What is your response sequence?Beginner