k8wiz
Flux CD
Hard
Security

How can you make Flux refuse an OCI artifact that wasn't signed by your CI pipeline?

Select your answer:

Show answer and explanation

Answer: Set spec.verify on the OCIRepository with provider cosign or notation

Explanation

With spec.verify, source-controller checks the Cosign or Notation signature before it produces an artifact, so no Kustomization or HelmRelease sees unsigned content. For keyless Cosign signatures from CI, matchOIDCIdentity pins the expected issuer and subject.