Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we use plugins like Helmet.js and body-parser to secure a serverless function? If not, any alternatives?

Can we use plugins like Helmet.js and body-parser to secure a serverless function? If we can't how can we implement those features to our serverless functions?

like image 908
THpubs Avatar asked Sep 07 '25 02:09

THpubs


1 Answers

In AWS, you can setup a distributed architecture using other services to filter requests before hitting your serverless functions. You can use AWS WAF to protect your API Gateway Endpoints (Currently you have to proxy your API through CloudFront).

Check the following diagram and refer the AWS documentation for more details.

enter image description here Diagram Credits: AWS answers for AWS WAF Security Automations

like image 102
Ashan Avatar answered Sep 09 '25 04:09

Ashan