Skip to content
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

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

mattgotteiner
Copy link

  • 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

@markpollack markpollack added this to the 1.0.0-M4 milestone Nov 6, 2024
@@ -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")) {
Copy link
Member

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.

@markpollack markpollack self-assigned this Nov 6, 2024
@markpollack
Copy link
Member

much appreciated! See comment above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants