Replace external reachability with an owned canary
This commit is contained in:
parent
0f6825c3b9
commit
31e9ab0f2d
1 changed files with 1409 additions and 1972 deletions
|
|
@ -32,7 +32,7 @@ use rustix::io::{FdFlags, fcntl_setfd, read, write};
|
|||
use rustix::process::Signal;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::network::{NetworkProbeRequest, PreparedNetwork};
|
||||
use crate::network::PreparedNetwork;
|
||||
use crate::sandbox::RunscCommand;
|
||||
|
||||
use handoff::{build_runtime_handoff, parse_runtime_handoff};
|
||||
|
|
@ -47,7 +47,6 @@ const TERMINATION_GRACE: Duration = Duration::from_secs(2);
|
|||
|
||||
pub const RUNTIME_SUPERVISOR_SERIALIZED_RECORD_TYPE_NAMES: &[&str] = &[
|
||||
"RuntimeSupervisorHandoff",
|
||||
"NetworkProbeRequest",
|
||||
"AttachedRunscSignal",
|
||||
"SupervisorEvent",
|
||||
"CoordinatorMessage",
|
||||
|
|
@ -92,7 +91,7 @@ pub enum SupervisorEvent {
|
|||
HelperStaged(StagedProcessOwnership),
|
||||
HelperReady(StagedProcessOwnership),
|
||||
NetworkAttestation(NetworkReadinessAttestation),
|
||||
NetworkProbe(lazaret_core::records::NetworkReachabilityProbe),
|
||||
NetworkCanary(lazaret_core::records::NetworkCanaryObservation),
|
||||
HelperExited,
|
||||
Staged(StagedProcessOwnership),
|
||||
Ready {
|
||||
|
|
@ -132,7 +131,7 @@ enum CoordinatorMessage {
|
|||
GitRoutingStagedAck(ProcessOwnershipCommitAck),
|
||||
StartSidecar,
|
||||
HelperStagedAck(ProcessOwnershipCommitAck),
|
||||
NetworkAttestationAccepted(NetworkProbeRequest),
|
||||
NetworkAttestationAccepted,
|
||||
NetworkReadinessCommitted,
|
||||
StagedAck(ProcessOwnershipCommitAck),
|
||||
SandboxCommitted,
|
||||
|
|
@ -232,10 +231,10 @@ impl CoordinatorChannel {
|
|||
|
||||
/// # Errors
|
||||
/// Returns an error when accepted attestation cannot release sandbox acquisition.
|
||||
pub fn acknowledge_network_attestation(&self, request: NetworkProbeRequest) -> io::Result<()> {
|
||||
pub fn acknowledge_network_attestation(&self) -> io::Result<()> {
|
||||
send_message(
|
||||
&self.descriptor,
|
||||
&CoordinatorMessage::NetworkAttestationAccepted(request),
|
||||
&CoordinatorMessage::NetworkAttestationAccepted,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue