mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2335] [CLOSED] sycl serve: keep STRATA_API_KEY out of the engine container #3985
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#3985
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/2335
Author: @leadgtr7
Created: 10/13/2026
Status: ❌ Closed
Base:
main← Head:sycl-serve-api-key-out📝 Commits (1)
ea188dasycl serve: keep STRATA_API_KEY out of the engine container📊 Changes
1 file changed (+3 additions, -2 deletions)
View changed files
📝
sycl/serve/strata-sycl.sh(+3 -2)📄 Description
What it changes: one line in
sycl/serve/strata-sycl.sh: the loop that forwardsSTRATA_*variables into the engine container now skipsSTRATA_API_KEY, the same way it already skips the script's ownSTRATA_SYCL_*settings. The header comment says so.Why: the server takes its key from
STRATA_API_KEY(#1344, the environment form of--api-key). Started that way with the SYCL engine, the server's environment reachesstrata-sycl.sh, which passes everySTRATA_*variable on asdocker run -e. The key then sits in the container's config, readable by anyone who can rundocker inspect strata-sycl-serveor read the docker command line inps. The engine never reads it; only the Python server checks keys.What it leaves alone: every other forwarded variable, the defaults, the server, and the CUDA/HIP paths. A config's
"api_key"field never reached the launcher, so nothing changes for it.How it was checked:
dockerreplaced by a stub that prints its arguments,env -iwithSTRATA_API_KEY=kset: on main the argument list holds-e STRATA_API_KEY=k; with this change it does not, and every other argument is identical (same sorted list).STRATA_API_KEYexported, anddocker inspectof the engine container shows neither the variable nor the key in its env or command, while the server still answers 401 without the key and 200 with it.Not tested: Windows (the SYCL launcher is Linux-only), two-card setups.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.