k8wiz
Kustomize
Hard
Security

A production overlay lists a remote base with ?ref=main. What's the risk?

Select your answer:

Show answer and explanation

Answer: The build changes whenever main changes, even if your own repository doesn't

Explanation

Kustomize fetches the remote repository at the given ref on every build. A branch moves, so two builds of the same commit can produce different YAML. Pin ref to a tag or, better, a commit SHA, and update it on purpose.