fix(security): endurecimiento de seguridad mediante limitación de tasa en autenticación y alertas - #66
Merged
Conversation
… limit Co-authored-by: Oscar Soriano <neko.dev@outlook.com> Co-authored-by: Aylin Chavira <aylinchavirachv@gmail.com> Co-authored-by: Alejandro Balderrama <alejandro64.bp@gmail.com>
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.
fix/security-hardening-round-one
Descripción
En este ciclo, elevamos la postura de seguridad de la plataforma implementando controles de limitación de tráfico (rate limiting) y cuotas operativas sobre rutas críticas. Estas medidas previenen ataques de fuerza bruta, saturación de envío de correos y el agotamiento deliberado de los recursos del motor de notificaciones.
Detalles técnicos que integramos:
fix): Intervenimosauth_bp.pyinyectando restricciones de frecuencia sobre el flujo de restablecimiento de contraseña (reset-password). Esto mitiga vectores de ataque orientados a la enumeración invasiva o al bombardeo de correos electrónicos (email spam/bombing).fix): Modificamosalerts_bp.pypara establecer un límite estricto en la creación de alertas por usuario. Esta barrera protege la infraestructura contra la saturación del orquestador de ingesta y evaluación.test): Actualizamos el módulo de pruebastest_alerts_endpoints.pypara certificar empíricamente el rechazo de peticiones (típicamente mediante el código de estado 429 Too Many Requests o 403 según el diseño de cuota) una vez que un cliente excede el umbral seguro.Tipo de cambio
Cómo probar
cd backend), activamos el entorno virtual.pytest tests/integration/test_alerts_endpoints.py -vflask run).Checklist