Skip to content

Commit a36ab20

Browse files
committed
security notes
1 parent 56e8218 commit a36ab20

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

tuts/087-apigateway-lambda-integration/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,27 @@ chmod +x apigateway-lambda-integration.sh
2727
- AWS CLI configured
2828
- Appropriate IAM permissions
2929

30+
## Security Warning
31+
32+
This tutorial is for learning purposes only and is not production-ready.
33+
34+
### High Risk Issues
35+
36+
- **Public API**: Creates an unauthenticated API accessible to anyone on the internet
37+
- **Overly permissive permissions**: Lambda can be invoked by any API Gateway method/resource
38+
39+
### Medium Risk Issues
40+
41+
- **No input validation**: User inputs are processed without sanitization
42+
- **Information disclosure**: Lambda logs full request data to CloudWatch
43+
- **No rate limiting**: API has no protection against abuse
44+
45+
Before production use, you must:
46+
- Add authentication (AWS_IAM, API keys, or Cognito)
47+
- Implement input validation and sanitization
48+
- Remove debug logging of sensitive data
49+
- Configure rate limiting and throttling
50+
3051
## Resources Created
3152

3253
- Lambda function

tuts/087-apigateway-lambda-integration/apigateway-lambda-integration.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
This tutorial guides you through creating a REST API with Lambda proxy integration using the AWS Command Line Interface (AWS CLI). You'll learn how to create a Lambda function, set up an API Gateway REST API, configure Lambda proxy integration, and test your API endpoints.
44

5+
Note: This tutorial is for learning purposes only and is not production-ready. For more info, see [README.md](./README.md).
6+
57
## Prerequisites
68

79
Before you begin this tutorial, make sure you have the following:

0 commit comments

Comments
 (0)