Skip to content

ci: roll backend auto-dev auth back to JSON - #14290

Merged
Git-on-my-level merged 1 commit into
BasedHardware:mainfrom
Git-on-my-level:ci/wif-backend-auto-dev-rollback
Sep 17, 2026
Merged

Git-on-my-level merged 1 commit into
BasedHardware:mainfrom
Git-on-my-level:ci/wif-backend-auto-dev-rollback

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Sep 17, 2026 •

Copy link
Copy Markdown
Member

Summary

Roll auto-dev backend CD back to JSON GCP_CREDENTIALS (Joan). Keep dual-auth in deploy-backend-stack (WIF still valid for a later retry).

WIF bake 35122919864 authenticated and deployed 0% candidates as omi-ci-deployer-dev@, then failed candidate what_matters_now (HTTP 401 from the app after run.invoker; not a Cloud Run 403). Serving stayed on backend-1bdf57b-35076387145-1=100%.

Product invariants affected

  • INV-DATA-1

Failure-Class: none

Review in cubic

WIF candidate what_matters_now failed after invoker grant (app 401, not Cloud Run 403). Restore Joan JSON on auto-dev only; keep dual-auth in deploy-backend-stack.
@Git-on-my-level
Git-on-my-level merged commit 706f819 into BasedHardware:main Sep 17, 2026
38 checks passed
Git-on-my-level added a commit that referenced this pull request Sep 18, 2026
Inverse of #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
…w granted) (#14509)

## Summary
Re-lands the slice-2 WIF auth on `gcp_backend_auto_dev.yml` (exact
inverse of #14290): swaps `gcp_credentials` for the dual-auth
composite's WIF inputs — pool `omi-gha-deploy-dev`, SA
`omi-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_now`
because the WIF deployer lacked `roles/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 image `ad7a5b5`, same gate) PASSed one day earlier; the
identity token principal was the only variable. `roles/run.invoker` is
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
- Composite `deploy-backend-stack` dual-auth landed in #14234 and is
untouched (WIF/JSON mutual-exclusion validated in-action).
- Merge triggers Release Eligibility → `gcp_backend_auto_dev` on `main`;
success signature = `Candidate acceptance PASS:
backend/what_matters_now=PASS, backend-integration/health=PASS,
backend-sync/health=PASS, backend-sync-backfill/health=PASS` then
traffic shift to `backend-<sha>-<run>-<attempt>` at 100%.
- If the gate FAILs again: revert this PR (single commit) and the lane
returns to the JSON bridge secret; traffic never moved.

## Product invariants affected

- INV-DATA-1

Preserved: this PR changes only the deploy *authentication identity* for
the `environment: development` lane of `gcp_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 target
`based-hardware-dev` exclusively and the fail-closed traffic gate is
unchanged.


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/14509?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
Inverse of #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.
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.

1 participant