Interview Prep/DevSecOps/Cloud Security Posture

What is your container registry (ECR) security baseline?

BeginnerProductionCloud Security Posture
Answer
  • Tag immutability on, so a tag cannot be overwritten with a different image.
  • Enhanced scanning with Inspector (continuous rescans when new CVEs appear).
  • KMS encryption and repository policies limiting push to CI roles and pull to workload roles in our organisation.
  • Lifecycle policies to expire untagged and old images, reducing what must be scanned and patched.
  • Pull-through cache for public images.
aws ecr put-image-tag-mutability --repository-name payments-api --image-tag-mutability IMMUTABLE
All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Cloud Security Posture