(gateway: &GatewayMetadata)
| 691 | } |
| 692 | |
| 693 | fn 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 | |
| 701 | fn is_loopback_gateway_endpoint(endpoint: &str) -> bool { |
| 702 | let Ok(parsed) = url::Url::parse(endpoint) else { |
no outgoing calls
no test coverage detected