Skip to main content

prepare_secrets

Function prepare_secrets 

Source
async fn prepare_secrets(
    state: &AppState,
    caller: Option<&Caller>,
    req: &ShellCreateRequest,
    remote: bool,
    preapproved: Option<&Preapproved>,
) -> Result<(Option<Injected>, (Option<Job>, Vec<String>)), Response>
Expand description

Asks for the Vault secrets a command is given and checks the values its output goes into the Vault as, together, so the whole asking fits the Terminal tool’s wait. The agent says why first (a rotation’s own commands carry the rotation’s): a missing reason is refused before anything is asked or run.