Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Security — secrets & credentials (org-wide)
# =============================================================================
# Secrets & Credentials — Apply org-wide
# =============================================================================

# Environment files
.env
.env.*
!.env.example.template

# Private keys & certificates
*.pem
*.key

# Credential / secret files (broad patterns)
*credentials*
*secret*
Comment on lines +16 to +17

Choose a reason for hiding this comment

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

🛑 Security Risk: The wildcard patterns *credentials* and *secret* will match files in all directories and could accidentally ignore legitimate code files. For example, files like user_credentials_validator.py, secret_manager.py, or credentials_test.go would be ignored, potentially excluding critical application code from version control.

Suggested change
*credentials*
*secret*
**/credentials.*
**/secrets.*
**/.credentials
**/.secrets

Comment on lines +16 to +17

Choose a reason for hiding this comment

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

P2 Badge Scope secret filename globs to concrete artifacts

The wildcard rules *credentials* and *secret* ignore any new file whose name contains those substrings, including non-sensitive source/docs (for example, credential helpers or secret-management docs), so those files will never show up in git status and can be silently omitted from future commits. Restrict these patterns to known secret file names/locations (or extensions) so legitimate project files are still trackable.

Useful? React with 👍 / 👎.


# AWS-specific
aws-credentials.env
awsenv.local

# Deployment configs containing secrets
.env.deploy
samconfig.toml

# IDE workspace files (may contain tokens/keys)
.idea/
.idea/workspace.xml
Comment on lines +28 to +29

Choose a reason for hiding this comment

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

🛑 Logic Error: Line 29 is redundant since line 28 already ignores the entire .idea/ directory. This duplication creates maintenance overhead and potential confusion.

Suggested change
.idea/
.idea/workspace.xml
.idea/


# Terraform state (contains sensitive outputs)
*.tfstate
*.tfstate.backup
.terraform/

# Docker env overrides
docker-compose.override.yml

# OS artifacts
.DS_Store
Thumbs.db

Choose a reason for hiding this comment

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

🛑 Critical Defect: Missing newline at end of file violates POSIX standards and can cause issues with line-based tools (grep, diff, git) and shell processing. Many CI/CD systems and linters enforce this requirement.

Suggested change
Thumbs.db
Thumbs.db