How would you give GitHub Actions push access to ECR for charts without long-lived keys?
IntermediateScenarioOCI, CI/CD & GitOps
Answer
Situation read → Static AWS keys in CI secrets are a liability.
What I'd do →
- Configure GitHub OIDC provider in AWS and an IAM role trusted for
repo:org/repo:ref:refs/heads/main. - Use
aws-actions/configure-aws-credentialswithrole-to-assume. aws ecr get-login-password | helm registry login --username AWS --password-stdin $REG.- Scope the role to
ecr:PutImage,ecr:InitiateLayerUpload, etc. oncharts/*only.
Why → Short-lived, scoped credentials remove the leaked-key risk.
Interview tip → OIDC federation is the expected answer in 2025–2026.
More on OCI, CI/CD & GitOps
Design the CI pipeline for an internal Helm chart.IntermediateYour org is moving charts from ChartMuseum to an OCI registry. What changes for consumers?IntermediateA chart version was overwritten in the registry and two clusters now run different content for "1.4.0". How do you prevent it?AdvancedYou are adopting Argo CD for apps currently deployed with `helm upgrade` from CI. How do you migrate?AdvancedArgo CD shows a Helm app permanently OutOfSync even right after a sync. What do you look for?IntermediateHow do you promote a chart version from staging to prod in a GitOps setup?Intermediate