pub fn read_token_file(path: &str) -> Result<String, String>Expand description
Read a credential from a mounted file, trimming a single trailing newline
(kubelet projects a Secret value verbatim; an editor or echo commonly
appends a \n). Errors carry the path but never the contents, so a failed
read cannot spill the credential into a log or an error line.