Skip to content

Enhance .gitignore to protect sensitive data and private keys#52

Draft
Copilot wants to merge 10 commits intomainfrom
copilot/add-gitignore-for-sensitivity
Draft

Enhance .gitignore to protect sensitive data and private keys#52
Copilot wants to merge 10 commits intomainfrom
copilot/add-gitignore-for-sensitivity

Conversation

Copy link

Copilot AI commented Feb 12, 2026

Blockchain repositories require comprehensive protection against accidental commits of credentials, private keys, and sensitive configuration. The existing .gitignore had basic coverage but lacked patterns for common sensitive file types.

Changes

Added 83+ patterns targeting:

  • Private Keys: SSH keys (RSA, DSA, ECDSA, ED25519), SSL keystores (*.p12, *.pfx, *.jks), PEM files
  • Cryptocurrency: Wallet files, keystore/wallet directories at any level, mnemonic/seed phrases
  • API Credentials: Pattern pairs for both prefix (apikey*.json) and contains (*apikey*.json) matching with specific extensions (json, txt, yml, yaml, env)
  • Cloud Providers: AWS credentials, GCP service accounts (*service-account-*.json), Azure configs
  • Database: Flexible patterns (database*.yml, *connection-string*.{json,txt,yml,yaml,env})
  • Environment: .env.* files and secrets patterns

Design Decisions

Patterns use specific file extensions rather than wildcards alone (e.g., *credentials*.json vs *credentials*) to avoid false positives on source files like credentials_validator.py. Directory patterns use **/keystore/ to match at any repository level with override guidance in comments.

Both prefix and contains patterns for API keys are kept despite technical redundancy for explicitness around common naming conventions.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 9 commits February 12, 2026 16:19
… private keys

Co-authored-by: Kushmanmb <193178375+Kushmanmb@users.noreply.github.com>
Co-authored-by: Kushmanmb <193178375+Kushmanmb@users.noreply.github.com>
Co-authored-by: Kushmanmb <193178375+Kushmanmb@users.noreply.github.com>
…pattern

Co-authored-by: Kushmanmb <193178375+Kushmanmb@users.noreply.github.com>
Co-authored-by: Kushmanmb <193178375+Kushmanmb@users.noreply.github.com>
Co-authored-by: Kushmanmb <193178375+Kushmanmb@users.noreply.github.com>
Co-authored-by: Kushmanmb <193178375+Kushmanmb@users.noreply.github.com>
Co-authored-by: Kushmanmb <193178375+Kushmanmb@users.noreply.github.com>
…cal redundancy

Co-authored-by: Kushmanmb <193178375+Kushmanmb@users.noreply.github.com>
Copilot AI changed the title [WIP] Add .gitignore to hide sensitive data and private keys Enhance .gitignore to protect sensitive data and private keys Feb 12, 2026
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.

2 participants