Skip to main content

DAEMON_TOKEN_ENV

Constant DAEMON_TOKEN_ENV 

Source
pub const DAEMON_TOKEN_ENV: &str = "TCODE_DAEMON_TOKEN";
Expand description

Environment variable naming the daemon credential directly, ahead of the token file (#5439).

Why: a client may run where it cannot read the daemon’s data directory — a container, a different account, an operator driving a remote daemon over a tunnel. This is a CLIENT-side override only: tcode serve --http never reads it, because a server that took its credential from the environment would accept whatever a caller could arrange to export.