feat(user-agent): add VaultGate for sealed vault authentication

This commit is contained in:
hdbg
2026-04-08 18:29:52 +02:00
parent 205227a3df
commit 87ee0fe87b
24 changed files with 900 additions and 625 deletions

View File

@@ -25,10 +25,10 @@ use arbiter_crypto::safecell::{SafeCell, SafeCellHandle as _};
pub mod events {
#[derive(Clone, Copy)]
pub struct VaultBootstrapped;
pub struct Bootstrapped;
#[derive(Clone, Copy)]
pub struct VaultUnsealed;
pub struct Unsealed;
#[derive(Clone, Copy)]
pub struct VaultResealed;
@@ -213,7 +213,7 @@ impl Vault {
});
info!("Vault bootstrapped successfully");
self.events.tell(Publish(events::VaultBootstrapped)).await;
self.events.tell(Publish(events::Bootstrapped)).await;
Ok(())
}
@@ -269,7 +269,7 @@ impl Vault {
});
info!("Vault unsealed successfully");
self.events.tell(Publish(events::VaultUnsealed)).await;
self.events.tell(Publish(events::Unsealed)).await;
Ok(())
}