deploy-branch / deploy (push) Successful in 3m11s
deploy-branch / teardown (push) Skipped
tests / Unitarias + componente + build (push) Failing after 3m27s
tests / Integración (Nominatim real, opt-in) (push) Skipped
tests / Unitarias + componente + build (pull_request) Failing after 3m0s
tests / Integración (Nominatim real, opt-in) (pull_request) Skipped
Nueva pantalla "Descripción" (paso 5 de 6, opcional, máx. 200 caracteres) entre Tipo específico y Revisión. La descripción viaja en la propuesta (trim; vacía → ausente/NULL), el filtro de palabras prohibidas la cubre y el resumen la muestra. Backend/BD ya la soportaban: cambio frontend-only. Incluye el archivo del cambio hide-admin-route y la propuesta openspec del nuevo cambio. Suite: 114/114.
1.3 KiB
1.3 KiB
Hide Admin Route
Why
The /api/pendientes endpoint (admin-only) and /api/reportes endpoint are currently exposed at obvious routes, making them easy targets for attackers. By default, the admin panel URL is well-known or discoverable via route enumeration (/admin, /admin/api/pendientes, /api/pendientes). This increases the attack surface of the application.
By obscuring or moving the admin route, we increase the effort required for attackers to find the admin panel, reducing the likelihood of unwanted access.
What Changes
- New capability:
route-obfuscation— middleware-based approach to hide the admin API routes by redirecting access attempts and serving a 404 or custom page. - Modify server configuration to intercept requests to known admin API routes and return a 404 or redirect to a custom page.
Capabilities
New Capabilities
- route-obfuscation: Protects admin routes (
/api/pendientes,/api/reportes,/api/locales/:id/*) by returning a 404 response when accessed without authentication, without exposing the route listing in response to global route enumeration.
Impact
- Affects the server configuration in
server/index.js. - Adds middleware to filter/admin route protection.
- Does not change the API contract for authenticated users.
- No database changes required.