Repository navigation
Wire dev Cloud Run backend to LLM gateway - #8514
Conversation
There was a problem hiding this comment.
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 IP172.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) ingoogle-github-actions/deploy-cloudrunbefore 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 |
There was a problem hiding this comment.
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>
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
ea30a76 to
efde341
Compare
Summary
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.