security(memory): zeroization of bootstrap token

This commit is contained in:
CleverWild
2026-06-18 17:16:06 +02:00
committed by Skipper
parent 3ff0875c48
commit 84e1ef7c85
6 changed files with 25 additions and 20 deletions

View File

@@ -18,6 +18,7 @@ use arbiter_proto::{
use async_trait::async_trait;
use tonic::Status;
use tracing::warn;
use zeroize::Zeroizing;
pub(super) struct AuthTransportAdapter<'a> {
pub(super) bi: &'a mut GrpcBi<OperatorRequest, OperatorResponse>,
@@ -171,7 +172,7 @@ impl Receiver<auth::Inbound> for AuthTransportAdapter<'_> {
Some(auth::Inbound::AuthChallengeRequest {
pubkey,
bootstrap_token,
bootstrap_token: bootstrap_token.map(Zeroizing::new),
})
}
AuthRequestPayload::ChallengeSolution(ProtoAuthChallengeSolution { signature }) => {