Repository navigation
Add portfolio lab skeleton with docs, examples, CI, and validation - #1
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fb4a310e78
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "s3:ListBucket" | ||
| ], | ||
| "Resource": [ | ||
| "arn:aws:s3:::portfolio-lab-app-logs", | ||
| "arn:aws:s3:::portfolio-lab-app-logs/app/*" |
There was a problem hiding this comment.
Scope ListBucket to intended prefix
This "least-privilege" statement grants s3:ListBucket on the whole bucket ARN without any s3:prefix condition, so a principal can enumerate all objects in portfolio-lab-app-logs rather than only app/*. That makes the example materially over-broad for the stated ReadAppBucketPrefix intent and can mislead consumers who reuse this policy in labs or demos expecting prefix-limited listing.
Useful? React with 👍 / 👎.
Motivation
CONTRIBUTING.md,.gitignore, and a license.Description
docs/,baseline-configs/,examples/, andreports/with architecture, methodology, threat model, remediation checklist, sample findings, and a sample report.examples/iam/andexamples/events/and include a shortexamples/iam/policy-analysis.mdandexamples/logging-setup.mdfor guidance.scripts/validate_lab.sh, aMakefilewithvalidate/show-tree, and a GitHub Actions workflow at.github/workflows/ci.ymlthat runsmake validate.README.mdupdates,CONTRIBUTING.md,SECURITY.md,LICENSE, and.gitignore.Testing
scripts/validate_lab.shwhich checks presence of required files and validates JSON parsing withpython3 -m json.toolas part ofmake validate..github/workflows/ci.ymlwas added to runmake validateonpushandpull_requestevents.make validatewhich executedscripts/validate_lab.shand returned all[PASS]checks and completed successfully.Codex Task