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

feat(signature-v4-multi-region): support multi-region sigv4a signer #3518

Merged
merged 6 commits into from
Apr 7, 2022

Conversation

AllanZhengYP
Copy link
Contributor

Description

  • This change separates the S3SignatureV4 signer, which dynamically signs request with JavaScript signature-v4 signer OR CRT signature-v4-crt signer, from the middleware-sdk-s3 package to a standalone package signature-v4-multi-region. So the new EventBridge putEvents API can use the same signing method.
  • This change creates a middleware-sdk-eventbridge package that contains customization to modify the putEvents API endpoint. If the EndpointId parameter exists, the endpoint will be modified to {EndpointId}.endpoint.events.{dnsSuffix}.
  • When the endpiont is modified, the request will be signed with the multi-regional request signer.

Testing

Manual integration test; Unit test;
Automated integration test TBD


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

AllanZhengYP and others added 2 commits April 6, 2022 23:47
* feat(middleare-sdk-eventbridge): initial commit for eventbridge middleware

* feat(signature-v3-cross-region): move S3 sigv4a signer to a new package

* feat(middleware-sdk-eventbridge): implement inject endpointId mw

* chore: generate S3 signer constroctor from new package

* chore(eventbridge): add customization code generator

* feat(s3-request-presigner): use cross region signer instead of s3 signer

* feat(signature-v4-multiregion): rename signature-v4-cross-region to signature-v4-multiregion

* fix(client-eventbridge): rename multi region to camel case

Co-authored-by: Trivikram Kamat <16024985+trivikr@users.noreply.github.com>
@AllanZhengYP AllanZhengYP requested a review from a team as a code owner April 7, 2022 16:23
@AllanZhengYP AllanZhengYP merged commit 16aa220 into aws:main Apr 7, 2022
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants