Skip to content

fix(security): auditoría de seguridad — TRUST_PROXY, anti-replay, body cap y password mínima 10 - #59

Merged
gnacho merged 3 commits into
mainfrom
feat/audit-seguridad
Aug 6, 2026
Merged

fix(security): auditoría de seguridad — TRUST_PROXY, anti-replay, body cap y password mínima 10#59
gnacho merged 3 commits into
mainfrom
feat/audit-seguridad

Conversation

@gnacho

@gnacho gnacho commented Aug 6, 2026

Copy link
Copy Markdown
Owner

Cierra #58 (Fase 12 — Auditoría de seguridad y robustez).

Fixes:

Tests nuevos: TRUST_PROXY (XFF/XFP ignorados), anti-replay (pasado/futuro 401, en ventana 202). Suite Go completa verde + go vet limpio + build front OK.

gnacho added 3 commits August 6, 2026 19:47
…esta, body cap y password mínima 10

- ClientIP e IsSecureRequest ignoran X-Forwarded-For/-Proto salvo con TRUST_PROXY=1 (evita falsear la IP para evadir el rate-limit de login/ingesta y forzar cookie Secure).
- Ingesta de agentes: valida la frescura de ts (AGENT_MAX_TS_DRIFT_S, default 5 min) — anti-replay de pushes capturados.
- readJSONBody limita el body a 64 KB (abuso de memoria en login/users/config).
- Password mínima 10 caracteres en alta y cambio (alineado con el resto de apps).
- Tests nuevos: TRUST_PROXY (XFF/XFP ignorados), anti-replay (pasado/futuro 401, en ventana 202).
…ditoría de seguridad

- CHANGELOG.md nuevo (Keep a Changelog) con la release bug-hunting.
- Bump server-go Version y app a 2.7.0.
- ROADMAP: estado actual v2.7.0 con la Fase 12 completada.
@gnacho
gnacho merged commit ab584ff into main Aug 6, 2026
@gnacho
gnacho deleted the feat/audit-seguridad branch August 6, 2026 18:09
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.

1 participant