You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8333d2e
Browse filesBrowse the repository at this point in the historyBrowse files
feat(agent)!: scope plain HTTP to the listed registries (MK8S-451)
--plain-http marked every registry insecure, so go-containerregistry
raced HTTPS and HTTP for all of them: a registry serving HTTPS no longer
failed on a bad certificate, and anyone on the path could answer the
HTTP attempt. It also excluded --ca-file, leaving a site with one plain
HTTP registry and one signed by a private CA with no working setting.
Replace it on the agent with --plain-http-registry=<host[:port]>,
repeatable. Only a source whose registry matches an entry exactly is
marked insecure; every other registry stays HTTPS only. Entries are
validated and normalized at startup and logged with a warning. The list
goes with --ca-file and still excludes --insecure-skip-tls-verify.
Marking a registry is not the only way the library reaches for HTTP: it
also races HTTP on its own for a private or loopback IP address and for
a localhost name, whatever the list says, and nothing turns that off.
Every pull therefore goes through a transport that refuses a plain HTTP
request to an unlisted registry before it leaves, so only the HTTPS
attempt is left and a bad certificate fails the pull again. Without it,
a registry on a private address, the usual case on premises, would be
reached over plain HTTP listed or not.
imagecachectl import keeps its --plain-http switch, now scoped to the
registry of its single source, and goes through the same transport.
BREAKING CHANGE: the agent no longer accepts --plain-http and refuses to
start with it. Pass --plain-http-registry with the registry the
ImageCache sources name instead. A plain HTTP registry on a private or
loopback IP address or a localhost name, which the library used to reach
over HTTP unlisted, must now be listed too, and imagecachectl import
needs --plain-http for it.
0 commit comments