From f4e612f526bc297501e391be551be33046e843b3 Mon Sep 17 00:00:00 2001 From: Peter Siegel Date: Sat, 20 Jun 2026 23:44:15 +0200 Subject: [PATCH] fix(composefs): restore registry auth discovery on direct pull This restores #2086, dropped by the PullOptions migration (86265b22). Signed-off-by: Peter Siegel --- crates/lib/src/bootc_composefs/repo.rs | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/crates/lib/src/bootc_composefs/repo.rs b/crates/lib/src/bootc_composefs/repo.rs index fe58e201b..3c34c0a4a 100644 --- a/crates/lib/src/bootc_composefs/repo.rs +++ b/crates/lib/src/bootc_composefs/repo.rs @@ -190,9 +190,20 @@ async fn pull_composefs_direct( let imgref_str = imgref.to_string(); tracing::info!("Direct pull: fetching {imgref_str} into composefs repository"); - let pull_result = composefs_oci::pull(repo, &imgref_str, None, PullOptions::default()) - .await - .context("Pulling image into composefs repository")?; + let mut config = crate::deploy::new_proxy_config(); + ostree_ext::container::apply_container_proxy_opts_for_transport(&mut config, imgref.transport)?; + + let pull_result = composefs_oci::pull( + repo, + &imgref_str, + None, + PullOptions { + img_proxy_config: Some(config), + ..Default::default() + }, + ) + .await + .context("Pulling image into composefs repository")?; Ok(pull_result) }