Repository navigation
fix(deploy): migrate dev public config bindings - #9693
Merged
Merged
Conversation
Git-on-my-level
added a commit
that referenced
this pull request
Jul 14, 2026
## Summary - complete the development-only Cloud Run migration of public configuration that remains legacy Secret Manager-bound - derive eligible public names from the checked-in dev runtime manifest rather than a hand-maintained one-variable list - cover `backend`, `backend-sync`, `backend-sync-backfill`, and `backend-integration` before their canonical no-traffic redeploys ## Root cause PR #9693 safely migrated `GOOGLE_CLIENT_ID` for two services, but dev rollout `29313849625` then exposed the next legacy type mismatch: `STT_PRERECORDED_MODEL` remained Secret Manager-bound while the runtime manifest declares it public. Read-only inventory showed remaining type transitions across four dev services. This change removes only bindings where the environment variable is declared public for that exact dev service **and** the legacy secret reference is self-referential. The helper rejects non-dev/project targets and multi-container service shapes, then uses `gcloud run services update --no-traffic` before the normal candidate deploy. ## Verification - RED: regression test required both public bindings to be removed together before implementation - selected Cloud Run deployment-contract suite: **121 passed** - focused preflight + deployment-contract tests: **14 passed** - `actionlint .github/workflows/gcp_backend_auto_dev.yml` — passed - YAML parse using backend virtualenv — passed - `git diff --check` — passed - independent review — approved ## Scope Development-only workflow and helper. No production workflow, Cloud Run service, secret deletion, or traffic change is included. <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/9694?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="Review in cubic" src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GOOGLE_CLIENT_IDSecret Manager binding before the normal candidate deploy applies the public literal--no-trafficRoot cause
GOOGLE_CLIENT_IDwas intentionally reclassified as public configuration in #9670, but the existing devbackendandbackend-syncservices still hold Secret Manager bindings. Cloud Run rejects changing that binding type in the samegcloud run deploycommand as--update-env-vars.The dev auto-deploy now invokes the existing Cloud Run preflight helper before the usual candidate deployment. It refuses non-dev projects, detects only the exact legacy binding, and creates a no-traffic transition revision before the normal no-traffic candidate deployment and validation/traffic-shift gates. No production workflow or service is changed.
Verification
.github/workflows/gcp_backend_auto_dev.yml— passedgit diff --check— passedgcloud run services update --helpverified--no-traffic; read-only dev inspection confirmed both affected services currently bindGOOGLE_CLIENT_IDfrom Secret ManagerScope
Development-only migration. No production deployment, configuration write, traffic shift, or secret deletion is included.