k8wiz
Flux CD
Hard
Security

How can an OCIRepository authenticate to Amazon ECR without a static registry password?

Select your answer:

Show answer and explanation

Answer: Set spec.provider: aws so source-controller uses the cloud identity

Explanation

With provider aws, azure or gcp, source-controller gets registry credentials from the cloud's workload identity instead of a Secret. The default, generic, uses a Secret or anonymous access. ImageRepository supports the same provider field for scanning private registries.