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

Issue #63: Use aws_signature for signing of requests rather than aws-erlang's own implementation #126

Conversation

onno-vos-dev
Copy link
Member

@onno-vos-dev onno-vos-dev commented Feb 15, 2023

Fixes #63

Historically aws-erlang has struggled a bit when it came to signature signing resulting in the dreaded SignatureDoesNotMatch errors which are a massive pain to debug. This meant certain bits of aws_signature had to be backported into aws-erlang's implementation which is very error prone. Removing all logic for signature signing from aws-erlang and making use of aws_signature instead closes that long standing issue and ensures that signature signing is unified among aws-elixir and aws-erlang 🎉 🥂

I understand that the diff is a mess but that's kinda unavoidable... I'll point out a few areas of interest where I'd like some additional eyes in particular.

I haven't decided whether or not I want to keep aws_request around or move the signing part into aws-codegen. I believe "most" already sits in aws-codegen so I'll take a look when it's time to address #125 (comment) and #125 (comment) (on my todo list)

@onno-vos-dev onno-vos-dev force-pushed the issue-63-use-aws_signature-library-for-signing branch from 839ab21 to 3f5c292 Compare February 15, 2023 22:21
@onno-vos-dev onno-vos-dev force-pushed the issue-63-use-aws_signature-library-for-signing branch from 3f5c292 to 139af39 Compare February 15, 2023 22:21
Copy link
Contributor

@philss philss left a comment

Choose a reason for hiding this comment

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

Awesome! 😃 🎉

src/aws_s3_presigned_url.erl Show resolved Hide resolved
rebar.config Show resolved Hide resolved
src/aws_request.erl Show resolved Hide resolved
@onno-vos-dev onno-vos-dev merged commit 254e31d into aws-beam:master Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Any reason for aws-erlang to not use aws_signature?
4 participants