Repository navigation
os: release-check uses the key the running lemond holds, not the first line of the file - #597
Merged
Merged
Conversation
…t line of the file Candidate 10 on the board (26 Oct): the conf held two active LEMONADE_API_KEY lines for a while (a staged one glued to the previous line without a newline, and the one init then minted because the anchored test did not see the glued one). lemond sources the file, so it ran on the last; the check took the first, sent it, got 401 and reported "the server answered 401 with the key", and every row that needs the model list degraded behind it. The key now comes from the environment of the process that listens on the Lemonade port (socket inode in /proc/net/tcp -> /proc/<pid>/fd -> /proc/<pid>/environ), which is what the server actually checks against; the file is the fallback, and then the last assignment wins, as it does for the shell that started lemond. Verified on the stick: Bearer <that key> -> 200 on /api/v1/models. Co-Authored-By: Claude Fable 5.1 <[email protected]>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Candidate 10 on the board (26 Oct, Secure Boot on):
FAIL lemonade : the server answered 401 with the key (wanted 200), and behind itmodels,gguf,chat,chat-hrxandbenchall degraded. Measured cause:/data/lemonade/lemond.confheld two activeLEMONADE_API_KEYlines for a while, a staged one glued onto the previous line (the stock file ends without a newline, so an append joins it) and the one init then minted because its anchored test did not see the glued one. lemond sources the file, so it ran on the last; the check took the first (head -1), sent it and read the 401 as a wrong key. With the current single key,Bearer <key>→ 200 on/api/v1/models(X-API-Key → 401, no key → 401,/health→ 200).Change,
os/mini/release-check.sh: the key comes from the environment of the process that listens on the Lemonade port (socket inode in/proc/net/tcp→/proc/<pid>/fd→/proc/<pid>/environ), which is what the server actually compares against; the file is the fallback, and then the last assignment wins, matching the shell that started lemond.--self-testPASS,bash -nclean. Pairs with #596 (the gguf row's three messages).Follow-up on the writer side: the stick-prep in
liveusb_vmtest.pyand any hand prep must append the key with a leading newline and assert exactly one^LEMONADE_API_KEY=line.🤖 Generated with Claude Code