Skip to main content

container_route_allowed

Function container_route_allowed 

Source
pub fn container_route_allowed(path: &str, served: Served) -> bool
Expand description

Whether a container agent may call path. A route srv serves (served) is open to it unless its audience (crate::backend::route_audience) refuses it, with a reason each: commands on the host, the host’s files outside its mounts, the app’s own plumbing. A path under srv’s route namespaces that is neither served nor named there is refused too. Matched on the raw path, exactly as the router matches it.