security: feat unseal and bootstrap handshake brute-force protection

This commit is contained in:
CleverWild
2026-06-18 21:16:38 +02:00
committed by Skipper
parent 850e2b8669
commit 2b53023234
4 changed files with 35 additions and 7 deletions

View File

@@ -87,6 +87,7 @@ impl TryConvert for vault_gate::Outbound {
let proto_result = match result {
Ok(()) => ProtoUnsealResult::Success,
Err(vault_gate::Error::InvalidKey) => ProtoUnsealResult::InvalidKey,
Err(vault_gate::Error::LockedOut) => ProtoUnsealResult::LockedOut,
Err(err) => {
warn!(?err, "unseal failed");
return Err(Status::internal("Failed to unseal vault"));