Skip to content

Add portfolio lab skeleton with docs, examples, CI, and validation - #1

Merged
farhan-shafee merged 2 commits into
mainfrom
codex/conduct-repository-audit-for-security-roles
Apr 29, 2026
Merged

farhan-shafee merged 2 commits into
mainfrom
codex/conduct-repository-audit-for-security-roles

Conversation

@farhan-shafee

Copy link
Copy Markdown
Owner

Motivation

  • Establish a reproducible cloud security portfolio lab with clear documentation and sample artifacts for learning and demonstration.
  • Provide lightweight automated validation and CI to ensure required files and JSON examples remain present and well-formed.
  • Encourage contributor hygiene and expectations via CONTRIBUTING.md, .gitignore, and a license.

Description

  • Add repository-wide content including docs/, baseline-configs/, examples/, and reports/ with architecture, methodology, threat model, remediation checklist, sample findings, and a sample report.
  • Add example IAM policies and event JSONs under examples/iam/ and examples/events/ and include a short examples/iam/policy-analysis.md and examples/logging-setup.md for guidance.
  • Introduce validation tooling and developer convenience: scripts/validate_lab.sh, a Makefile with validate/show-tree, and a GitHub Actions workflow at .github/workflows/ci.yml that runs make validate.
  • Add repository metadata and housekeeping files: README.md updates, CONTRIBUTING.md, SECURITY.md, LICENSE, and .gitignore.

Testing

  • Added scripts/validate_lab.sh which checks presence of required files and validates JSON parsing with python3 -m json.tool as part of make validate.
  • CI workflow .github/workflows/ci.yml was added to run make validate on push and pull_request events.
  • Ran make validate which executed scripts/validate_lab.sh and returned all [PASS] checks and completed successfully.

Codex Task

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +9 to +13
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::portfolio-lab-app-logs",
"arn:aws:s3:::portfolio-lab-app-logs/app/*"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@farhan-shafee
farhan-shafee merged commit 78e5c32 into main Apr 29, 2026
2 checks passed
@farhan-shafee
farhan-shafee deleted the codex/conduct-repository-audit-for-security-roles branch April 29, 2026 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant