Skip to main content

agent_key_file_path

Function agent_key_file_path 

Source
pub fn agent_key_file_path(
    vault_path: &str,
    name: &str,
) -> Result<PathBuf, String>
Expand description

Compute the file path for an agent grant key: ~/.config/murk/agent-keys/<vault-hash>-<name>.

Grant keys live in a separate agent-keys/ directory, not in ~/.config/murk/keys/, so they are never surfaced by key auto-discovery (which only looks up keys/<vault-hash>). The vault hash prefix keeps a grant named the same across two vaults from colliding.