mirror of
https://github.com/Sea-Haven-Industries/meal-order-manager.git
synced 2026-09-30 13:33:13 +00:00
Address GPT-4.1 cross-review of the IAM change: - Validate the week param (YYYY-WNN) and the DynamoDB-sourced PDF key shape before presigning, so a tampered SUMMARY record can't mint URLs for other report files (payroll CSVs). - Narrow the IAM resource from reports/* to reports/*/weekly-summary-*.pdf — least privilege over the bucket. - Reuse a module-level S3 client; name the URL TTL constant. - Distinguish "week not found" from "PDF key missing" 404s. - Tests: malformed-week 400 and tampered-key 500 (asserts no presign). |
||
|---|---|---|
| .. | ||
| handler.py | ||
| requirements.txt | ||