hive-c0re pulls closures through the nix daemon; hive-priv verifies the swarm signature before applying
This commit is contained in:
parent
448b703995
commit
ecd4445680
1 changed files with 1257 additions and 584 deletions
|
|
@ -51,8 +51,8 @@ pub(super) trait Host: Sync {
|
|||
fn pinned_closure(&self, name: &str) -> Option<String>;
|
||||
/// Drop the agent's pin.
|
||||
fn unpin_closure(&self, name: &str);
|
||||
/// Download `store_path` from the swarm's cache into the store, never
|
||||
/// building it.
|
||||
/// Download `store_path` from the swarm's cache into the store through the
|
||||
/// host's nix daemon, never building it.
|
||||
async fn realise_closure(&self, name: &str, store_path: &str) -> Result<()>;
|
||||
/// Re-apply drop-ins, then point the container at the closure `toplevel`.
|
||||
async fn swap_update(
|
||||
|
|
@ -128,7 +128,9 @@ impl Host for RealHost {
|
|||
}
|
||||
|
||||
async fn realise_closure(&self, name: &str, store_path: &str) -> Result<()> {
|
||||
crate::priv_client::realise_closure(name, store_path).await
|
||||
crate::cache_pull::pull(store_path).await?;
|
||||
tracing::debug!(%name, %store_path, "pulled the swarm's closure through the nix daemon");
|
||||
Ok(())
|
||||
}
|
||||
|
||||
async fn swap_update(
|
||||
|
|
|
|||
Loading…
Reference in a new issue