Skip to content

Conversation

h-kishi
Copy link
Contributor

@h-kishi h-kishi commented Feb 6, 2022

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.

@h-kishi h-kishi force-pushed the feat/signed-elasticsearch branch 2 times, most recently from fd2f018 to d63cfbe Compare February 7, 2022 01:11
@bboure bboure force-pushed the feat/signed-elasticsearch branch from d63cfbe to 5172947 Compare February 15, 2022 19:18
signer.addAuthorization(credentials, new Date());

return httpRequest;
}
Copy link
Member

@bboure bboure Feb 15, 2022

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?

Copy link
Contributor Author

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?

Copy link
Member

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 ✅

Copy link
Contributor Author

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.

@h-kishi h-kishi force-pushed the feat/signed-elasticsearch branch 3 times, most recently from f32cec4 to 09ec53f Compare February 16, 2022 14:27
@bboure bboure force-pushed the master branch 4 times, most recently from d829ea4 to e4a867b Compare February 19, 2022 16:39
@h-kishi h-kishi force-pushed the feat/signed-elasticsearch branch 3 times, most recently from 5740adc to 7358bac Compare February 21, 2022 09:01
@h-kishi
Copy link
Contributor Author

h-kishi commented May 30, 2022

@bboure
Do I need to take any other action?

@bboure
Copy link
Member

bboure commented Jun 11, 2022

@h-kishi sorry for the delay

There is a merge conflict.
Apart from that it looks good

@h-kishi h-kishi force-pushed the feat/signed-elasticsearch branch from 7358bac to af4c567 Compare June 11, 2022 14:38
@h-kishi
Copy link
Contributor Author

h-kishi commented Jun 11, 2022

@bboure Thank you for the reply.
I resolved the merge conflict.

@bboure
Copy link
Member

bboure commented Jun 13, 2022

LGTM

Thanks for the contrib!

@bboure bboure merged commit 1337fb4 into serverless-appsync:master Jun 13, 2022
@github-actions
Copy link

🎉 This PR is included in version 0.20.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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