Represent SSH distribution sync as a resource log
This commit is contained in:
parent
eec4c92145
commit
42d7301bdb
6 changed files with 247 additions and 52 deletions
|
|
@ -10,7 +10,8 @@ use geth_pubsub::PubsubMessage;
|
|||
use geth_resource::ResourceDescriptor;
|
||||
use geth_secrets::{BearerAccess, BearerChallenge, BearerProof, ResourceMasterSecret};
|
||||
use geth_ssh_identity::{
|
||||
SshCertApproval, SshCertRequest, SshCertificateRecord, SshRevocationEntry,
|
||||
SshCertApproval, SshCertRequest, SshCertificateRecord, SshDistributionLogEntry,
|
||||
SshRevocationEntry,
|
||||
};
|
||||
use geth_ssh_proxy::SshProxyConnection;
|
||||
use geth_types::BlobHash;
|
||||
|
|
@ -1177,6 +1178,7 @@ pub enum PeerControlResponse {
|
|||
remote_endpoint_id: String,
|
||||
requests: Vec<SshCertRequest>,
|
||||
certificates: Vec<SshCertificateRecord>,
|
||||
log_entries: Vec<SshDistributionLogEntry>,
|
||||
high_water_ms: i64,
|
||||
allowed: bool,
|
||||
reason: String,
|
||||
|
|
@ -1190,6 +1192,7 @@ pub enum PeerControlResponse {
|
|||
endpoint_id: String,
|
||||
remote_endpoint_id: String,
|
||||
revocations: Vec<SshRevocationEntry>,
|
||||
log_entries: Vec<SshDistributionLogEntry>,
|
||||
high_water_ms: i64,
|
||||
allowed: bool,
|
||||
reason: String,
|
||||
|
|
@ -2316,6 +2319,7 @@ mod tests {
|
|||
remote_endpoint_id: "endpoint:caller".to_owned(),
|
||||
requests: Vec::new(),
|
||||
certificates: Vec::new(),
|
||||
log_entries: Vec::new(),
|
||||
high_water_ms: 42,
|
||||
allowed: false,
|
||||
reason: "no grant".to_owned(),
|
||||
|
|
@ -2335,6 +2339,7 @@ mod tests {
|
|||
endpoint_id: "endpoint:peer".to_owned(),
|
||||
remote_endpoint_id: "endpoint:caller".to_owned(),
|
||||
revocations: Vec::new(),
|
||||
log_entries: Vec::new(),
|
||||
high_water_ms: 42,
|
||||
allowed: false,
|
||||
reason: "no grant".to_owned(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue