-
-
Notifications
You must be signed in to change notification settings - Fork 69
feat: Support signed request to Elasticsearch service #151
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
feat: Support signed request to Elasticsearch service #151
Conversation
fd2f018
to
d63cfbe
Compare
d63cfbe
to
5172947
Compare
signer.addAuthorization(credentials, new Date()); | ||
|
||
return httpRequest; | ||
} |
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.
Could we also add the option to load the keys from env vars and/or local credentials file?
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.
Good point.
I added elasiticsearch.useSignature
option and modified to load credentials from config, env vars or local file.
By the way, I'm using the name elasticsearch
in the config, would openSearch
be more appropriate?
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.
Great! thanks!
Yes openSearch
is probably what we should start calling things now ✅
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.
Thanks!
I changed the name from elasticsearch
to openSearch
.
f32cec4
to
09ec53f
Compare
d829ea4
to
e4a867b
Compare
5740adc
to
7358bac
Compare
@bboure |
@h-kishi sorry for the delay There is a merge conflict. |
7358bac
to
af4c567
Compare
@bboure Thank you for the reply. |
LGTM Thanks for the contrib! |
🎉 This PR is included in version 0.20.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I added an implementation sending signed HTTP requests to Amazon Elasticsearch(OpenSearch) Service.
It is almost the same as the official sample.
It is compatible with the original behavior.