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.
This commit is contained in:
Erick ivan
2026-11-19 10:32:22 -06:00
parent 084fe2e8d3
commit 7101913fff
6 changed files with 3 additions and 398 deletions
-5
View File
@@ -27,11 +27,6 @@ from webapi.orchestration.repositories import repositories_of
# Tests use throwaway SQLite files as "arbitrary SQL sources"; production
# excludes sqlite by default (see webapi.imports.connectors.sql_policy).
os.environ.setdefault("WEBAPI_SQL_ALLOWED_DIALECTS", "sqlite,mysql,mariadb,postgresql,mssql")
# The rest of the suite tests data and reports, not the login: with the lock
# on, every case would first have to authenticate. `test_auth.py` turns it
# back on for the cases that cover the lock itself.
os.environ.setdefault("WEBAPI_AUTH_REQUIRED", "0")
os.environ.setdefault("WEBAPI_SECRET_KEY", "clave-de-pruebas")
# The import log and the indicator queue write files; keep them out of the tree.
_STATE_DIR = tempfile.mkdtemp(prefix="webapi-tests-")
os.environ.setdefault("WEBAPI_REPORT_DIR", os.path.join(_STATE_DIR, "reportes"))