anomalizer / ngx_aws_auth

nginx module to proxy to authenticated AWS services
BSD 2-Clause "Simplified" License
470 stars 144 forks source link

Size of buffer is not big enough to accomodate endpoints with long host names. #45

Open pizzamax opened 7 years ago

pizzamax commented 7 years ago

https://github.com/anomalizer/ngx_aws_auth/blob/6eea78f4337ce3b84f546da7244e194e307cfdbe/aws_functions.h#L205

When the length of endpoint hostname exceeds 40bytes, hostname to be used to sign authentication header gets truncated, this will cause SignatureDoesNotMatch error.

Would it be possible to expand the size of the buffer to safe size?

anomalizer commented 7 years ago

Please try the latest build from master