Repository navigation
ci: re-land WIF auth on gcp_backend_auto_dev (slice 2, run.invoker now granted) - #14509
Merged
Git-on-my-level merged 1 commit intoSep 18, 2026
Merged
Conversation
Inverse of BasedHardware#14290. The 35122919864 bake failed the candidate gate because the WIF deployer lacked roles/run.invoker (grant attempt died on expired human ADC). run.invoker verified granted 2026-09-18 via project policy; discriminator run 35076387145 (JSON lane, same image, same gate) passed. Rollback on gate FAIL keeps traffic on the prior revision.
Git-on-my-level
added a commit
that referenced
this pull request
Sep 18, 2026
…ate failures (mint-stage suspect) (#14520) ## Failure-Class None — this is a revert of #14509, not a fix commit (no fix: prefix; see AGENTS.md failure-class protocol). ## Summary Reverts #14509: `gcp_backend_auto_dev` returns to the JSON bridge secret after three consecutive bake failures at the candidate gate (`what_matters_now` FAIL, sub-second gate duration, others NOT_RUN). Committed per the PR's own rollback contract. Traffic safety held all three attempts: candidates stayed 0%, serving never moved (`backend-8a5c388-35307543774-1`=100%). ## Evidence (three attempts) 1. Attempt 1 (35309620748#1, 05:35Z): gate FAIL 981ms after probe invocation. 2. Attempt 2 (#2, 05:56Z): identical FAIL. 3. Attempt 3 (#3, 06:54Z): identical FAIL — **after** `roles/run.invoker` (verified live) AND a self `serviceAccountTokenCreator` grant on the deployer. Manual control, same window: coordinator replayed the exact probe (deployer identity token via impersonation, audience = service URL, ADMIN_KEY+uid auth, X-Serverless-Authorization) against the candidate URL → **HTTP 200** at 05:38Z and again post-attempt-3. Discriminator: manual mint uses human impersonation; the CI mint (`gcloud auth print-identity-token` with no impersonation flag) runs in a WIF-federated session — the remaining untested variable. The acceptance runner intentionally swallows the failure stage/HTTP status (981ms gate ≈ mint-stage failure, not a service round-trip), so the next slice needs the mint step instrumented or a one-off diagnostic run before re-landing. ## What this revert does NOT do - Does not touch #14516 (JSON-free desktop-backend probe — baked green on main). - Does not change any IAM grant; the deployer's role set stays as audited. - Auto-dev auth returns to `secrets.GCP_CREDENTIALS` (bridge key `a3dd0875`), the exact pre-#14509 state. ## Next slice (before any re-land) 1. Add a bounded diagnostic to the mint step (or a dispatch-only probe workflow) that prints the mint subprocess return code class + HTTP status of the candidate call — no token material. 2. Reproduce the federated mint locally (`gcloud auth login --update-adc` federated → `print-identity-token` without impersonation) or via a one-off CI run with the diagnostic. 3. Re-land #14509 content once the mint path is proven green in CI. ## Product invariants affected - INV-DATA-1 Preserved: this revert only changes the deploy authentication identity of the development lane back to the pre-#14509 JSON bridge (no routing authority, endpoint, or project binding changes; `based-hardware-dev` target unchanged; fail-closed traffic gate unchanged). <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/14520?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. -->
Git-on-my-level
added a commit
that referenced
this pull request
Sep 18, 2026
… diagnostics) (#14541) ## Failure-Class Failure-Class: FC-fixture-mock-signature-drift ## Summary Reverts #14509: `gcp_backend_auto_dev` returns to the JSON bridge secret after three consecutive bake failures at the candidate gate (`what_matters_now` FAIL, sub-second gate duration, others NOT_RUN). Committed per the PR's own rollback contract. Traffic safety held all three attempts: candidates stayed 0%, serving never moved (`backend-8a5c388-35307543774-1`=100%). ## Evidence (three attempts) 1. Attempt 1 (35309620748#1, 05:35Z): gate FAIL 981ms after probe invocation. 2. Attempt 2 (#2, 05:56Z): identical FAIL. 3. Attempt 3 (#3, 06:54Z): identical FAIL — **after** `roles/run.invoker` (verified live) AND a self `serviceAccountTokenCreator` grant on the deployer. Manual control, same window: coordinator replayed the exact probe (deployer identity token via impersonation, audience = service URL, ADMIN_KEY+uid auth, X-Serverless-Authorization) against the candidate URL → **HTTP 200** at 05:38Z and again post-attempt-3. Discriminator: manual mint uses human impersonation; the CI mint (`gcloud auth print-identity-token` with no impersonation flag) runs in a WIF-federated session — the remaining untested variable. The acceptance runner intentionally swallows the failure stage/HTTP status (981ms gate ≈ mint-stage failure, not a service round-trip), so the next slice needs the mint step instrumented or a one-off diagnostic run before re-landing. ## What this revert does NOT do - Does not touch #14516 (JSON-free desktop-backend probe — baked green on main). - Does not change any IAM grant; the deployer's role set stays as audited. - Auto-dev auth returns to `secrets.GCP_CREDENTIALS` (bridge key `a3dd0875`), the exact pre-#14509 state. ## Next slice (before any re-land) 1. Add a bounded diagnostic to the mint step (or a dispatch-only probe workflow) that prints the mint subprocess return code class + HTTP status of the candidate call — no token material. 2. Reproduce the federated mint locally (`gcloud auth login --update-adc` federated → `print-identity-token` without impersonation) or via a one-off CI run with the diagnostic. 3. Re-land #14509 content once the mint path is proven green in CI. ## Product invariants affected - INV-DATA-1 Preserved: this revert only changes the deploy authentication identity of the development lane back to the pre-#14509 JSON bridge (no routing authority, endpoint, or project binding changes; `based-hardware-dev` target unchanged; fail-closed traffic gate unchanged). ## v2 note (diagnostics landed first) This re-land follows #14525: the candidate acceptance runner now records failure-class diagnostics (mint rc/class, probe HTTP status) in the acceptance artifact. If this re-land's bake fails again, the artifact names the exact stage and class — no more blind attempts. Rollback contract unchanged: gate FAIL keeps traffic on the prior revision. <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/14541?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
Re-lands the slice-2 WIF auth on
gcp_backend_auto_dev.yml(exact inverse of #14290): swapsgcp_credentialsfor the dual-auth composite's WIF inputs — poolomi-gha-deploy-dev, SAomi-ci-deployer-dev@based-hardware-dev.Failure-Class
Failure-Class: none
Why this is now sound (the 401 RCA)
Bake run 35122919864 failed the candidate gate
what_matters_nowbecause the WIF deployer lackedroles/run.invoker— the acceptance probe mints a deployer identity token (gcloud auth print-identity-token --audiences=<service url>) and calls the candidate revision; run.developer does not grant invocation. Discriminator: run 35076387145 (JSON lane, same imagead7a5b5, same gate) PASSed one day earlier; the identity token principal was the only variable.roles/run.invokeris granted and live since 2026-09-18 (project policy verified). Rollback safety unchanged: on any gate FAIL, traffic stays 100% on the prior revision and the candidate remains at 0%.Test plan
deploy-backend-stackdual-auth landed in ci: WIF-auth backend auto-dev via deploy-backend-stack #14234 and is untouched (WIF/JSON mutual-exclusion validated in-action).gcp_backend_auto_devonmain; success signature =Candidate acceptance PASS: backend/what_matters_now=PASS, backend-integration/health=PASS, backend-sync/health=PASS, backend-sync-backfill/health=PASSthen traffic shift tobackend-<sha>-<run>-<attempt>at 100%.Product invariants affected
Preserved: this PR changes only the deploy authentication identity for the
environment: developmentlane ofgcp_backend_auto_dev.yml(WIF deployer instead of JSON SA). It alters no routing authority, no serving endpoint, no Firebase/Firestore project binding, and no production-family artifact routing; deploys still targetbased-hardware-devexclusively and the fail-closed traffic gate is unchanged.