You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor test infrastructure and consolidate test utilities
Modernize the test infrastructure by consolidating test helpers into a
shared testutil package and enhancing connection reliability:
- Move test utilities from internal/test to opensearchutil/testutil for
broader reusability across the project and external packages
- Remove obsolete internal/test/config.go in favor of improved helper
functions with better error handling and connection management
- Add dynamic field filtering for JSON comparison tests to handle
version-specific and environment-dependent OpenSearch responses
- Enhance connection robustness with improved readiness checks and
health monitoring in opensearchtransport layer
- Update all integration tests across opensearchapi, plugins, and
transport packages to use the new unified test infrastructure
- Add comprehensive documentation and examples for the new test utilities
This refactor provides a more maintainable foundation for testing across
different OpenSearch versions and environments while reducing code
duplication and improving test reliability.
Signed-off-by: Sean Chittenden <sean.chittenden@crowdstrike.com>
Copy file name to clipboardExpand all lines: USER_GUIDE.md
+29-18Lines changed: 29 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -210,13 +210,19 @@ Before starting, we strongly recommend reading the full AWS documentation regard
210
210
>
211
211
> See [Managed Domains signing-service requests.](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/ac.html#managedomains-signing-service-requests)
212
212
213
-
Depending on the version of AWS SDK used, import the v1 or v2 request signer from `signer/aws` or `signer/awsv2` respectively. Both signers are equivalent in their functionality, they provide AWS Signature Version 4 (SigV4).
213
+
Depending on the version of AWS SDK used, import the request signer from `signer/aws` (recommended) or `signer/awsv2`. Both signers use AWS SDK v2 and provide AWS Signature Version 4 (SigV4).
214
+
215
+
**BREAKING CHANGE**: As of this version, the main `signer/aws` package has been migrated from AWS SDK v1 to AWS SDK v2 due to AWS SDK v1 reaching end-of-support on July 31, 2025.
214
216
215
217
To read more about SigV4 see [Signature Version 4 signing process](https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html)
216
218
217
219
Here are some Go samples that show how to sign each OpenSearch request and automatically search for AWS credentials from the ~/.aws folder or environment variables:
218
220
219
-
### AWS SDK v1
221
+
### AWS SDK v2 (Recommended)
222
+
223
+
**Migration Note**: If you were previously using `signer/aws` with AWS SDK v1, you need to update your imports and configuration as shown below.
224
+
225
+
**Credential Caching**: The signer automatically enables credential caching for improved performance, especially when using STS credentials (assume role, web identity, etc.). This reduces API calls to AWS STS and improves signing performance.
0 commit comments