Live sync SSH metadata in background

This commit is contained in:
Eric Wendland 2026-05-18 18:29:45 +02:00
commit 68153be5d5
9 changed files with 318 additions and 13 deletions

View file

@ -513,10 +513,12 @@ pub enum PeerControlRequest {
},
SshCertSync {
peer_card: PeerCard,
since_ms: i64,
nonce: String,
},
SshRevocationSync {
peer_card: PeerCard,
since_ms: i64,
nonce: String,
},
}
@ -567,6 +569,7 @@ pub enum PeerControlResponse {
remote_endpoint_id: String,
requests: Vec<SshCertRequest>,
certificates: Vec<SshCertificateRecord>,
high_water_ms: i64,
allowed: bool,
reason: String,
evaluated_ops: usize,
@ -579,6 +582,7 @@ pub enum PeerControlResponse {
endpoint_id: String,
remote_endpoint_id: String,
revocations: Vec<SshRevocationEntry>,
high_water_ms: i64,
allowed: bool,
reason: String,
evaluated_ops: usize,
@ -873,6 +877,7 @@ mod tests {
remote_endpoint_id: "endpoint:caller".to_owned(),
requests: Vec::new(),
certificates: Vec::new(),
high_water_ms: 42,
allowed: false,
reason: "no grant".to_owned(),
evaluated_ops: 0,
@ -891,6 +896,7 @@ mod tests {
endpoint_id: "endpoint:peer".to_owned(),
remote_endpoint_id: "endpoint:caller".to_owned(),
revocations: Vec::new(),
high_water_ms: 42,
allowed: false,
reason: "no grant".to_owned(),
evaluated_ops: 0,