fix(security): auditoría de seguridad — TRUST_PROXY, anti-replay, body cap y password mínima 10 - #59
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.