Skip to content

fix: preserve embedding metadata through authorizer datasource filter#80

Merged
samcm merged 1 commit intomasterfrom
daring-seal-931
Mar 17, 2026
Merged

fix: preserve embedding metadata through authorizer datasource filter#80
samcm merged 1 commit intomasterfrom
daring-seal-931

Conversation

@samcm
Copy link
Copy Markdown
Member

@samcm samcm commented Mar 17, 2026

Summary

FilterDatasources was building a new DatasourcesResponse but only copying EthNodeAvailableEmbeddingAvailable and EmbeddingModel got silently dropped. With OIDC auth on the proxy, the server's discovery call went through the filter, lost embedding info, and searchruntime.Build returned nil. Server started without search and panicked on the first search request (nil ExampleIndex receiver). This preserves embedding metadata through the filter and makes search runtime required at startup so the server fails fast instead of running degraded.

FilterDatasources was constructing a new DatasourcesResponse but only
copying EthNodeAvailable — EmbeddingAvailable and EmbeddingModel were
silently dropped. When the proxy has OIDC auth enabled, the server's
discovery call hit the authorizer filter, embedding info vanished, and
searchruntime.Build returned nil. The server started without search,
and the first search request panicked on a nil ExampleIndex receiver.

Also makes search runtime required at startup (server refuses to start
without proxy embedding) and simplifies the builder accordingly.
@samcm samcm merged commit 3295365 into master Mar 17, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant