instance_allows_zone_namespace

Function instance_allows_zone_namespace 

Source
pub fn instance_allows_zone_namespace(
    instance: &Bind9Instance,
    zone_namespace: &str,
) -> bool
Expand description

Check whether instance carries an annotation that grants the named zone_namespace permission to target it cross-namespace.

Returns true iff the instance’s crate::constants::ANNOTATION_ALLOW_ZONE_NAMESPACES annotation is set and its value, when parsed as a comma-separated list, contains either zone_namespace or crate::constants::ALLOW_ZONE_NAMESPACES_WILDCARD.

Same-namespace matching is handled by the caller and does not require this annotation.