You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Question] SandboxTemplate.environment environment variables not applied to container #863
Debug output confirms the environment variables are correctly serialized in the protobuf message (request.spec.template.environment contains these values)
After the sandbox is ready, run env inside the sandbox:
env | grep GATEWAY
# no output - environment variables are missing
Expected Behavior
Environment variables in template.environment should appear in the container's environment.
Actual Behavior
Debug output confirms template.environment is correctly passed to the OpenShell server
But running env shows no custom environment variables
OpenShell default environment variables (like OPENSHELL_SANDBOX_ID, SSL_CERT_FILE, etc.) do appear
Verification Steps Taken
prost protobuf serialization is correct: request.spec.template.environment contains all environment variables
Rust build_env_list function should process template_environment: it calls apply_env_map(&mut env, template_environment)
apply_env_map should upsert environment variables
Tested with a simple MY_TEST_VAR=test_value - same result, environment variable not present
Environment
OpenShell version: 0.0.29 (running k3s on OrbStack)
changed the title [-][問題] SandboxTemplate.environment 環境變數未被正確應用到容器[/-][+][Question] SandboxTemplate.environment environment variables not applied to container[/+]on Apr 16, 2026
This issue has had no activity for 14 days and is now marked stale. It may be closed in 7 days if there is no further activity. Comment or remove the state:stale label to keep it open.
Activity
[-][問題] SandboxTemplate.environment 環境變數未被正確應用到容器[/-][+][Question] SandboxTemplate.environment environment variables not applied to container[/+]github-actions commentedon Aug 30, 2026
This issue has had no activity for 14 days and is now marked stale. It may be closed in 7 days if there is no further activity. Comment or remove the state:stale label to keep it open.