Skip to content

Comments

Add comprehensive .gitignore patterns for sensitive data and private keys#50

Draft
Copilot wants to merge 3 commits intomasterfrom
copilot/add-comprehensive-gitignore-again
Draft

Add comprehensive .gitignore patterns for sensitive data and private keys#50
Copilot wants to merge 3 commits intomasterfrom
copilot/add-comprehensive-gitignore-again

Conversation

Copy link

Copilot AI commented Feb 11, 2026

Expands .gitignore from 146 to 320 lines to prevent accidental commits of sensitive data across modern development workflows.

Patterns Added

Cryptographic Material

  • SSH private keys (id_rsa, id_ed25519, id_ecdsa, id_dsa), GPG keys (*.gpg, *.asc)
  • SSL/TLS certificates (*.jks, *.bks, *.certSigningRequest)
  • Excludes public keys (*.pub) - safe to track

Blockchain/Web3

  • Mnemonic/seed phrases, wallet keys, smart contract deployment keys
  • Geth data directories, wallet backups (metamask-backup*.json, coinbase-wallet-backup*.json)

Cloud & Infrastructure

  • AWS/GCP/Azure credentials files (.aws/credentials, gcloud-credentials*.json)
  • Terraform state (*.tfvars, terraform.tfstate)
  • Kubernetes secrets (*-secret.yaml, kubeconfig*)
  • Docker overrides and CI/CD local configs

Authentication & Secrets

  • API keys (api-keys.json, *.api-key), service account keys
  • Session tokens, JWT/cookie secrets, password files
  • Firebase admin SDK keys, OAuth credentials

Mobile Development

  • iOS provisioning profiles (*.mobileprovision), Android keystores
  • Platform-specific key files (key.properties, GoogleService-Info.plist)

Backups & Cache

  • Database dumps (*.dump.sql), specific backup archive patterns (backup-*.zip, *-backup.tar)
  • Build caches (.turbo/, .vercel/, .netlify/)
  • Excludes general archives - legitimate use case for vendor libraries

Design Decisions

  • Public SSH keys remain trackable (deployment configs often need them)
  • Archive patterns are specific (backup-*.zip) not broad (*.zip) to avoid breaking vendored assets
  • Organized into logical sections with comments for maintainability

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits February 11, 2026 15:42
…keys

Co-authored-by: Kushmanmb <193178375+Kushmanmb@users.noreply.github.com>
Co-authored-by: Kushmanmb <193178375+Kushmanmb@users.noreply.github.com>
Copilot AI changed the title [WIP] Add comprehensive .gitignore for sensitive data and private keys Add comprehensive .gitignore patterns for sensitive data and private keys Feb 11, 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