Repository navigation
Backlog
Description
Is your feature request related to a problem? Please describe.
We run OpenMetadata 2.0.7 on GKE and want to enable semantic search with EMBEDDING_PROVIDER=google and gemini-embedding-001. Today the Google provider only supports the Gemini Developer API (AI Studio):
GoogleEmbeddingClientcallshttps://generativelanguage.googleapis.com/v1beta/models/<model>:embedContent- authentication is only a static API key sent as the
key=query parameter (llmConfiguration.google.apiKey, required: "Google API key is required") LLMGoogleConfighasapiKeyandendpoint, with no project, location or credentials options.endpointis also not exposed as an env var inconf/openmetadata.yaml
I checked the same files on main and found no Vertex AI support there either.
Many organizations on GCP can only use Google models through Vertex AI:
- No long-lived secrets: on GKE the pod already has a Google identity via Workload Identity, so Application Default Credentials (ADC) would remove the API key to create, store and rotate.
- Governance: IAM (
roles/aiplatform.user), audit logs, VPC Service Controls, regional processing and enterprise data terms apply to Vertex AI. Security teams often do not approve AI Studio keys for company metadata. - Same model:
gemini-embedding-001is available on Vertex AI, so the vectors would be equivalent.
Describe the solution you'd like
Add a Vertex AI mode to the Google provider that authenticates with ADC, for example:
llmConfiguration:
google:
apiKey: ${LLM_GOOGLE_API_KEY:-""}
useVertexAI: ${LLM_GOOGLE_USE_VERTEX_AI:-false}
vertexProject: ${LLM_GOOGLE_VERTEX_PROJECT:-""}
vertexLocation: ${LLM_GOOGLE_VERTEX_LOCATION:-"us-central1"}
embeddings:
provider: ${EMBEDDING_PROVIDER:-bedrock}
google:
embeddingModelId: ${GOOGLE_EMBEDDING_MODEL_ID:-"gemini-embedding-001"}
embeddingDimension: ${GOOGLE_EMBEDDING_DIMENSION:-768}When useVertexAI is true:
- get credentials with
GoogleCredentials.getApplicationDefault()(scopehttps://www.googleapis.com/auth/cloud-platform) and sendAuthorization: Bearer <token>, refreshing the token when it expires; - call
https://{location}-aiplatform.googleapis.com/v1/projects/{project}/locations/{location}/publishers/google/models/{model}:predictwith{"instances":[{"content":"<text>"}],"parameters":{"outputDimensionality":<dimension>}}, and readpredictions[0].embeddings.values; - do not require
apiKey.
The same ADC-based auth could later serve the google chat provider (LLM_PROVIDER=google).
Describe alternatives you've considered
- AI Studio API key from a GCP project: works, but it keeps a static secret and stays outside the Vertex AI governance controls described above.
- Vertex AI API key bound to a service account, plus a custom
google.endpoint: it still needs a static key, the endpoint cannot be set by env var, and I could not confirm that Vertex accepts theembedContentpayload the client sends. - OpenAI or Bedrock: these send metadata to a provider outside our cloud, which is what we want to avoid.
Additional context
- Version: OpenMetadata 2.0.7 (server image
openmetadata/server:2.0.7), Helm chart 2.0.7, GKE with Workload Identity, Elasticsearch. - Relevant code:
openmetadata-service/.../search/vector/client/GoogleEmbeddingClient.java,openmetadata-spec/.../configuration/llmConfiguration.json(LLMGoogleConfig,LLMGoogleEmbeddingConfig). - I'm happy to test a build or contribute a PR if the maintainers agree with the approach.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
- StatusShow more project fieldsNo status
Activity
iamkiayun commentedon Nov 27, 2026
I can take the embeddings part of this. I’m testing the Vertex request with Application Default Credentials and checking that the existing AI Studio API-key configuration still works. Are you already preparing a patch? If not, would you be willing to try the draft on your GKE deployment? That would let us verify Workload Identity in the environment where you need it.