Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[awf] api-proxy: Gemini Vertex WIF default OIDC audience and missing project path

Chiusa
#10,711 2 commenti 1 reazione 2 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@lpcox ci sta già lavorando.

Dal 27/10/2026.

  • #10720 di @copilot-swe-agent — integrata

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

awf-triage

Problem
Gemini on Vertex AI with GCP WIF fails in two ways: (1) the token exchange returns 503 Vertex AI OIDC token (gcp) unavailable; (2) Vertex rejects requests with 400 RESOURCE_PROJECT_INVALID.

Context
Original: github/gh-aw#71986 (AWF v0.28.70, Gemini CLI 0.64.0). Related: #8888.

Root Cause

  1. containers/api-proxy/gcp-oidc-token-provider.js uses the bare projects/... provider name as the GitHub token audience. GCP accepts only the full canonical form (iam.googleapis.com/redacted) when allowedAudiences` is unset.
  2. src/services/credentials/vertex-credential-env.ts sets a placeholder GOOGLE_API_KEY. Gemini CLI then selects Vertex express mode, so the request path omits projects/{project}/locations/{location}. The WIF token needs a project-scoped path.

Proposed Solution

  1. Default the GitHub token audience to (iam.googleapis.com/redacted) Keep the explicit AWF_AUTH_OIDC_AUDIENCE override and leave the STS request audience` unchanged. Add tests for the default and the override.
  2. When GCP OIDC is active, have the Vertex adapter rewrite native model paths /v1beta1/publishers/google/models/<m>:<method> to /v1beta1/projects/<project>/locations/<location>/publishers/.... Preserve the version, method and query string. Leave project-scoped paths and static-key express mode unchanged. Use the location-appropriate host. Read AWF_AUTH_GCP_PROJECT and AWF_AUTH_GCP_LOCATION from the compiler, which needs a gh-aw-side change.
  3. Test v1 and v1beta1, query preservation, and regional and global hosts.

Generated by Firewall Issue Dispatcher · copilot · auto · ~20 AIC · ⊞ 5.5K · ◷

Lingua principale
TypeScript
Stelle
157
Fork
80
Merge medio
3h 44m
PR unite (30g)
439

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di github/gh-aw-firewall

Tutte le issue di github/gh-aw-firewall

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.