thunderclient / thunder-client-support

Thunder Client is a lightweight Rest API Client Extension for VS Code.
https://www.thunderclient.com
Other
3.62k stars 128 forks source link

AWS Sigv4 Signer #489

Closed ChorjoDev closed 2 years ago

ChorjoDev commented 2 years ago

Describe the solution you'd like Postman provides a feature that signs the AWS keys using the AWS Sigv4 signer. The keys are signed and added to the headers. The actual signing of the headers is a simple task but requires the AWS sdk to do this. https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html

This is really useful when testing API's via API Gateway and triggering lambdas that sit behind this level of authentication. It would be nice if the client was able to access these keys that sit in the '~/.aws/credentials'. Postman is currently unable to do this due to it being sandboxed and not having access to the local machine.

Describe alternatives you've considered Postman does provide the SIgV4 signing method and it is widely used in many Organisation's I have worked in.

https://learning.postman.com/docs/sending-requests/authorization/#aws-signature

rangav commented 2 years ago

Thanks @ChorjoDev for creating feature request, Will add to roadmap.

rangav commented 2 years ago

Hi @ChorjoDev I have finished development of this feature.

would you like to test? I can upload the package here.

Just want to make sure its working as expected before I publish to everyone

ChorjoDev commented 2 years ago

Hi,

Oh wow that was quick..yes more than happy to test. I’m out today but should be able to test out tomorrow if that is ok?

Thanks Gareth

Sent from my iPhone

On 5 Mar 2022, at 14:01, Ranga Vadhineni @.***> wrote:

 Hi @ChorjoDev I have finished development of this feature.

would you like to test? I can upload the vsix package here.

Just want to make sure its working as expected before I publish to everyone

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.

rangav commented 2 years ago

@ChorjoDev thats ok, I will upload the file later today.

rangav commented 2 years ago

@ChorjoDev attached the pre-release file. Please test multiple aws services if possible and let me now.

Install manually from extensions tab Screenshot 2022-03-05 at 21 34 56

ChorjoDev commented 2 years ago

Hey @rangav,

Worked like a dream. I tested it against API Gateway, as this is where the authentication of the signing happens. I ported all of our collections over from postman and all worked.

Thanks

rangav commented 2 years ago

super thanks @ChorjoDev for confirmation,

will publish to marketplace as a pre-release version, so others can also install it.

And will do a production release end of this week or early next week along with other planned features

rangav commented 2 years ago

Now its published to marketplace

How to install pre-release version Screenshot 2022-03-02 at 15 14 35

rangav commented 2 years ago

This feature is now published as release version in v1.12.5

See all features and bugs fixed here https://github.com/rangav/thunder-client-support/releases/tag/v1.12.5