Skip to content

fix(DM01-6630): finish migration Jobs and support Vault-managed GCP credentials - #664

Merged
liuwei08 merged 2 commits into
masterfrom
fix/DM01-6630-migration-job
Dec 3, 2026
Merged

liuwei08 merged 2 commits into
masterfrom
fix/DM01-6630-migration-job

Conversation

@liuwei08

@liuwei08 liuwei08 commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Expired GCP keys in deployment configuration can overwrite valid runtime credentials during ArgoCD sync. Also, the ordinary Cloud SQL Proxy container keeps the database migration Job running after migration completion.

This PR combines the related InfraBox changes:

  • On Kubernetes 1.29+, run the migration proxy as a native restartable init sidecar so the Job can finish. Older clusters retain their existing compatible layout.
  • Add opt-in GCS ExternalSecret support, using a distinct Secret target and wave -1. API, checker, registry and GC mount the selected credential. Also fix GC's previously missing GCS credential mount.
  • Allow service-gcp to select a Vault-managed Secret through serviceAccountSecretName, preserving the legacy default and credential file path.

Companion configuration PRs: https://github.wdf.sap.corp/bdh/infrabox-config/pull/240 and https://github.wdf.sap.corp/DI/infra-tooling-argocd/pull/239. No replacement credentials are embedded in this PR.

Validation: all 20 Helm tests pass, covering migration compatibility, external/legacy/disabled credentials and GCS credential mounts derived from container environment settings. The GC mount regression failed before the fix and passed afterward. Full CI/test/eu-de-1/eu-de-2 renders and all four service-gcp renders passed. The installed ESO CRD and Kubernetes API accepted server-side dry runs; the migration Job dry run was accepted separately.

Deployment requires the companion configuration changes. Private CI must first have ESO/CRDs, a securely provisioned im-vault bootstrap Secret and a Ready vault-backend store; then sync consumers. Recreate existing migration Jobs through a fresh ArgoCD sync (BeforeHookCreation) after database credentials are ready. No live sync or runtime migration completion is claimed; build_3317 is not part of these PRs.

Jiachen0715
Jiachen0715 previously approved these changes Dec 3, 2026
@liuwei08 liuwei08 changed the title fix(DM01-6630): let Cloud SQL migration Jobs finish fix(DM01-6630): finish migration Jobs and support Vault-managed GCP credentials Dec 3, 2026
@liuwei08
liuwei08 requested a review from Jiachen0715 December 3, 2026 07:25
@liuwei08
liuwei08 merged commit f669171 into master Dec 3, 2026
2 checks passed
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