Skip to content

Wire dev Cloud Run backend to LLM gateway - #8514

Merged
Git-on-my-level merged 1 commit into
mainfrom
codex/wire-cloudrun-llm-gateway
Jun 28, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
codex/wire-cloudrun-llm-gateway

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Jun 28, 2026 •

Copy link
Copy Markdown
Member

Summary

  • expose dev llm-gateway through a private GKE internal ingress on reserved IP 172.16.63.232
  • add BackendConfig health checks so the ingress uses /health instead of /
  • set OMI_LLM_GATEWAY_URL for dev Cloud Run backend services in auto-dev deploys
  • keep prod llm-gateway ingress disabled

Live dev actions already applied

Validation

Notes

OMI_LLM_GATEWAY_SERVICE_TOKEN is a secret and remains synced via Secret Manager. OMI_LLM_GATEWAY_URL is non-secret runtime config; this PR makes that config explicit for dev Cloud Run instead of relying only on the GKE backend-listen Helm values.

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 6 files

Confidence score: 2/5

  • In .github/workflows/gcp_backend_auto_dev.yml, Cloud Run is deployed as fully managed but needs access to private IP 172.16.63.232; without VPC egress configuration, runtime calls to that backend will fail and the deployed service may be non-functional in dev. Add the required Cloud Run deploy flags (for example --vpc-connector=... and appropriate egress settings) in google-github-actions/deploy-cloudrun before merging.
Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name=".github/workflows/gcp_backend_auto_dev.yml">

<violation number="1" location=".github/workflows/gcp_backend_auto_dev.yml:72">
P0: Cloud Run fully managed cannot reach private RFC 1918 IP 172.16.63.232 without a Serverless VPC Connector or Direct VPC egress. The google-github-actions/deploy-cloudrun action requires `flags: --vpc-connector=...` to enable this. Without it, the downstream HTTP call to the LLM gateway will time out from these services.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

image: gcr.io/${{ vars.GCP_PROJECT_ID }}/${{ env.SERVICE }}:${{ steps.image-tag.outputs.short_sha }}
env_vars: |
GOOGLE_CLOUD_PROJECT=based-hardware
OMI_LLM_GATEWAY_URL=http://172.16.63.232

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0: Cloud Run fully managed cannot reach private RFC 1918 IP 172.16.63.232 without a Serverless VPC Connector or Direct VPC egress. The google-github-actions/deploy-cloudrun action requires flags: --vpc-connector=... to enable this. Without it, the downstream HTTP call to the LLM gateway will time out from these services.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .github/workflows/gcp_backend_auto_dev.yml, line 72:

<comment>Cloud Run fully managed cannot reach private RFC 1918 IP 172.16.63.232 without a Serverless VPC Connector or Direct VPC egress. The google-github-actions/deploy-cloudrun action requires `flags: --vpc-connector=...` to enable this. Without it, the downstream HTTP call to the LLM gateway will time out from these services.</comment>

<file context>
@@ -69,6 +69,7 @@ jobs:
           image: gcr.io/${{ vars.GCP_PROJECT_ID }}/${{ env.SERVICE }}:${{ steps.image-tag.outputs.short_sha }}
           env_vars: |
             GOOGLE_CLOUD_PROJECT=based-hardware
+            OMI_LLM_GATEWAY_URL=http://172.16.63.232
           secrets: |
             SERVICE_ACCOUNT_JSON=SERVICE_ACCOUNT_JSON:latest
</file context>

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in efde341. The live dev Cloud Run services already use Direct VPC egress, so I made that explicit in all three deploy-cloudrun steps with --network=omi-dev-vpc-1, --subnet=omi-us-central1-dev-vpc-1-subnet-1, and --vpc-egress=private-ranges-only. This preserves private RFC1918 reachability to http://172.16.63.232 without introducing a Serverless VPC Connector.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The parent comment was too broad here: the dev Cloud Run deploys already set Direct VPC egress with --network, --subnet, and --vpc-egress, so the RFC1918 reachability concern is addressed. Thanks for the extra context.

@Git-on-my-level
Git-on-my-level force-pushed the codex/wire-cloudrun-llm-gateway branch from ea30a76 to efde341 Compare June 28, 2026 21:49
@Git-on-my-level
Git-on-my-level merged commit 2955e70 into main Jun 28, 2026
3 checks passed
@Git-on-my-level
Git-on-my-level deleted the codex/wire-cloudrun-llm-gateway branch June 28, 2026 21:53
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