Build an OCSF context for gateway-level (non-sandbox) events.
()
| 335 | |
| 336 | /// Build an OCSF context for gateway-level (non-sandbox) events. |
| 337 | fn 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)] |
| 350 | mod tests { |