-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tests for keyless auth to Azure Search vector store #1683
base: main
Are you sure you want to change the base?
Add tests for keyless auth to Azure Search vector store #1683
Conversation
mattgotteiner
commented
Nov 6, 2024
- Add test validating DefaultAzureCredential can be used with the Azure Search vector store
- Fix filter tests on Windows due to differences in checked-in newlines vs. platform-specific newline.
- Adds dependencies on azure-core, azure-identity, and azure-json packages
@@ -300,6 +301,14 @@ public static class Config { | |||
|
|||
@Bean | |||
public SearchIndexClient searchIndexClient() { | |||
// Only set AZURE_AI_SEARCH_TEST_KEYLESS if role-based authentication is set up correctly on the integration service | |||
// https://learn.microsoft.com/azure/search/search-security-rbac | |||
if (System.getenv("AZURE_AI_SEARCH_TEST_KEYLESS").equals("true")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we should add some sort of useKeyless
or similar name to AzureVectorStoreProperties
rather than hard coding a search for an environment variable. Boot will be able to support getting this value from an env-var as well as lots of other places.
much appreciated! See comment above. |