fix(plugins): trust platform certificates
Use the operating system trust store and Windows proxy settings while keeping TLS verification enabled. Add retryable registry errors with copyable diagnostics.\n\nRefs #563
This commit is contained in:
parent
4e25e88c31
commit
a717572d65
15 changed files with 434 additions and 44 deletions
|
|
@ -434,10 +434,7 @@ fn decode_reference(path: &str) -> Option<DecodedImage> {
|
|||
/// synchronous fetch and would hit CORS on a cross-origin image anyway.
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
fn fetch_remote(url: &str) -> Option<Vec<u8>> {
|
||||
let agent: ureq::Agent = ureq::Agent::config_builder()
|
||||
.timeout_global(Some(std::time::Duration::from_secs(8)))
|
||||
.build()
|
||||
.into();
|
||||
let agent = crate::network::agent(std::time::Duration::from_secs(8));
|
||||
let mut resp = agent
|
||||
.get(url)
|
||||
.header(
|
||||
|
|
|
|||
Loading…
Reference in a new issue