Skip to content

feat(DM01-6630): support Cloud SQL credentials from External Secrets - #663

Merged
liuwei08 merged 1 commit into
masterfrom
fix/DM01-6630-cloudsql-vault
Dec 3, 2026
Merged

liuwei08 merged 1 commit into
masterfrom
fix/DM01-6630-cloudsql-vault

Conversation

@liuwei08

@liuwei08 liuwei08 commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Cloud SQL credentials stored in Helm values can overwrite a rotated Kubernetes Secret during an ArgoCD sync, breaking database connectivity. Add an opt-in database.cloudsql.external_secret configuration that reads the service-account JSON from an external secret store.

All Cloud SQL proxy consumers, including the migration Job, mount a separate generated Secret. ArgoCD creates the system namespace first, then waits for the ExternalSecret before applying workloads. Legacy inline configuration remains the default. The distinct Secret name avoids ownership and pruning conflicts with the legacy Secret during migration.

Validation: 11 Helm rendering tests passed, including all nine proxy consumers, legacy/disabled modes, required configuration, exclusion of leftover inline credentials, and namespace ordering. Both production values files were rendered and compared to confirm only the expected credential resources, references, and namespace ordering changed.

Merge this chart support before enabling the option in deployment values. Runtime rollout remains a separate step.

@liuwei08
liuwei08 merged commit 95140ac into master Dec 3, 2026
2 checks passed
@liuwei08
liuwei08 deleted the fix/DM01-6630-cloudsql-vault branch December 3, 2026 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants