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

Function gateway_auth_label

crates/openshell-cli/src/run.rs:693–699  ·  view source on GitHub ↗
(gateway: &GatewayMetadata)

Source from the content-addressed store, hash-verified

691}
692
693fn gateway_auth_label(gateway: &GatewayMetadata) -> &str {
694 match gateway.auth_mode.as_deref() {
695 Some(auth_mode) => auth_mode,
696 None if gateway.gateway_endpoint.starts_with("http://") => "plaintext",
697 None => "mtls",
698 }
699}
700
701fn is_loopback_gateway_endpoint(endpoint: &str) -> bool {
702 let Ok(parsed) = url::Url::parse(endpoint) else {

Callers 2

gateway_addFunction · 0.85
gateway_listFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected