Vertex AI generateContent private GCS reads use privileged service agent with no choice of execution identity

I’m concerned about the default authorization model for Cloud Storage file references in Vertex AI Gemini.

In our setup, a calling service account has a custom role containing only aiplatform.endpoints.predict. It has no permission to read our private Cloud Storage objects directly. Nevertheless, submitting a Gemini generateContent request containing this part allows the object’s contents to be returned:

"fileData": {
  "fileUri": "gs://PRIVATE_BUCKET/private-file.txt",
  "mimeType": "text/plain"
}

The object is fetched using the Google-managed Vertex AI service agent:

service-PROJECT_NUMBER@gcp-sa-aiplatform.iam.gserviceaccount.com

Google automatically grants this identity roles/aiplatform.serviceAgent on the project. That role includes storage.objects.get, giving it access to private objects across the project unless additional controls prevent access.

The practical consequence is surprising: granting inference permission can indirectly expose private project storage that the caller cannot access directly. Restricting the caller’s storage permissions does not close this path.

This is particularly dangerous for applications that proxy inference requests for users. This path can expose unrelated project data.

Due to the high complexity of the inference APIs, their fast evolution, and the need for streaming in the frontend, it is very common to proxy an entire inference endpoint to an otherwise untrusted client. An example of this is LiteLLM, which performs only API key injection, cost tracking and rate limiting, while having no option to restrict cloud storage references within the request.

I would expect an explicit execution identity, similar to attaching a service account to a Compute Engine VM. The caller would need permission to use that identity, and its permissions would determine which objects Gemini could fetch. I cannot find an equivalent option for ordinary Gemini generateContent requests.