Skip to content

fix(security): gitignore MCP configs with API tokens#17

Merged
savez merged 1 commit intomainfrom
fix/gitignore-mcp-secrets
Apr 3, 2026
Merged

fix(security): gitignore MCP configs with API tokens#17
savez merged 1 commit intomainfrom
fix/gitignore-mcp-secrets

Conversation

@savez
Copy link
Copy Markdown
Owner

@savez savez commented Apr 3, 2026

Summary

  • Add .mcp.json and opencode.json to .gitignore to prevent MCP config files containing API tokens from being committed
  • These files are generated by dvmi sync-config-ai for project-scoped AI environments and must remain local-only
  • Git history was rewritten with git filter-repo to purge previously committed JWT tokens from all branches and tags

Test plan

  • git log --all -- .mcp.json opencode.json returns empty (files purged from history)
  • git status is clean (files exist on disk but are ignored)
  • Gitleaks scan passes
  • Rotate the compromised Home Assistant long-lived access token

🤖 Generated with Claude Code

Prevent MCP configuration files containing API tokens from being
tracked. These files are generated by `dvmi sync-config-ai` and
must remain local-only.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 3, 2026

Coverage Report

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 3, 2026

QA Report

Check Status
🔍 Lint
🧪 Test & Coverage
🔐 Secrets Scan

Generated automatically by QA Workflow

@savez savez merged commit 2d24a66 into main Apr 3, 2026
9 checks passed
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