minor cleanup

This commit is contained in:
Vivian 2023-05-02 09:42:01 +02:00
parent f7a851879c
commit 0e4f945e1e
2 changed files with 6 additions and 4 deletions

View file

@ -54,6 +54,9 @@ fn is_sealed(health_url: &str) -> bool {
}
}
/// Unseals a vault given keys and url
///
/// See: https://developer.hashicorp.com/vault/api-docs/system/unseal
fn unseal(keyfile: &KeyFile, unseal_url: &str) {
for key in keyfile.keys.iter() {
match ureq::post(unseal_url).send_json(json!({ "key": key })) {