Skip to content

[awf] Squid allowlist: Gemini API domains missing, causing Smoke Gemini failures #2984

@lpcox

Description

@lpcox

Problem

The Smoke Gemini workflow fails on every PR with TypeError: fetch failed sending request from @google/gemini-cli. Firewall logs show 98 blocks to localhost:8080 (AWF's Gemini API proxy port 10003) and 15 blocks to 172.30.0.30:10003, while the actual Gemini API host (generativelanguage.googleapis.com or aiplatform.googleapis.com) is not in the domain allowlist.

Context

Original issue: github/gh-aw#31575

Failing since at least 2026-05-09 across 5+ consecutive PR runs. Zero tokens consumed, confirming requests never reach the API. The AWF Gemini sidecar (containers/api-proxy/, port 10003) forwards requests upstream, but the upstream Gemini API host is not whitelisted in GH_AW_ALLOWED_DOMAINS for the Smoke Gemini workflow.

Root Cause

generativelanguage.googleapis.com (Gemini CLI v1beta) and/or aiplatform.googleapis.com (Vertex) are absent from the allowed-domains list passed to awf in the Smoke Gemini workflow definition. Squid denies those CONNECT requests, surfacing as a transport-level fetch failed.

Proposed Solution

  1. Add generativelanguage.googleapis.com and aiplatform.googleapis.com to GH_AW_ALLOWED_DOMAINS in the Smoke Gemini workflow config.
  2. Enable DEBUG=gemini-cli:* or capture error.cause in the agent step to surface the exact denied host in future failures.
  3. Verify fix by confirming firewall log shows TCP_TUNNEL (ALLOWED) for the Gemini host with non-zero request count on next PR run.

Generated by Firewall Issue Dispatcher · ● 938.8K ·

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions