mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2290] [Issue]: Google Vertex AI connections send no authentication (service-account JWT auth dropped), returning 401 #1126
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#1126
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Romuromylus on GitHub (Jun 5, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2290
Originally assigned to: @SpicyMarinara on GitHub.
Summary
A google_vertex connection is selectable in the UI but sends no auth in the refactor. The service-account JWT signing and bearer-token flow from main is gone, so every Vertex generation/stream is unauthenticated and returns HTTP 401.
Expected behavior
A Google Vertex AI connection should authenticate via a service-account JWT exchanged for an OAuth2 bearer access token (as on main), and send that bearer on every request to the aiplatform endpoint.
Actual behavior
The refactor's google_vertex endpoint adds no query key and no auth header, and complete_google/stream_google post with no bearer_auth, no Authorization, and no x-goog-api-key. Since the Vertex base requires an OAuth2 bearer and rejects API keys, the provider is non-functional.
Steps to reproduce
Impact area
Environment provider note
Provider: Google Vertex AI (google_vertex).
Regression notes
Worked on main. Main signs an RS256 JWT from the service-account private_key and exchanges it for a cached bearer token (
packages/server/src/services/llm/providers/google.provider.ts:66-114,116-130), applied when providerKind is google_vertex (:266-269). In the refactor,google_vertex_endpointadds no key/auth (src-tauri/crates/llm/src/lib.rs:2396-2402, vs the plain-google?key=at:2442), andcomplete_google/stream_googlesend with no bearer (:2540-2547,2581-2588). A full grep across src + src-tauri + crates returns zero hits for RS256/jwt-bearer/private_key/client_email/token_uri/service_account; the only auth in the crate is OpenAI bearer, claude_subscription OAuth, and Anthropic x-api-key. The Vertex default base is the real aiplatform.googleapis.com endpoint (:226-229).Environment
5ddb9840(compared against main @b4ab97f)Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Jun 6, 2026):
Yeah, needs fixing.
https://docs.cloud.google.com/gemini-enterprise-agent-platform/machine-learning/authentication
@SpicyMarinara commented on GitHub (Jun 6, 2026):
Fixed on refactor in commit
1a18f83d.What changed:
Verification: