hermes-bench: bind loopback by default, and stop logging the API key #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "h7-loopback-default"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
External review 2026-11-13, finding H7. Keeping the tool (it is a good public artifact), fixing the two things the review found.
1. Bind address. The packaged launcher hard-coded
uvicorn --host 0.0.0.0 --port 7420while the README documentedHERMES_BENCH_HOSTdefaulting to127.0.0.1— the docs described the intent, the binary ignored it. Now: a generated launcher that honoursHERMES_BENCH_HOST/HERMES_BENCH_PORT(defaults127.0.0.1:7420), warns loudly on any non-loopback bind, and passes extra args through.makeWrapperdropped.Why it matters: the UI has no auth and its job is spawning
llama-serverwith caller-chosen binary path, model path and flags.0.0.0.0turns a benchmarking toy into unauthenticated process launch on the host network.Verified on the built binary:
LISTEN 127.0.0.1:7499, refused on the host mesh IP;--helppassthrough works; non-loopback bind prints the warning.2. API key in logs.
start_serverlogged the exact argv, which contains--api-key <value>._redact_cmdmasks every occurrence before logging (order/count preserved), with 3 tests.Full backend suite: 143 passed.