-
Notifications
You must be signed in to change notification settings - Fork 182
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
[FEATURE] Support OpenSearch Serverless request signing #287
Comments
Thanks for reporting this @pingleig!
|
Beyond request signing, APIs such as |
Is it possible that someone could make it unnecessary to specify a service name and that the client would try aoss and es and it would find one that works? |
I would say no. Signatures contain the service name. So unless the service renames You can recognize a service by a URL or by connecting to it and looking at headers.
|
@pingleig Support for OpenSearch Serverless is now available in opensearch-java 2.2.0. |
Is your feature request related to a problem?
Current builtin
AwsSdk2Transport
does not work with serverless https://aws.amazon.com/opensearch-service/features/serverless/ because:es
while serverless requiresaoss
Content-Length
header while serverless does not use itAws4Signer
while serverless usesAws4UnsignedPayloadSigner
External library does not work due to
Content-Length
AwsRequestSigningApacheInterceptor.java
https://github.com/acm19/aws-request-signing-apache-interceptor/blob/031791a8f11c3ecb2d687137ba36cc805442687a/src/main/java/io/github/acm19/aws/interceptor/http/AwsRequestSigningApacheInterceptor.java#L134
The official guide is using AWS SDK v1 https://github.com/awsdocs/amazon-opensearch-service-developer-guide/blob/master/sample_code/AmazonOpenSearchJavaClient-main/src/main/java/AmazonOpenSearchServiceSample.java
What solution would you like?
Content-Length
behavior in theAwsSdk2Transport
(but I am not sure if we can valid it ...What alternatives have you considered?
Do you have any additional context?
I have a demo repo https://github.com/pingleig/opensearch-unofficial-demo
The text was updated successfully, but these errors were encountered: