MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / sandbox

Function sandbox

crates/openshell-server/src/auth/guard.rs:114–122  ·  view source on GitHub ↗
(id: &str)

Source from the content-addressed store, hash-verified

112 }
113
114 fn sandbox(id: &str) -> Principal {
115 Principal::Sandbox(SandboxPrincipal {
116 sandbox_id: id.to_string(),
117 source: SandboxIdentitySource::BootstrapJwt {
118 issuer: "openshell-gateway:test".to_string(),
119 },
120 trust_domain: Some("openshell".to_string()),
121 })
122 }
123
124 #[test]
125 fn user_principal_bypasses_equality_check() {

Calls 1

SandboxClass · 0.85