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

Function is_sandbox_callable

crates/openshell-server/src/auth/sandbox_methods.rs:15–17  ·  view source on GitHub ↗

Method-level allowlist for sandbox principals. Gateway-minted sandbox JWTs identify a single sandbox supervisor. They must not authorize user-facing or admin APIs. The router rejects sandbox principals for every method outside this supervisor-to-gateway allowlist; handlers still perform same-sandbox checks on request bodies. The allowlist is derived from per-handler `#[rpc_auth(...)]` annotation

(path: &str)

Source from the content-addressed store, hash-verified

13//! `sandbox` or `dual`.
14
15pub fn is_sandbox_callable(path: &str) -> bool {
16 super::method_authz::is_sandbox_callable(path)
17}
18
19#[cfg(test)]
20mod tests {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected