mirror of
https://github.com/siderolabs/talos.git
synced 2026-05-05 04:16:21 +02:00
fix: provide refreshing CA pool (resolvers)
When a registry has _some_ TLS config included, the refreshing CA pool was overwritten with the result returned from the config provider. Ensure that is is restored back to the default value (unless explicitly set by the provider if the registry CA is set). Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
This commit is contained in:
parent
d63c3ed7db
commit
ab847310ef
@ -60,6 +60,11 @@ func RegistryHosts(reg config.Registries) docker.RegistryHosts {
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error preparing TLS config for %q: %w", u.Host, err)
|
||||
}
|
||||
|
||||
// set up refreshing Root CAs if none were provided
|
||||
if transport.TLSClientConfig.RootCAs == nil {
|
||||
transport.TLSClientConfig.RootCAs = httpdefaults.RootCAs()
|
||||
}
|
||||
}
|
||||
|
||||
if u.Path == "" {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user