Skip to main content

PUBLIC_HEALTH_PATH

Constant PUBLIC_HEALTH_PATH 

Source
pub const PUBLIC_HEALTH_PATH: &str = "/health";
Expand description

The one route that answers an unauthenticated caller (#6472).

Why: trusty-console’s gateway polls a daemon for liveness and holds no credential, and the ecosystem convention (trusty-search, trusty-memory) is an open GET /health. Keeping the ROUTE public while moving its disclosures behind the credential preserves that poll and still stops an anonymous caller from reading the daemon’s pid, bound project, and version.