Skip to content
This repository was archived by the owner on Jan 12, 2026. It is now read-only.

Commit 5214875

Browse files
committed
security: Add comprehensive .gitignore with all security patterns
Blocks sensitive files: - Environment variables (.env files) - Cloud credentials (AWS, GCP, Azure) - Database files - API keys and secrets - Private keys and certificates - OAuth tokens - Backup files Also includes common patterns for Node, Python, IDEs, and build output.
0 parents  commit 5214875

1 file changed

Lines changed: 186 additions & 0 deletions

File tree

.gitignore

Lines changed: 186 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
1+
######################
2+
# SECURITY: Environment Variables & Secrets
3+
######################
4+
# Environment files
5+
.env
6+
.env.*
7+
.env.local
8+
.env.*.local
9+
.env.development
10+
.env.development.local
11+
.env.staging
12+
.env.staging.local
13+
.env.production
14+
.env.production.local
15+
.env.test
16+
.env.test.local
17+
.envrc
18+
*.env
19+
20+
# AWS credentials
21+
.aws/
22+
aws-credentials
23+
credentials
24+
.elasticbeanstalk/*
25+
!.elasticbeanstalk/*.cfg.yml
26+
!.elasticbeanstalk/*.global.yml
27+
28+
# Google Cloud
29+
gcloud/
30+
.gcloud/
31+
*-firebase-adminsdk-*.json
32+
google-credentials.json
33+
service-account.json
34+
service-account-key.json
35+
36+
# Azure
37+
.azure/
38+
azureconfig.json
39+
40+
# Heroku
41+
.heroku/
42+
43+
######################
44+
# SECURITY: Database Files
45+
######################
46+
*.sqlite
47+
*.sqlite3
48+
*.db
49+
*.db3
50+
*.s3db
51+
*.sl3
52+
*.db-journal
53+
*.db-shm
54+
*.db-wal
55+
56+
######################
57+
# SECURITY: API Keys and Secrets
58+
######################
59+
secrets.yml
60+
secrets.yaml
61+
config/secrets.yml
62+
config/secrets.yaml
63+
.secrets
64+
.secrets.*
65+
*.pem
66+
*.key
67+
*.cert
68+
*.crt
69+
*.cer
70+
*.p12
71+
*.pfx
72+
id_rsa
73+
id_rsa.pub
74+
id_ed25519
75+
id_ed25519.pub
76+
*.pub
77+
*.priv
78+
private_key*
79+
public_key*
80+
81+
######################
82+
# SECURITY: Configuration Files
83+
######################
84+
application-secret.properties
85+
application-local.properties
86+
*-secret.json
87+
*-secrets.json
88+
*.secret
89+
.npmrc
90+
.yarnrc
91+
.yarnrc.yml
92+
93+
######################
94+
# SECURITY: SSH & GPG
95+
######################
96+
.ssh/
97+
*.gpg
98+
*.pgp
99+
*.asc
100+
101+
######################
102+
# SECURITY: Docker
103+
######################
104+
docker-compose.override.yml
105+
.dockerenv
106+
*.dockerfile.local
107+
108+
######################
109+
# SECURITY: OAuth & Tokens
110+
######################
111+
.token
112+
.oauth
113+
*.token
114+
oauth.json
115+
token.json
116+
client_secret*.json
117+
118+
######################
119+
# SECURITY: Backup Files
120+
######################
121+
*.backup
122+
*.bkp
123+
*.back
124+
*.old
125+
*_backup/
126+
backup/
127+
128+
######################
129+
# Node
130+
######################
131+
node_modules/
132+
npm-debug.log*
133+
yarn-debug.log*
134+
yarn-error.log*
135+
.npm
136+
.yarn/
137+
package-lock.json
138+
yarn.lock
139+
140+
######################
141+
# Python
142+
######################
143+
__pycache__/
144+
*.py[cod]
145+
*$py.class
146+
*.so
147+
.Python
148+
venv/
149+
env/
150+
ENV/
151+
.venv
152+
153+
######################
154+
# IDE
155+
######################
156+
.idea/
157+
.vscode/
158+
*.swp
159+
*.swo
160+
*~
161+
.DS_Store
162+
Thumbs.db
163+
164+
######################
165+
# Build Output
166+
######################
167+
dist/
168+
build/
169+
*.min.js
170+
*.min.css
171+
target/
172+
*.class
173+
174+
######################
175+
# Logs
176+
######################
177+
*.log
178+
logs/
179+
*.log*
180+
181+
######################
182+
# OS Files
183+
######################
184+
.DS_Store
185+
Thumbs.db
186+
Desktop.ini

0 commit comments

Comments
 (0)