Skip to main content

RESERVED_PREFIXES

Constant RESERVED_PREFIXES 

Source
pub const RESERVED_PREFIXES: &[&str];
Expand description

Daemon-reserved path prefixes. Plugin registrations whose mount_prefix collides with any of these are rejected so a malicious or buggy plugin cannot hijack health/metrics/admin surfaces.

Order: longest-first to match the router’s matching order. Comparison is exact-equality OR prefix-of-plugin: a plugin asking for /health/foo would still shadow the daemon’s /health endpoint, so we reject prefixes that contain a reserved path as their leading segment too.