fix(strix/runtime/docker_client.py): Set HOME=/root when STRIX_HOST_UID is set to avoid Caido sidecar panic for system service accounts

Signed-off-by: cf3901646 <cf3901646@users.noreply.github.com>
This commit is contained in:
cf3901646 2026-10-20 15:27:44 +00:00
parent aa2036f229
commit 42a4f6cbba

View file

@ -196,6 +196,13 @@ class StrixDockerSandboxClient(DockerSandboxClient):
"command": ["tail", "-f", "/dev/null"],
"environment": environment,
}
# Fix for system service accounts: ensure HOME is set to a writable directory
# when STRIX_HOST_UID is set (i.e., when running as a system account).
if environment is None:
environment = {}
if "STRIX_HOST_UID" in environment and environment["STRIX_HOST_UID"]:
environment["HOME"] = "/root"
create_kwargs["environment"] = environment
if manifest is not None:
docker_mounts = _build_docker_volume_mounts(
manifest,