integrate locksmith #136
integrate-locksmith into main 6712e97f90
to 89e63d30cf
89e63d30cf
to 18f756835c
@ -492,2 +501,4 @@
}
// Port 8084 is reserved for locksmith when locksmith is enabled
iflocksmith.unwrap_or(false)&&ports.contains(&8084){
8084 is removed from ports regardless of whether locksmith is enabled or not. this should only check for the user specifying port 8084.
@ -574,7 +583,7 @@ fn render_templates(request: &BuildRequest) -> (String, String) {
};
letcustom_port_proxies: String =request.ports.iter()
.filter(|&&p|p!=8080&&p!=8081&&p!=8082)
we should probably error if the user provides any of these ports, but we plan to override them. see other comment for how this can accidentally be a silent error.
@ -4909,0 +4988,4 @@
letaddress=format!("{}:8084",public_ip);
eprintln!("Sending shard to enclave at {}...",address);
// Invoke locksmith binary to send the shard
why not pull in the crate?
the resolver u included there doesn't work with my current setup, and keymaker-models doesn't seem to be exported properly for the crate
@ -174,7 +184,7 @@ async fn render_run_sh_template(
letcustom_port_proxies: String =ports
.iter()
.filter(|&&port|port!=8080&&port!=8081&&port!=8082)
same as above, these should raise errors of some sort
@ -3732,0 +3752,4 @@
"pcr2": remote_pcrs.pcr2,
"verified_at": chrono::Utc::now().to_rfc3339(),
});
lethashes_path=PathBuf::from(".caution/trusted_hashes.json");
these hashes should be added via explicit instruction, not automatically
flag this under --save-pcrs ?
@ -556,0 +567,4 @@
anyhow::bail!("Port {} is reserved for {}",port,service);
}
}
ifrequest.locksmith&&request.ports.contains(&8084){
we should deny it unconditionally
@ -575,3 +599,3 @@
letcustom_port_proxies: String =request.ports.iter()
.filter(|&&p|p!=8080&&p!=8081&&p!=8082)
.filter(|&&p|p!=8080&&p!=8081&&p!=8082&&!(request.locksmith&&p==8084))
just realized, is this missing steve? port 8083?
oh disregard, STEVE forwards to 8083.
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?