Skip to content

chore(privacy): Remove hardcoded paths and personal identifiers#166

Open
eddie333016 wants to merge 1 commit intoakaszubski:masterfrom
eddie333016:chore/privacy-cleanup-hardcoded-paths
Open

chore(privacy): Remove hardcoded paths and personal identifiers#166
eddie333016 wants to merge 1 commit intoakaszubski:masterfrom
eddie333016:chore/privacy-cleanup-hardcoded-paths

Conversation

@eddie333016
Copy link
Copy Markdown

Summary

Privacy cleanup to remove accidentally committed personal information discovered during a security audit. No real credentials were exposed - this addresses personal identifiers only.

Type of Change

  • Chore (maintenance, dependencies)

Changes

  • Deleted accidentally committed pytest temp file containing macOS username
  • Updated .mcp/config.json to use ${CLAUDE_PROJECT_DIR} instead of hardcoded path
  • Updated .mcp/README.md to use template variables
  • Updated documentation files to remove personal paths
  • Updated 33 test files to use portable path patterns
  • Improved .gitignore to prevent future pytest artifact commits

Files Modified

  • .gitignore - Added patterns for pytest temp directories
  • .mcp/config.json - Replaced hardcoded paths with env variable
  • .mcp/README.md - Replaced hardcoded paths with placeholders
  • docs/*.md (7 files) - Replaced hardcoded paths
  • tests/**/*.py (21 files) - Replaced hardcoded paths with portable patterns
  • plugins/autonomous-dev/tests/**/*.py (2 files) - Same

Files Deleted

  • \private\var\folders\...\pytest-of-andrewkaszubski\...\batch_state.json

Test Plan

  • All path references now use portable patterns
  • Grep confirms no remaining hardcoded /Users/akaszubski paths in active files
  • MCP configuration uses ${CLAUDE_PROJECT_DIR} (supported by Claude Code)

Quality Checklist

  • Code follows project standards
  • No security issues detected
  • Commit message follows conventional format
  • Aligns with PROJECT.md goals (maintains portable, reusable code)

Security Audit Findings Addressed

Finding Severity Status
Pytest temp file with username HIGH Fixed - Deleted
150+ hardcoded local paths MEDIUM Fixed - Replaced
.gitignore gaps LOW Fixed - Patterns added

Not Changed (By Design)

  • CHANGELOG.md - Historical entries documenting past bugs
  • Git history - Would require force push/rebase
  • Security policy allowed_repos - Expected self-reference

Post-PR Recommendations

  1. Consider git history cleanup (optional): Use BFG Repo-Cleaner to remove personal email from 530+ commits
  2. Configure GitHub noreply email for future commits: akaszubski@users.noreply.github.com
  3. Add CI check to detect hardcoded paths in future PRs

🤖 Generated with Claude Code

Co-Authored-By: Claude noreply@anthropic.com

This commit addresses personal information leakage discovered during
a comprehensive security audit. No real credentials or API keys were
exposed - this is purely a privacy cleanup.

Changes:
- Delete accidentally committed pytest temp artifact with username
- Replace hardcoded /Users/akaszubski paths with ${CLAUDE_PROJECT_DIR}
  or ${PROJECT_ROOT} for portable configuration
- Update .gitignore to prevent future pytest artifact commits
- Clean documentation files of personal machine paths
- Update test files to use portable path patterns

Files affected:
- 1 file deleted (pytest temp artifact)
- 33 files modified across docs/, tests/, plugins/, .mcp/

Privacy findings addressed:
- HIGH: pytest-of-andrewkaszubski temp directory committed → Deleted
- MEDIUM: 150+ hardcoded local paths → Replaced with portable patterns
- LOW: .gitignore gaps → Added patterns for pytest artifacts

Not changed (by design):
- CHANGELOG.md historical entries (documenting past bugs)
- Security policy allowed_repos (expected self-reference)
- Git commit history (would require force push)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant