mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #212] GET /status needs no API key and returns the end of the last answer #110
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#110
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Originally created by @alphastorm on GitHub (Sep 30, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/212
With an API key configured,
/v1/*,/slots,/props,/metrics,/settingsand/mcpanswer 401 without it, and docs/DETAILS.md says the metadata endpoints and/slotsrequire the key.GET /status(serve/server.py#L1312-L1323) does not check it, and its answer includestail, the last 600 characters of the generated text (#L781), andtool, the tool being called.tailis not cleared when the request ends (#L916 resets onlybusy), so/statuskeeps returning the end of the most recent answer while the server is idle.So anything that can reach the port can read the model's output without the key: every local process on the default 127.0.0.1, and the network with
--host 0.0.0.0.Reproduce (v0.1.27,
a790805, mock engine)After the request has finished,
/statuswithout the key returns:/slots,/v1/statusand/v1/modelswithout the key return 401missing or wrong API key.Suggested fix
Require the key on
/statusas on/slots(nothing inserve/webreads/status), or keep it open withouttailandtool. Clearingtailwhen a request ends would also stop it from outliving the request.@Niko1221 commented on GitHub (Sep 30, 2026):
Confirmed, thanks. In 0.1.28 (in testing)
/statusrequires the key like/v1/*, and the answer's end is not kept after the request.@Niko1221 commented on GitHub (Sep 30, 2026):
Fixed in 0.1.28:
/statusneeds the API key when one is set, and the answer's end is dropped when the request finishes.