fix(#7): pin busybox by digest, kernel downloads use the filtered agent

busybox:musl was a mutable tag re-resolved daily for the binary that runs as
PID 1 in every VM. Kernel/GitHub downloads now go through the same
public-only resolver as registries.
This commit is contained in:
2026-10-22 19:55:23 +02:00
parent 56762648e3
commit b50e846b11
4 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ fn explicit_local(registry: &str) -> bool {
/// HTTP agent for a registry. Public registries get an agent that refuses to connect to non-public
/// addresses (covers token realms and blob redirects too); an explicitly local registry
/// (e.g. localhost:5000, 192.168.1.5:5000) was chosen by the user and keeps the default agent.
fn agent_for(registry: &str) -> ureq::Agent {
pub fn agent_for(registry: &str) -> ureq::Agent {
if explicit_local(registry) {
return agent().build();
}