Skip to content

Incident: admin.omi.me down Jul 15 — PR #9670 moved NEXT_PUBLIC build args to GitHub vars that were never created #9820

Closed

Description

@kodjima33

Symptom

admin.omi.me served only its error boundary ("This page couldn't load") from ~02:01 UTC Jul 15 until 17:31 UTC. Console showed FirebaseError: auth/invalid-api-key; the served bundle contained no Firebase API key (grep AIzaSy over all chunks: empty).

Root cause

PR #9670 (efca8b8) switched the web deploy workflows' NEXT_PUBLIC_* build args from their working sources (admin: GCP Secret Manager fetch step; app/frontend/personas: GitHub environment secrets) to ${{ vars.NEXT_PUBLIC_* }} — but the GitHub Actions variables were never created. In GH Actions an undefined vars.* expands to an empty string, so the next admin deploy (run 29382966475, triggered by docs-only #9774) silently built an image with every Firebase config value empty and shipped it. Evidence: run 29382966475 logs show build-arg:NEXT_PUBLIC_FIREBASE_API_KEY: "" vs run 29236411348 (Jul 13, working) showing the real value.

Resolution (done)

  1. Rolled Cloud Run traffic back to last good revision omi-admin-dashboard-00112-qn4 (immediate mitigation).
  2. Created the missing repo-level Actions variables (NEXT_PUBLIC_FIREBASE_API_KEY/AUTH_DOMAIN/PROJECT_ID/STORAGE_BUCKET/MESSAGING_SENDER_ID/APP_ID/VAPID_KEY/MEASUREMENT_ID, NEXT_PUBLIC_PLUGINS_APP_ID, NEXT_PUBLIC_OMI_API_URL, NEXT_PUBLIC_API_BASE_URL). Values taken from the last working build log and verified identical to the configs baked in the live omi-web-app / omi-web bundles (all sites share one Firebase web app).
  3. Re-dispatched gcp_admin.yml (run 29436610726, success) → revision 00114 now serves 100% with the key baked; dashboard verified loading with data in the browser.

Remaining gaps

  • NEXT_PUBLIC_MIXPANEL_TOKEN and NEXT_PUBLIC_EXTRA_PROMPT_RULES (gcp_personas.yml) still have no variable; their values live only in the old environment secrets, which can't be read back. Next personas deploy will bake them empty. Someone with the original values should create those two variables. (Personas + frontend deploys were already failing before fix(deploy): classify secret and public setting boundaries #9670 for unrelated reasons — frontend since Jul 6, personas since Jul 13.)
  • Durable guard: nothing fails a build when a required NEXT_PUBLIC_* build arg is empty — this shipped as a successful deploy. The web Dockerfiles should assert non-empty required args (or check_deployment_secret_boundary.py should verify every vars.* referenced in a workflow actually exists). Same failure class as any migration that moves a setting's source without migrating the value.

cc @Git-on-my-level

Activity

  1. Git-on-my-level commented on Jul 15, 2026

    @Git-on-my-level
    Member

    Will open a follow-up fix

  2. Git-on-my-level commented on Jul 18, 2026

    @Git-on-my-level
    Member

    Resolved by #9828 and #9845. All four public builds now use a reviewed per-environment repository contract, pre-build nonempty validation at the deployed SHA, Docker-level empty-input guards, and CI/preflight contract checks. Verified on current main with the public-build contract check and its 19 fixtures; the post-merge admin deployment succeeded in run 29656307078.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions