-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support AwsSigV4 signing for Amazon OpenSearch Serverless (#133)
* Support AwsSigV4 signing for Amazon OpenSearch Serverless - Make the service ID customizable, so it can be set to "aoss" for serverless - Include the x-amz-content-sha256 header - Don't sign the content-length header Signed-off-by: Thomas Farr <[email protected]> * Add changelog entry Signed-off-by: Thomas Farr <[email protected]> * Add to USER_GUIDE Signed-off-by: Thomas Farr <[email protected]> * Wording changes Signed-off-by: Thomas Farr <[email protected]> * Rename `serviceId` parameter to `service` and describe as "service code" Signed-off-by: Thomas Farr <[email protected]> * Include x-amz-content-sha256 header in canonical/signed headers Signed-off-by: Thomas Farr <[email protected]> * Bump AWSSDK.Core Signed-off-by: Thomas Farr <[email protected]> * Fix use of obsolete method Signed-off-by: Thomas Farr <[email protected]> * Fix tests Signed-off-by: Thomas Farr <[email protected]> * Add test to validate service name is passed through signing Signed-off-by: Thomas Farr <[email protected]> * Disable meta header in test to make headers & signature stable across platforms Signed-off-by: Thomas Farr <[email protected]> Signed-off-by: Thomas Farr <[email protected]>
- Loading branch information
Showing
17 changed files
with
335 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
*/ | ||
|
||
namespace OpenSearch.Net.Auth.AwsSigV4 | ||
{ | ||
internal static class HeaderNames | ||
{ | ||
public const string Authorization = "authorization"; | ||
public const string ContentLength = "content-length"; | ||
public const string Host = "host"; | ||
public const string UserAgent = "user-agent"; | ||
public const string XAmzContentSha256 = "x-amz-content-sha256"; | ||
public const string XAmzDate = "x-amz-date"; | ||
public const string XAmzSecurityToken = "x-amz-security-token"; | ||
} | ||
} |
Oops, something went wrong.