A Sealed Secret works in staging but you need to move the namespace name for prod. What happens and what do you do?
BeginnerScenarioTenancy, Security & Secrets
Answer
Situation read → Strict scope binds ciphertext to name and namespace.
What I'd do →
- Reseal the secret for the prod namespace and name with the prod cluster's certificate.
- Store per-environment SealedSecrets in each environment folder.
- If many renames are expected, consider
namespace-widescope, accepting the reduced protection.
Why → Copying ciphertext to a different namespace fails with no key could decrypt secret.
Interview tip → Explain why strict scope is a security feature, not an inconvenience.
More on Tenancy, Security & Secrets
Ten teams share one Argo CD. How do you isolate them?IntermediateA developer could create an Application in their project that deploys a ClusterRoleBinding granting cluster-admin. How do you prevent privilege escalation?AdvancedCI needs to trigger a sync of one app after a deploy commit. How do you give it access?BeginnerAn auditor says the Sealed Secrets private key is a single point of failure and a single point of compromise. How do you respond?AdvancedYou need the same database password in 12 clusters. Which secrets approach do you choose and why?IntermediateYour team wants to use SOPS with Argo CD. What do you set up?Advanced