Signing Amazon SDB requests

Justin Cormack justin at specialbusservice.com
Fri Apr 29 19:01:19 MSD 2011


On Wed, 2011-04-27 at 18:28 -0400, AndrewH wrote:
> I am looking for some advice on the recommended way of achieving the
> following.
> 
> I need to sign Amazon Simple Database (SDB) queries with our Amazon Web
> Services credentials before forwarding them to upstream Amazon's SDB
> servers.  
> 
> The proxying behaviour will be taken care of by the proxy module but I'm
> not sure how to implement the actual signing.

I have done a gist showing how to do this with the Lua nginx module.

https://gist.github.com/948423

It is a bit longer than the S3 code (also in the gist)... should also
work for SQS and the other services that use that signing method with
some small modifications.

Obviously you might want to restrict access to this or make it an
internal method, not an open proxy!

Justin





More information about the nginx mailing list