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

Function sandbox_principal

crates/openshell-server/src/supervisor_session.rs:866–874  ·  view source on GitHub ↗
(sandbox_id: &str)

Source from the content-addressed store, hash-verified

864 }
865
866 fn sandbox_principal(sandbox_id: &str) -> Principal {
867 Principal::Sandbox(SandboxPrincipal {
868 sandbox_id: sandbox_id.to_string(),
869 source: SandboxIdentitySource::BootstrapJwt {
870 issuer: "openshell-gateway:test".to_string(),
871 },
872 trust_domain: Some("openshell".to_string()),
873 })
874 }
875
876 fn user_principal(subject: &str) -> Principal {
877 Principal::User(UserPrincipal {

Calls 1

SandboxClass · 0.85