Admiral-Piett / goaws

AWS (SQS/SNS) Clone for Development testing
MIT License
779 stars 144 forks source link

SNS, SQS signature check fixes - for AWS SDK #172

Closed andreyserdjuk closed 6 years ago

andreyserdjuk commented 6 years ago

Fixes #167 (reproduced with gosns) SNS: previous signature genaration msg.MD5OfMessageAttributes = common.GetMD5Hash("GoAws") caused failing of signature check in AWS SDK so could be simply deleted but I've added signature gen from gosqs.

SQS: add MD5OfMessageAttributes only if MessageAttributes not empty - according to logic of AWS SDK signature check failed if MessageAttributes filled and MD5OfMessageAttributes exists.