Repository navigation
evaluation-harness v0.4.3
A security fix to the inspector: evh catalog-serve no longer serves files through /api/.
Upgrade if you run it where anyone else can reach it. No result moves.
Fixed
- Nothing is read through
/api/. A path under/api/skipped the server's path checks
and fell through to the file server, so/api/../.env, encoded or not, returned files from
the project root, keys included. This happened in local and in--publicmode. Now a..
anywhere in a path is refused first, and only the API's three endpoints (/api/health,
/api/compare,/api/item) answer under/api/. Any other/api/path is 404. In
--publicmode no path outside the API serves a file. --hookssee one route for every unknown/api/path. It is named/api/other, so
someone asking for many made-up paths cannot create a metric series for each.
Install
pip install "evaluation-harness @ git+https://github.com/chipi/eval-harness@v0.4.3#subdirectory=harness"