-
Notifications
You must be signed in to change notification settings - Fork 197
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
Make SigningInstructions public #2730
Conversation
Why can't you just use the The |
Well I wanted to return the signing instructions from the function and I can't complete the function signature because SigningInstructions is private. I should probably elaborate a little more. I have a custom Request Body that I don't think will inter opt properly with the aws libraries so I'm trying to do a little hack where I return the signing instructions and then apply those to my Request later. It's likely this wasn't the intended use for these functions haha. |
I see. I think the correct fix would be to add We probably just missed that during initial implementation since I guess it works if you only need to call a function on that returned value rather than name it. |
Thanks! I'll do that in the morning |
@jdisanti I pushed that update. |
Looks good. Could you also update the PR description/title and add an entry to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I'll apply a couple minor changes and get this merged. Thank you!
Head branch was pushed to by a user without write access
@jdisanti did you want me to update the docs for the SigningInstructions as well? It looks like that's what most of these test breakages are about. |
That would be great! |
Head branch was pushed to by a user without write access
Motivation and Context
I'm building an s3 server in rust and I need signature verification to work from the server side when receiving requests. To do that the server needs to generate a signature and then compare it to the one that the client has already sent along. I believe that the sign module in aws-sigv4 http_request contains the functions required to do that.
Description
Exported the
SigningInstructions
struct in the sign module of http_request for aws-sigv4.Testing
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.