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

Added Sigv4 Section to JavaScript Client #1796

Merged
merged 2 commits into from
Nov 3, 2022

Conversation

nhtruong
Copy link
Contributor

@nhtruong nhtruong commented Nov 2, 2022

Signed-off-by: Theo Truong [email protected]

  • By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and subject to the Developers Certificate of Origin.
    For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@nhtruong nhtruong requested a review from a team as a code owner November 2, 2022 19:47
@@ -141,6 +141,68 @@ async function search() {
search().catch(console.log);
```

## Authenticate with Amazon OpenSearch Service - AWS Sigv4
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we add a simple sentence to separate the headings? Suggest:

Use the following code to authenticate with Amazon OpenSearch Service.

## Authenticate with Amazon OpenSearch Service - AWS Sigv4

### Using AWS V2 SDK

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above. Suggest:

Use the following code to authenticate with AWS V2 SDK.

});
```

### Using AWS V3 SDK
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above. Suggest:

Use the following code to authenticate with AWS V3 SDK.

Copy link
Collaborator

@kolchfa-aws kolchfa-aws left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Just a couple of small comments. Thank you!

@Naarcha-AWS Naarcha-AWS added the backport 2.3 PR: Backport label for 2.3 label Nov 3, 2022
@Naarcha-AWS Naarcha-AWS merged commit bdbf110 into opensearch-project:main Nov 3, 2022
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 3, 2022
* Added Sigv4 Section to JavaScript Client

Signed-off-by: Theo Truong <[email protected]>

* Adjusted according to style code/headers guide

Signed-off-by: Theo Truong <[email protected]>

Signed-off-by: Theo Truong <[email protected]>
(cherry picked from commit bdbf110)
@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.3 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-2.3 2.3
# Navigate to the new working tree
cd .worktrees/backport-2.3
# Create a new branch
git switch --create backport/backport-1796-to-2.3
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 bdbf11074054e124a4af3ff2246db4c8336bb3ae
# Push it to GitHub
git push --set-upstream origin backport/backport-1796-to-2.3
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-2.3

Then, create a pull request where the base branch is 2.3 and the compare/head branch is backport/backport-1796-to-2.3.

Naarcha-AWS pushed a commit that referenced this pull request Nov 3, 2022
* Added Sigv4 Section to JavaScript Client

Signed-off-by: Theo Truong <[email protected]>

* Adjusted according to style code/headers guide

Signed-off-by: Theo Truong <[email protected]>

Signed-off-by: Theo Truong <[email protected]>
(cherry picked from commit bdbf110)

Co-authored-by: Theo Nam Truong <[email protected]>
@nhtruong nhtruong deleted the javascript/sigv4 branch November 4, 2022 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.3 PR: Backport label for 2.3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants