[GH-ISSUE #1344] Server: Multiple API key(llamacpp format) will seen as one long key #541

Closed
opened 2026-11-04 01:43:55 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @ed-hch on GitHub (Oct 7, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1344

Launch command: .\START-HERE.bat --no-browser --host 0.0.0.0 --api-key sk-<<48char key1>>,sk-<<48char key2>>
The result api key will be joining 2 keys together. "sk-<<48char key1>>,sk-<<48char key2>>"

This imply a, the server doesn't check the key format, I'm not sure is it by design to support various key format
b, it can't parse comma-separated list of keys.

Originally created by @ed-hch on GitHub (Oct 7, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/1344 Launch command: .\START-HERE.bat --no-browser --host 0.0.0.0 --api-key sk-<<48char key1>>,sk-<<48char key2>> The result api key will be joining 2 keys together. "sk-<<48char key1>>,sk-<<48char key2>>" This imply a, the server doesn't check the key format, I'm not sure is it by design to support various key format b, it can't parse comma-separated list of keys.
Author
Owner

@Niko1221 commented on GitHub (Oct 8, 2026):

Fixed in 0.1.41: --api-key, STRATA_API_KEY and "api_key" take llama.cpp's form, several keys separated by commas (key1,key2; spaces around a key are dropped), and a request passes with any one of them. A key that contains a comma can be given as a list in the config, "api_key": ["a,b", "c"]. The keys are compared in constant time, all of them, whatever the outcome.

<!-- gh-comment-id:6059649399 --> @Niko1221 commented on GitHub (Oct 8, 2026): Fixed in 0.1.41: `--api-key`, `STRATA_API_KEY` and `"api_key"` take llama.cpp's form, several keys separated by commas (`key1,key2`; spaces around a key are dropped), and a request passes with any one of them. A key that contains a comma can be given as a list in the config, `"api_key": ["a,b", "c"]`. The keys are compared in constant time, all of them, whatever the outcome.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#541
No description provided.