# A Kustomization in namespace team-a sets spec.decryption.secretRef.name: sops-age. Where does kustomize-controller look for that Secret?

Flux CD, Medium (Advanced), Security. https://k8wiz.com/uquiz/a-kustomization-in-namespace-team-a-sets-specdecryptionsecretrefname-sops-age-where-does-kustomize-controller-look-for-that-secr

- A. In team-a, the Kustomization's own namespace
- B. In flux-system, where the controllers run
- C. In the namespace set by spec.targetNamespace
- D. In every namespace, using the first match it finds

**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.
