[PR #2335] [CLOSED] sycl serve: keep STRATA_API_KEY out of the engine container #3985

Closed
opened 2026-11-07 15:32:15 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • ea188da sycl 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 forwards STRATA_* variables into the engine container now skips STRATA_API_KEY, the same way it already skips the script's own STRATA_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 reaches strata-sycl.sh, which passes every STRATA_* variable on as docker run -e. The key then sits in the container's config, readable by anyone who can run docker inspect strata-sycl-serve or read the docker command line in ps. 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:

  • docker replaced by a stub that prints its arguments, env -i with STRATA_API_KEY=k set: 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).
  • On one Arc Pro B65 (xe driver), the same one-line exclusion has been in our launcher since 0.1.41: the server is started with STRATA_API_KEY exported, and docker inspect of 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.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/2335 **Author:** [@leadgtr7](https://github.com/leadgtr7) **Created:** 10/13/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `sycl-serve-api-key-out` --- ### 📝 Commits (1) - [`ea188da`](https://github.com/Niko1221/Strata/commit/ea188da38156ff961c25c6a31833a78280c934d9) sycl serve: keep STRATA_API_KEY out of the engine container ### 📊 Changes **1 file changed** (+3 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `sycl/serve/strata-sycl.sh` (+3 -2) </details> ### 📄 Description **What it changes:** one line in `sycl/serve/strata-sycl.sh`: the loop that forwards `STRATA_*` variables into the engine container now skips `STRATA_API_KEY`, the same way it already skips the script's own `STRATA_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 reaches `strata-sycl.sh`, which passes every `STRATA_*` variable on as `docker run -e`. The key then sits in the container's config, readable by anyone who can run `docker inspect strata-sycl-serve` or read the docker command line in `ps`. 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:** - `docker` replaced by a stub that prints its arguments, `env -i` with `STRATA_API_KEY=k` set: 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). - On one Arc Pro B65 (xe driver), the same one-line exclusion has been in our launcher since 0.1.41: the server is started with `STRATA_API_KEY` exported, and `docker inspect` of 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](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:32:15 +07:00
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#3985
No description provided.