Skip to content

Commit 6d68ed1

Browse files
committed
chore: add security-sensitive file patterns to .gitignore
Add patterns to prevent accidental commits of credential files: - Tomcat/Java config files (context.xml, server.xml, etc.) - Java keystores and truststores (*.jks, *.jceks, etc.) - Spring Boot application properties with secrets - Common credential files (credentials.json, secrets.json, etc.) - PKCS12 keystores (*.p12, *.pfx) This helps prevent password leaks in future Java backends that teams may add to projects using this template.
1 parent 0c5dcee commit 6d68ed1

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.gitignore

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,34 @@ pyrightconfig.json
370370
*.pem
371371
*.pub
372372

373+
# Security-sensitive configuration files (may contain passwords/credentials)
374+
# Tomcat/Java application server configuration
375+
**/context.xml
376+
**/server.xml
377+
**/tomcat-users.xml
378+
**/web.xml
379+
# Java keystores and truststores
380+
**/*.jks
381+
**/*.jceks
382+
**/keystore.*
383+
**/truststore.*
384+
# Spring Boot application properties with secrets
385+
**/application-local.properties
386+
**/application-prod.properties
387+
**/application-secrets.properties
388+
**/application-*.yml
389+
**/bootstrap-local.yml
390+
**/bootstrap-prod.yml
391+
# Other common credential/config files
392+
**/credentials.json
393+
**/secrets.json
394+
**/secrets.yml
395+
**/secrets.yaml
396+
**/config.local.*
397+
**/config.prod.*
398+
**/*.p12
399+
**/*.pfx
400+
373401
# IDE
374402
.codebuddy
375403

0 commit comments

Comments
 (0)