mirror of
https://github.com/HeyPuter/puter.git
synced 2026-01-09 14:41:50 -06:00
There were a few things which made this rather difficult: - AWS SDK doesn't appear to have a utility to validate message signatures. - The only available node.js module that does this is known to be unreliable. - SNS sends 'text/plain' MIME type even though the data is in JSON format, so a middleware had to be added to account for this. - We don't accept POST requests with no Origin header. Since SNS doesn't send the Origin header, an exception had to be made for this. - The endpoint needs to be public and SNS doesn't seem to have a proxying utility for developers such as what Stripe has. - Because of the above point, debugging time was affected by deployment time to the staging server.