Flux CD
Medium
Security
A Kustomization in namespace team-a sets spec.decryption.secretRef.name: sops-age. Where does kustomize-controller look for that Secret?
Select your answer:
Show answer and explanation
Answer: In team-a, the Kustomization's own namespace
Explanation
secretRef is a local object reference with only a name, so the Secret must be in the same namespace as the Kustomization. targetNamespace only changes where the applied resources go. Only the global --sops-age-secret flag reads a Secret from the controller's own namespace.
More medium Flux CD questions
- A Kustomization must only be applied after another Kustomization that installs CRDs is ready. Which field do you set?
- What does spec.wait: true do on a Flux Kustomization?
- How do you substitute a per-cluster value such as ${cluster_region} into the manifests a Flux Kustomization applies?
- How does Flux decrypt Secrets that are stored encrypted with SOPS in Git?
- What does the --no-cross-namespace-refs=true flag on the Flux controllers do?
- How can a Kustomization apply resources with a tenant's limited permissions instead of kustomize-controller's own?