Skip to content

fix(backend): use http:// for parakeet ILB URL in Cloud Run services - #9549

Merged
beastoin merged 3 commits into
mainfrom
fix/parakeet-ilb-http-scheme
Jul 12, 2026

Conversation

@beastoin

@beastoin beastoin commented Jul 12, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #9548

Summary

  • Reverts https:// → http:// for HOSTED_PARAKEET_API_URL in prod Cloud Run services (backend, backend-sync, backend-integration) in runtime_env.yaml
  • The parakeet ILB (parakeet.omi.me) serves HTTP-only on port 80 (no TLS termination) — https:// causes connection timeouts on all voice message transcription
  • Adds test_repo_ilb_endpoints_use_http_scheme regression test that validates all ILB endpoint env vars use http:// scheme across all environments
  • Fixes test fixtures that incorrectly used https://parakeet.omi.me

Root Cause

PR #9437 (commit c70d19d, "harden backend runtime") changed the scheme to https:// for all 3 prod Cloud Run entries. The GKE backend-listen entry was unaffected (uses ClusterIP).

Changes

File Change
backend/deploy/runtime_env.yaml https://parakeet.omi.me → http://parakeet.omi.me for 3 Cloud Run services
backend/tests/unit/test_backend_runtime_env_validator.py Add ILB scheme validation test + fix https:// in test fixtures

Audit

Checked all *.omi.me and *.omiapi.com ILB URLs in runtime_env.yaml:

  • parakeet.omi.me — fixed (3 Cloud Run entries: http)
  • nllb.omi.me — already http (correct)
  • No diarizer/vad/pusher ILB URLs in runtime_env (they use ClusterIP within GKE)
  • All dev URLs (*.omiapi.com) — already http (correct)

Security

No new exposure. parakeet.omi.me resolves to private 172.16.x.x ILB. Cloud Run uses VPC egress private-ranges-only. The ILB is intentionally HTTP-only (gce-internal, allow-http: true, no TLS block in Helm values).

Impact

Voice message transcription via parakeet broken on all 3 prod Cloud Run services since 01:13 UTC today.

Testing

  • cd backend && python3 -m pytest tests/unit/test_backend_runtime_env_validator.py tests/unit/test_render_backend_runtime_env.py -q → 43 passed
  • python3 backend/scripts/validate-backend-runtime-env.py --env prod --check-rendered-cloud-run → passed

Test Plan

  • Verify Cloud Run services can reach http://parakeet.omi.me/health after deploy
  • Verify voice message transcription works end-to-end

🤖 Generated with Claude Code

beastoin and others added 3 commits July 12, 2026 08:25
PR #9437 changed HOSTED_PARAKEET_API_URL from http:// to https:// for
prod Cloud Run services (backend, backend-sync, backend-integration).
The parakeet ILB is HTTP-only (port 80, no TLS), so https:// causes
all transcription requests to timeout.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Add test_repo_ilb_endpoints_use_http_scheme that validates all ILB
endpoint env vars (HOSTED_PARAKEET_API_URL, HOSTED_TRANSLATION_API_URL)
use http:// scheme across all environments. Also fix test fixtures
that incorrectly used https://parakeet.omi.me.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
GKE services in runtime_env.yaml are direct children of the gke key
(not nested under 'services' like cloud_run), so the ILB scheme test
was silently skipping GKE entries. Fixed traversal to handle both
structures.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@beastoin

Copy link
Copy Markdown
Collaborator Author

CP9 Changed-Path Coverage Checklist

Path ID Sequence ID(s) Changed path Happy-path test Non-happy-path test L1 result + evidence L2 result + evidence If untested: justification
P1 N/A runtime_env.yaml:571 prod/cloud_run/backend HOSTED_PARAKEET_API_URL http→https Validator passes: validate-backend-runtime-env.py --env prod → passed Mutation test: set back to https → test_repo_ilb_endpoints_use_http_scheme[prod] FAILS with violation PASS — validator + mutation test N/A (config-only)
P2 N/A runtime_env.yaml:651 prod/cloud_run/backend-sync same change Same as P1 — inherited via test traversal Same mutation catches all 3 services PASS N/A
P3 N/A runtime_env.yaml:706 prod/cloud_run/backend-integration same change Same as P1 Same mutation PASS N/A
P4 N/A test_backend_runtime_env_validator.py:1186 new test test_repo_ilb_endpoints_use_http_scheme Test passes (2 parametrized: dev + prod) Mutation: https→ test FAILS correctly PASS — 43 tests pass N/A
P5 N/A test_backend_runtime_env_validator.py:802,834 fixture fix https→http test_provisional_prod_endpoint_requires_presence_but_not_exact_value passes Was FAILING before fix (value mismatch) PASS N/A

CP8 Test Detail Table

Sequence ID Path ID Scenario ID Changed path Exact test command Test name(s) Assertion intent Result Evidence link
N/A P1-P3 T1 runtime_env.yaml Cloud Run parakeet URLs python3 backend/scripts/validate-backend-runtime-env.py --env prod --check-rendered-cloud-run N/A (script) Rendered Cloud Run env matches manifest PASS This comment
N/A P1-P3 T2 runtime_env.yaml Cloud Run parakeet URLs cd backend && python3 -m pytest tests/unit/test_backend_runtime_env_validator.py::test_repo_ilb_endpoints_use_http_scheme -v test_repo_ilb_endpoints_use_http_scheme[dev], [prod] All ILB URLs use http:// PASS This comment
N/A P1-P3 T3 runtime_env.yaml mutation test `sed 's http://parakeet https://parakeet ' + pytest` test_repo_ilb_endpoints_use_http_scheme[prod]
N/A P4-P5 T4 test_backend_runtime_env_validator.py full suite cd backend && python3 -m pytest tests/unit/test_backend_runtime_env_validator.py tests/unit/test_render_backend_runtime_env.py -q All 43 tests No regressions PASS (43 passed) This comment

L1 Synthesis

All changed paths (P1-P5) proven at L1. P1-P3 (runtime_env.yaml config fix) validated via prod/dev validator pass + mutation test proving regression guard. P4-P5 (test additions/fixes) validated via 43/43 test pass + mutation verification. No untested paths. L2 is N/A for this config-only PR — no runtime component to build and integrate.

by AI for @beastoin

@beastoin

Copy link
Copy Markdown
Collaborator Author

All Checkpoints Passed

Checkpoint Status
CP0-CP6 Done (skills, issue, workspace, explore, codex, implement, PR)
CP7 PR_APPROVED_LGTM (reviewer, 2 iterations)
CP8 TESTS_APPROVED (tester, 2 iterations — GKE traversal fix)
CP9A (L1) PASS — validator/renderer/mutation all verified
CP9B (L2) PASS — config-only PR, no runtime integration path
CP9C (L3) N/A — no Helm/cluster changes

PR is ready for merge. All changed paths tested, regression guard in place.

by AI for @beastoin

@beastoin
beastoin merged commit 52d74be into main Jul 12, 2026
22 checks passed
@beastoin
beastoin deleted the fix/parakeet-ilb-http-scheme branch July 12, 2026 08:52
@beastoin

Copy link
Copy Markdown
Collaborator Author

lgtm

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.

Fix HOSTED_PARAKEET_API_URL: https → http for Cloud Run services

1 participant