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:
+1
-9
@@ -50,11 +50,6 @@ ENV MLFLOW_DISABLE_TELEMETRY=true DO_NOT_TRACK=true
|
||||
ENV WEBAPI_REPORT_DIR=/data/reportes
|
||||
ENV INDICADORES_DIR=/data/indicadores
|
||||
ENV MLFLOW_DISABLE_AGENT_HINT=1
|
||||
# Session login (webapi/blueprints/auth.py): the four demonstration accounts live
|
||||
# in the code; WEBAPI_USUARIOS (JSON list, see .env.example) replaces them.
|
||||
# Signs the session cookie: the same value in every worker and across restarts,
|
||||
# or the login does not survive the next request.
|
||||
ENV WEBAPI_SECRET_KEY=issteleon-dev-cambiar-en-produccion
|
||||
# Without it the measure routes (/<domain>/indicadores, /<domain>/fhir) aren't
|
||||
# registered. The entrypoint replaces it with one compiled against the
|
||||
# deployment's engine when that engine isn't SQLite (webapi.dbt_manifest).
|
||||
@@ -62,10 +57,7 @@ COPY --from=manifest /app/Transformation /app/Transformation
|
||||
ENV DBT_MANIFEST=/app/Transformation/target/manifest.json
|
||||
ENV TRANSFORMATION_DIR=/app/Transformation
|
||||
|
||||
# A checkout on Windows can bring the script with CRLF, and then the shebang
|
||||
# is `#!/bin/sh\r`: the container would not start. Normalize it here so the
|
||||
# image builds the same from any platform.
|
||||
RUN sed -i 's/\r$//' /app/WebApi/docker-entrypoint.sh && chmod +x /app/WebApi/docker-entrypoint.sh
|
||||
RUN chmod +x /app/WebApi/docker-entrypoint.sh
|
||||
|
||||
EXPOSE 5000
|
||||
ENTRYPOINT ["/app/WebApi/docker-entrypoint.sh"]
|
||||
|
||||
Reference in New Issue
Block a user