Skip to main content

HEADER_API_KEY

Constant HEADER_API_KEY 

Source
pub const HEADER_API_KEY: &str = "x-api-key";
Expand description

API-key auth header consumed by the HTTP daemon’s auth middleware (handlers/transport.rs) and SENT by every internal client (federation push/receive, CLI remote commands). Client and server must agree byte-for-byte — a drifted copy is a silent auth break (#1558 batch 4).