Skip to content

Bug: Talos cannot reach image-cache due to certificate error #12264

@shanduur

Description

@shanduur

I just tried the above steps on a node without internet access (it could only access a local LAN with my machine).

I applied the image-cache-patch with certificate information

talosctl apply -f image-cache-patch.yaml -i -n 192.168.10.9

And then generated a config and a mirrors patch

machine:
  time:
    disabled: true
  registries:
    mirrors:
      ghcr.io:
        endpoints:
          - https://192.168.10.19:5009
          - https://ghcr.io/v2/
      registry.k8s.io:
        endpoints:
          - https://192.168.10.19:5009
          - https://registry.k8s.io/v2/

I then applied the config and patch to the machine

talosctl apply -f controlplane.yaml -p '@mirrors.yaml' -i -n 192.168.10.9

I can see in the cache-serve logs

2025/11/19 15:44:03 http: TLS handshake error from 192.168.10.9:46966: remote error: tls: bad certificate

When trying to verify the connection from a remote system it doesn't appear to be responding

curl -vI https://192.168.10.19:5009 2>&1
...
Could not connect to server

Originally posted by @rothgar in #12257

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions