Skip to content

Commit a6cf8b3

Browse files
committed
chore: gitignore completo + gitattributes lenguajes + dir active-response
1 parent c61e98a commit a6cf8b3

2 files changed

Lines changed: 188 additions & 20 deletions

File tree

.gitattributes

Lines changed: 53 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,56 @@
1-
# Normalizar fin de línea
1+
# ══════════════════════════════════════════════════════════════════
2+
# .gitattributes — SOC Zero Trust TFG ASIR 2025-2026
3+
# Normalización de líneas y clasificación de lenguajes para GitHub
4+
# ══════════════════════════════════════════════════════════════════
5+
6+
# Normalizar fin de línea automáticamente
27
* text=auto
38

4-
# La web señuelo (5 MB de base64) no cuenta para estadísticas de lenguaje
5-
web/el-heraldo-pyongyang/index.html linguist-vendored=true
9+
# ──────────────────────────────────────────────────────────────────
10+
# CLASIFICACIONES EXPLÍCITAS DE LENGUAJE
11+
# ──────────────────────────────────────────────────────────────────
12+
13+
# Python — Tool ZTT v1.1
14+
src/ztt_framework.py linguist-language=Python
15+
16+
# Shell — scripts de laboratorio y Active Response
17+
src/preparar.sh linguist-language=Shell
18+
config/opnsense/rollback-demo.sh linguist-language=Shell
19+
config/active-response/opnsense-fw linguist-language=Shell
20+
21+
# XML — reglas y decoders Wazuh
22+
config/wazuh/local_rules.xml linguist-language=XML
23+
config/wazuh/tpot_decoders.xml linguist-language=XML
24+
config/wazuh/ossec.conf linguist-language=XML
25+
26+
# YAML — CI/CD
27+
.github/workflows/security-scan.yml linguist-language=YAML
28+
29+
# ──────────────────────────────────────────────────────────────────
30+
# ARCHIVOS VENDORED / GENERADOS
31+
# No se cuentan en las estadísticas de lenguaje de GitHub
32+
# ──────────────────────────────────────────────────────────────────
33+
34+
# La web señuelo tiene imágenes en base64 (5 MB) — es contenido generado
35+
web/el-heraldo-pyongyang/index.html linguist-vendored=true
36+
web/el-heraldo-pyongyang/capilar/index.html linguist-vendored=true
37+
web/el-heraldo-pyongyang/politica/index.html linguist-vendored=true
38+
web/el-heraldo-pyongyang/cultura/index.html linguist-vendored=true
39+
web/el-heraldo-pyongyang/cosechas/index.html linguist-vendored=true
40+
web/el-heraldo-pyongyang/opinion/index.html linguist-vendored=true
41+
42+
# Documentación — no cuenta como código
43+
docs/*.md linguist-documentation=true
44+
README.md linguist-documentation=true
645

7-
# Clasificaciones explícitas
8-
src/ztt_framework.py linguist-language=Python
9-
src/preparar.sh linguist-language=Shell
10-
config/wazuh/local_rules.xml linguist-language=XML
11-
config/wazuh/tpot_decoders.xml linguist-language=XML
12-
config/opnsense/rollback-demo.sh linguist-language=Shell
46+
# ──────────────────────────────────────────────────────────────────
47+
# FIN DE LÍNEA POR TIPO DE ARCHIVO
48+
# ──────────────────────────────────────────────────────────────────
49+
*.sh eol=lf
50+
*.py eol=lf
51+
*.xml eol=lf
52+
*.yml eol=lf
53+
*.yaml eol=lf
54+
*.conf eol=lf
55+
*.md eol=lf
56+
*.html eol=lf

.gitignore

Lines changed: 135 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,176 @@
1-
# Credenciales y secretos — NUNCA subir
1+
# ══════════════════════════════════════════════════════════════════
2+
# .gitignore — SOC Zero Trust TFG ASIR 2025-2026
3+
# Regla de oro: si contiene credenciales, claves o datos privados → fuera
4+
# ══════════════════════════════════════════════════════════════════
5+
6+
# ──────────────────────────────────────────────────────────────────
7+
# CREDENCIALES Y CLAVES — NUNCA subir bajo ningún concepto
8+
# ──────────────────────────────────────────────────────────────────
29
*.pem
310
*.key
411
*.p12
512
*.pfx
13+
*.crt
14+
*.cer
615
.env
716
.env.*
17+
.env.local
18+
.env.production
819
secrets.yml
20+
secrets.yaml
921
credentials.json
22+
credentials.yml
23+
24+
# Wazuh específico
1025
wazuh-agent-key.txt
26+
client.keys
1127
*registration_password*
28+
*authd*password*
29+
*.ossec-tmp
30+
31+
# Contraseñas en config — patrones comunes
32+
*password*
33+
*passwd*
34+
*secret*
35+
*token*
36+
# Excepción: archivos de config del proyecto (tienen placeholders, no valores reales)
37+
!config/wazuh/ossec.conf
38+
!config/fail2ban/jail.local
39+
!config/fail2ban/*.conf
40+
!config/nginx/*.conf
41+
!config/opnsense/*.sh
42+
!config/active-response/*
1243

13-
# Capturas y evidencias (ficheros grandes, privados)
44+
# ──────────────────────────────────────────────────────────────────
45+
# CAPTURAS Y EVIDENCIAS — privadas o demasiado grandes
46+
# ──────────────────────────────────────────────────────────────────
1447
Capturas/
1548
media/screenshots/
49+
media/*.pcap
50+
media/*.pcapng
1651
*.pcap
1752
*.pcapng
53+
*.cap
1854

19-
# Documentación interna del TFG (no va en el repo público)
55+
# ──────────────────────────────────────────────────────────────────
56+
# DOCUMENTACIÓN INTERNA DEL TFG — no va al repo público
57+
# ──────────────────────────────────────────────────────────────────
2058
Documento-TFG/
2159
memory/
2260
Chats/
2361
Sesiones-Datos/
2462
Arquitectura-Resumenes/
2563
copy_vms.py
64+
*.drawio.bak
2665

27-
# Python
66+
# ──────────────────────────────────────────────────────────────────
67+
# PYTHON
68+
# ──────────────────────────────────────────────────────────────────
2869
__pycache__/
29-
*.pyc
70+
*.py[cod]
71+
*$py.class
3072
*.pyo
3173
.Python
74+
pip-log.txt
75+
pip-delete-this-directory.txt
3276
venv/
3377
.venv/
78+
env/
79+
.env/
80+
*.egg-info/
81+
dist/
82+
build/
83+
*.egg
3484

35-
# Node / build
85+
# ──────────────────────────────────────────────────────────────────
86+
# NODE / JAVASCRIPT (web señuelo si algún día se expande)
87+
# ──────────────────────────────────────────────────────────────────
3688
node_modules/
89+
npm-debug.log*
90+
yarn-debug.log*
91+
yarn-error.log*
92+
.npm
3793
dist/
3894
build/
3995

40-
# OS
96+
# ──────────────────────────────────────────────────────────────────
97+
# LOGS — nunca al repositorio
98+
# ──────────────────────────────────────────────────────────────────
99+
*.log
100+
*.log.*
101+
logs/
102+
/var/log/
103+
ossec.log
104+
alerts.log
105+
archive.log
106+
107+
# ──────────────────────────────────────────────────────────────────
108+
# ARCHIVOS TEMPORALES Y BACKUPS
109+
# ──────────────────────────────────────────────────────────────────
110+
*.tmp
111+
*.temp
112+
*.bak
113+
*.backup
114+
*.orig
115+
*.swp
116+
*.swo
117+
*~
118+
\#*\#
119+
120+
# ──────────────────────────────────────────────────────────────────
121+
# SISTEMA OPERATIVO
122+
# ──────────────────────────────────────────────────────────────────
123+
# macOS
41124
.DS_Store
125+
.AppleDouble
126+
.LSOverride
127+
._*
128+
.Spotlight-V100
129+
.Trashes
130+
131+
# Windows
42132
Thumbs.db
133+
Thumbs.db:encryptable
134+
ehthumbs.db
43135
desktop.ini
136+
$RECYCLE.BIN/
137+
*.lnk
44138

45-
# Editors
139+
# Linux
140+
.directory
141+
.Trash-*
142+
143+
# ──────────────────────────────────────────────────────────────────
144+
# EDITORES E IDEs
145+
# ──────────────────────────────────────────────────────────────────
146+
# VSCode
46147
.vscode/
148+
*.code-workspace
149+
150+
# JetBrains
47151
.idea/
152+
*.iml
153+
*.iws
154+
*.ipr
155+
156+
# Vim/Emacs
48157
*.swp
49-
*~
158+
*.swo
159+
[._]*.s[a-v][a-z]
160+
[._]*.sw[a-p]
161+
Session.vim
162+
.netrwhist
50163

51-
# Logs del lab (nunca al repo)
52-
*.log
164+
# ──────────────────────────────────────────────────────────────────
165+
# DOCKER (si se usan contenedores localmente)
166+
# ──────────────────────────────────────────────────────────────────
167+
.docker/
168+
docker-compose.override.yml
169+
170+
# ──────────────────────────────────────────────────────────────────
171+
# ARCHIVOS GRANDES DE MEDIA (subir manualmente cuando estén listos)
172+
# ──────────────────────────────────────────────────────────────────
173+
# El GIF y PNG se añaden explícitamente cuando existan
174+
# media/*.gif ← NO ignorar, queremos el demo GIF
175+
# media/*.png ← NO ignorar, queremos el diagrama PNG
176+
# El .drawio SÍ se incluye (ya está en el repo)

0 commit comments

Comments
 (0)