Skip to content

Commit 603ee40

Browse files
authored
Merge pull request #6 from kagenti/fix/sandbox-inference-routing
fix: enable sandbox inference routing on Kind
2 parents 0600c54 + 36eadd0 commit 603ee40

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

  • crates

crates/openshell-sandbox/src/ssh.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,19 @@ fn apply_child_env(
694694
for (key, value) in provider_env {
695695
cmd.env(key, value);
696696
}
697+
698+
// Pass through infrastructure env vars set by the compute driver.
699+
// These point to inference.local (the sandbox proxy endpoint) and are
700+
// not user secrets — they must be readable as URLs by child processes.
701+
for key in [
702+
"ANTHROPIC_BASE_URL",
703+
"OPENAI_BASE_URL",
704+
"CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS",
705+
] {
706+
if let Ok(val) = std::env::var(key) {
707+
cmd.env(key, val);
708+
}
709+
}
697710
}
698711

699712
#[allow(clippy::too_many_arguments)]

crates/openshell-server/src/auth/oidc.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ pub const AUTH_SOURCE_SANDBOX_SECRET: &str = "sandbox-secret";
3333
/// Truly unauthenticated methods — health probes and infrastructure.
3434
const UNAUTHENTICATED_METHODS: &[&str] = &[
3535
"/openshell.v1.OpenShell/Health",
36+
"/openshell.v1.OpenShell/ConnectSupervisor",
37+
"/openshell.v1.OpenShell/RelayStream",
3638
"/openshell.inference.v1.Inference/Health",
3739
];
3840

0 commit comments

Comments
 (0)