Skip to content

Commit bda74dc

Browse files
author
Bob Strahan
committed
Advise on LogLevel for production: re CloudWatch Logs Contain Sensitive Information
1 parent 1c65fd1 commit bda74dc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/well-architected.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ The GenAI Intelligent Document Processing (GenAIIDP) Accelerator demonstrates st
4040

4141
### Recommendations
4242

43+
- **Production Logging Security**:
44+
- **Set the `LogLevel` parameter to WARN or ERROR (not INFO) for production deployments** to prevent sensitive information from being logged
45+
- The `LogLevel` parameter in template.yaml automatically configures logging levels across all Lambda functions, AppSync APIs, and other components
46+
- INFO level logging can inadvertently capture sensitive document contents, PII data (SSN, addresses, names), and S3 presigned URLs
47+
- For production environments, use `LogLevel: WARN` or `LogLevel: ERROR` in your CloudFormation deployment parameters
48+
- Implement log filtering and masking for any essential INFO-level logs that must be retained
49+
- Regularly audit CloudWatch log groups to ensure no sensitive information is being captured
4350
- **CloudFront Security Enhancement**:
4451
- Create a custom domain with a custom ACM certificate for the CloudFront distribution
4552
- Enforce TLS 1.2 or greater protocol in the CloudFront security policy

0 commit comments

Comments
 (0)