Skip to main content

auth_file_path

Function auth_file_path 

Source
pub fn auth_file_path() -> PathBuf
Expand description

The path of the token file — the JSON holding rerun_tokens (admin/agent credentials). It is gitignored and scaffolded by cortex init; the tracked config.example.json is only a template. Defaults to config.json in the working directory, overridable via CORTEX_AUTH_FILE so a deployment keeps its live token outside the repo (e.g. /etc/cortex/config.json, root-owned) and the repo copy stays the demo/test fixture — the live secret is never checked in.