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:
+1
-1
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user