• shaw's avatar
    fix(vertex): audit fixes for Vertex Service Account feature (#1977) · 93d91e20
    shaw authored
    - Security: force token_uri to Google default, preventing SSRF via crafted service account JSON
    - Dedup: extract shared getVertexServiceAccountAccessToken() to eliminate ~35 lines of duplication between ClaudeTokenProvider and GeminiTokenProvider
    - Fix: apply model mapping + Vertex model ID normalization in forward_as_responses and forward_as_chat_completions paths
    - Fix: exclude service_account from AI Studio endpoint selection (Vertex cannot serve generativelanguage.googleapis.com)
    - Feature: add model restriction/mapping UI for service_account in EditAccountModal
    - Dedup: extract VERTEX_LOCATION_OPTIONS to shared constants
    - i18n: replace all hardcoded Chinese strings in Vertex UI with translation keys
    93d91e20
gateway_forward_as_responses.go 16.6 KB