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

Function tls_ocsf_ctx

crates/openshell-server/src/tls.rs:337–347  ·  view source on GitHub ↗

Build an OCSF context for gateway-level (non-sandbox) events.

()

Source from the content-addressed store, hash-verified

335
336/// Build an OCSF context for gateway-level (non-sandbox) events.
337fn tls_ocsf_ctx() -> SandboxContext {
338 SandboxContext {
339 sandbox_id: String::new(),
340 sandbox_name: String::new(),
341 container_image: "openshell/gateway".to_string(),
342 hostname: "openshell-gateway".to_string(),
343 product_version: openshell_core::VERSION.to_string(),
344 proxy_ip: std::net::IpAddr::V4(std::net::Ipv4Addr::LOCALHOST),
345 proxy_port: 0,
346 }
347}
348
349#[cfg(test)]
350mod tests {

Callers 1

reloadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected