Commit Graph

13 Commits

Author SHA1 Message Date
Erick ivan 7101913fff revert(auth): remove the session login from the API
The API no longer authenticates: no /auth routes, no session cookie and no before_request lock. An external service that reads and writes data was hitting the 401, so the endpoint is open again.

The interface keeps its login and the per-account domains, now resolved in the browser. WEBAPI_USUARIO(S) and WEBAPI_SECRET_KEY are gone from the Dockerfile and .env.example.
2026-11-19 10:32:22 -06:00
Erick ivan 084fe2e8d3 feat(auth): session login with per-domain scope
Cookie session with /auth/login, /auth/logout and /auth/me. Four accounts come from WEBAPI_USUARIOS (admin plus one per domain) and a second before_request answers 403 when an account asks for another domain.

The data suites run with WEBAPI_AUTH_REQUIRED=0; test_auth.py turns the lock back on and covers both hooks. The Dockerfile normalises the entrypoint so a Windows checkout still starts the container.
2026-11-19 09:35:25 -06:00
Roberto Treviño Cervantes b8045e7481 dbt's manifest compiled at start-up for the deployment's engine; the image carries the dbt environments 2026-11-15 00:47:38 -06:00
alberto 790879513b The image compiles dbt's manifest and sets DBT_MANIFEST, so the measure and FHIR routes are served 2026-11-13 15:31:29 -06:00
edgar 270e229a51 The kit's silver load, reference tables, table maps and follow-up list move into the WebApi; the kit is no longer a dependency 2026-11-08 17:28:24 -06:00
edgar 82504bd0bf English names: orchestration (cycle, context, runner, repositories), its steps, fields and CLI, recomputation, follow_up and reports 2026-11-08 17:28:24 -06:00
Roberto Treviño Cervantes ae1ee4633f absorb Orquestacion into webapi.orquestacion
Orquestacion was a separate uv package with exactly one consumer
(webapi.indicadores_vivos) and no independent deployment: the Dockerfile
already copied it straight into this image and ran one uv sync for
everything. Folding it in removes a redundant pyproject.toml/uv.lock/venv
without losing the standalone CLI (python -m webapi.orquestacion ciclo/
confirmar-riesgos) or its test suite, which now runs as part of this
project's own pytest run.

417 tests pass (416 unchanged + the merged orquestacion suite); verified
live in a built image, where the indicadores worker completed a full
cacu/cama/tea cycle against webapi.orquestacion.ejecutor.
2026-10-31 00:51:41 -06:00
Roberto Treviño Cervantes 2b2c290f58 add import audit trail, live indicator recompute, reportes endpoints; production hardening 2026-10-30 11:19:30 -06:00
Roberto Treviño Cervantes f65d5f3f4d preliminary release 2026-10-29 12:12:28 -06:00
Roberto Treviño Cervantes be9b528c5f integrating latest dashboard changes 2026-10-26 01:42:27 -06:00
Roberto Treviño Cervantes c799e2ad90 copy indicadores_kit into the webapi image (path dependency, missing from the build context) 2026-10-23 01:12:47 -06:00
Roberto Treviño Cervantes 043f7635f4 integration layer; merge work on indicators from forks with existing ingestion pipeline 2026-10-23 01:12:43 -06:00
Roberto Treviño Cervantes c1444e2b8d initial commit 2026-09-21 10:23:40 -06:00