k8wiz
Flux CD
Easy
Security

When you encrypt a Kubernetes Secret with SOPS for Flux, which fields should you encrypt?

Select your answer:

Show answer and explanation

Answer: Only the data and stringData fields

Explanation

kustomize-controller needs apiVersion, kind and metadata in plain text, and encrypting them is not supported. The usual way is encrypted_regex: ^(data|stringData)$ in .sops.yaml, or the --encrypted-regex flag on sops encrypt.

Read more about Flux CD