by johnbillow · 8y ago · 0 comments
There's no difference in security considerations when interacting with external resources at the application level. Either way you better have some form of auth and be sending credentials over TLS.
WAFs aren't irrelevant since from an external perspective there's no discernible difference between a request like
POST /login?user=root&password=' OR 1=1 --
being made to a handler running full-time on a dedicated web server or on-demand on AWS Lambda behind API Gateway.In fact, Lambdas (and every other serverless platform I'm aware of) execute with the same isolation as EC2 instances in AWS. There are effectively no differences security-wise between code executing on an EC2 and code executing in Lambda. Any vulnerability in a Lambda function is also going to be a vulnerability in a traditional application hosted on EC2 and vice versa.