OpenSearchVectorSearch fails to detect AOSS is enabled when using RequestAWS4SignerAuth from opensearch-py #14129
Closed
2 of 14 tasks
Labels
🔌: aws
Primarily related to Amazon Web Services (AWS) integrations
🤖:bug
Related to a bug, vulnerability, unexpected error with an existing feature
Ɑ: vector store
Related to vector store module
System Info
langchain 0.0.335
macOS 14.1.1 / Windows 10.0.19045
Python 3.11.6 / 3.10.9
Who can help?
@naveentatikonda
Information
Related Components
Reproduction
Install dependencies
Import packages
Create AOSS auth
Create AOSS vector search class
Check if AOSS vector search identifies itself as AOSS
Returns False
Expected behavior
AOSS should correctly identify itself as AOSS given the configuration above, which means that
database.is_aoss
should return True in this case.The issue is related to how the internal
_is_aoss_enabled
method works:The
RequestsAWSV4SignerAuth
does not expose the service property directly, but via the signer attribute. In order to respect that,is_aoss_enabled
should be adapted as following:The text was updated successfully, but these errors were encountered: