Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions crates/openshell-sandbox/src/ssh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,19 @@ fn apply_child_env(
for (key, value) in provider_env {
cmd.env(key, value);
}

// Pass through infrastructure env vars set by the compute driver.
// These point to inference.local (the sandbox proxy endpoint) and are
// not user secrets — they must be readable as URLs by child processes.
for key in [
"ANTHROPIC_BASE_URL",
"OPENAI_BASE_URL",
"CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS",
] {
if let Ok(val) = std::env::var(key) {
cmd.env(key, val);
}
}
}

#[allow(clippy::too_many_arguments)]
Expand Down
2 changes: 2 additions & 0 deletions crates/openshell-server/src/auth/oidc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ pub const AUTH_SOURCE_SANDBOX_SECRET: &str = "sandbox-secret";
/// Truly unauthenticated methods — health probes and infrastructure.
const UNAUTHENTICATED_METHODS: &[&str] = &[
"/openshell.v1.OpenShell/Health",
"/openshell.v1.OpenShell/ConnectSupervisor",
"/openshell.v1.OpenShell/RelayStream",
"/openshell.inference.v1.Inference/Health",
];

Expand Down
Loading