spiegel_podman/vendor/github.com
Valentin Rothberg 5bdd571b1e compat API: allow enforcing short-names resolution to Docker Hub
The Docker-compatible REST API has historically behaved just as the rest
of Podman and Buildah (and the atomic Docker in older RHEL/Fedora) where
`containers-registries.conf` is centrally controlling which registries
a short name may resolve to during pull or local image lookups.  Please
refer to a blog for more details [1].

Docker, however, is only resolving short names to docker.io which has
been reported (see #12320) to break certain clients who rely on this
behavior.  In order to support this scenario, `containers.conf(5)`
received a new option to control whether Podman's compat API resolves
to docker.io only or behaves as before.

Most endpoints allow for directly normalizing parameters that represent
an image.  If set in containers.conf, Podman will then normalize the
references directly to docker.io.  The build endpoint is an outlier
since images are also referenced in Dockerfiles.  The Buildah API,
however, supports specifying a custom `types.SystemContext` in which
we can set a field that enforces short-name resolution to docker.io
in `c/image/pkg/shortnames`.

Notice that this a "hybrid" approach of doing the normalization directly
in the compat endpoints *and* in `pkg/shortnames` by passing a system
context.  Doing such a hybrid approach is neccessary since the compat
and the libpod endpoints share the same `libimage.Runtime` which makes
a global enforcement via the `libimage.Runtime.systemContext`
impossible.  Having two separate runtimes for the compat and the libpod
endpoints seems risky and not generally applicable to all endpoints.

[1] https://www.redhat.com/sysadmin/container-image-short-names

Fixes: #12320
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2021-11-30 14:22:52 +01:00
..
acarl005/stripansi vendor github.com/containers/image/v5@v5.2.0 2020-02-05 09:55:50 +01:00
Azure/go-ansiterm rootfs: Add support for rootfs-overlay and bump to buildah v1.22.1-0.202108 2021-09-14 13:31:39 +05:30
beorn7/perks update dependencies 2019-06-24 21:29:31 +02:00
blang/semver V2 API Version Support 2020-05-20 10:21:30 -07:00
buger/goterm vendor: update everything 2019-01-11 13:38:11 +01:00
BurntSushi/toml Bump github.com/BurntSushi/toml from 0.3.1 to 0.4.1 2021-08-05 12:20:26 +00:00
cespare/xxhash/v2 Bump github.com/containers/storage from 1.25.0 to 1.28.0 2021-03-18 20:27:25 +01:00
checkpoint-restore Add 'stats-dump' file to exported checkpoint 2021-11-05 16:15:00 +00:00
chzyer/readline short-name aliasing 2020-11-13 15:40:06 +01:00
container-orchestrated-devices/container-device-interface Add support for CDI device configuration 2021-04-20 09:18:52 -04:00
containerd image lookup: do not match *any* tags 2021-11-23 11:15:03 +01:00
containernetworking Bump CNI to v1.0.1 2021-09-22 11:51:40 +02:00
containers compat API: allow enforcing short-names resolution to Docker Hub 2021-11-30 14:22:52 +01:00
coreos Wire network interface into libpod 2021-09-15 20:00:20 +02:00
cyphar/filepath-securejoin Bump github.com/cyphar/filepath-securejoin from 0.2.2 to 0.2.3 2021-07-05 12:20:31 +00:00
davecgh/go-spew migrate to go-modules 2019-06-24 13:20:59 +02:00
digitalocean introduce podman machine 2021-03-25 08:43:51 -05:00
disiqueira/gotree/v3 migrate Podman to containers/common/libimage 2021-05-05 11:30:12 +02:00
docker Bump github.com/docker/docker 2021-08-04 10:04:27 +00:00
dtylman/scp Created scp.go image_scp_test.go and podman-image-scp.1.md 2021-07-30 17:19:24 -04:00
fsnotify/fsnotify Bump github.com/fsnotify/fsnotify from 1.4.9 to 1.5.1 2021-08-25 12:28:54 +00:00
fsouza/go-dockerclient rootfs: Add support for rootfs-overlay and bump to buildah v1.22.1-0.202108 2021-09-14 13:31:39 +05:30
ghodss/yaml migrate to go-modules 2019-06-24 13:20:59 +02:00
go-logr/logr Bump k8s.io/api from 0.20.5 to 0.21.0 2021-04-09 08:04:51 +00:00
go-task/slim-sprig Bump github.com/onsi/ginkgo from 1.15.2 to 1.16.0 2021-04-05 09:37:20 +00:00
godbus/dbus/v5 vendor: update godbus to v5.0.6 2021-10-26 21:05:22 +02:00
gogo/protobuf Bump github.com/containers/storage from 1.25.0 to 1.28.0 2021-03-18 20:27:25 +01:00
golang bump c/common to v0.44.0 2021-09-13 18:49:38 +02:00
google Bump github.com/google/uuid from 1.2.0 to 1.3.0 2021-07-13 12:22:13 +00:00
gorilla Refacter API server emphasis on logging 2021-09-10 15:07:25 -07:00
hashicorp Bump github.com/containers/storage from 1.25.0 to 1.28.0 2021-03-18 20:27:25 +01:00
hpcloud/tail migrate to go-modules 2019-06-24 13:20:59 +02:00
imdario/mergo Vendor in containers/common v0.40.0 2021-06-17 14:59:42 -04:00
inconshreveable/mousetrap Migrate to cobra CLI 2019-02-08 10:26:43 -06:00
ishidawataru/sctp migrate Podman to containers/common/libimage 2021-05-05 11:30:12 +02:00
jinzhu/copier Vendor in containers/common v0.40.0 2021-06-17 14:59:42 -04:00
json-iterator/go Bump github.com/json-iterator/go from 1.1.11 to 1.1.12 2021-09-13 17:25:11 +00:00
klauspost Vendor in latest containers/storage 2021-09-29 15:25:54 -04:00
manifoldco/promptui Bump github.com/containers/image/v5 from 5.16.1 to 5.17.0 2021-11-22 17:01:27 +00:00
mattn Bump github.com/containers/image/v5 from 5.16.1 to 5.17.0 2021-11-22 17:01:27 +00:00
matttproud/golang_protobuf_extensions update dependencies 2019-06-24 21:29:31 +02:00
Microsoft image lookup: do not match *any* tags 2021-11-23 11:15:03 +01:00
miekg/pkcs11 Bump github.com/containers/ocicrypt from 1.0.3 to 1.1.0 2021-02-09 10:49:43 -05:00
mistifyio/go-zfs Bump github.com/containers/storage from 1.25.0 to 1.28.0 2021-03-18 20:27:25 +01:00
mitchellh/mapstructure vendor c/common@main 2021-09-20 15:07:41 +02:00
moby Bump github.com/rootless-containers/rootlesskit from 0.14.5 to 0.14.6 2021-11-19 14:26:03 -05:00
modern-go Bump github.com/json-iterator/go from 1.1.11 to 1.1.12 2021-09-13 17:25:11 +00:00
morikuni/aec bump containers/image to v5.0.0, buildah to v1.11.4 2019-10-29 13:35:18 -04:00
mrunalp/fileutils Bump github.com/containers/storage from 1.25.0 to 1.28.0 2021-03-18 20:27:25 +01:00
mtrmac/gpgme vendor github.com/mtrmac/gpgme@v0.1.2 2020-02-05 09:56:25 +01:00
nxadm/tail Bump github.com/onsi/ginkgo from 1.15.0 to 1.15.1 2021-03-08 06:10:15 -05:00
onsi Bump github.com/onsi/ginkgo from 1.16.4 to 1.16.5 2021-10-12 12:22:34 +00:00
opencontainers Bump github.com/opencontainers/selinux from 1.9.1 to 1.10.0 2021-11-22 12:28:07 +00:00
openshift/imagebuilder migrate Podman to containers/common/libimage 2021-05-05 11:30:12 +02:00
ostreedev/ostree-go github.com/containers/storage v1.12.13 2019-08-01 03:46:14 -04:00
pkg/errors build(deps): bump github.com/containers/storage from 1.15.5 to 1.15.7 2020-01-23 03:49:20 -05:00
pmezard/go-difflib migrate to go-modules 2019-06-24 13:20:59 +02:00
prometheus [NO TESTS NEEDED] Vendor in containers/buildah v1.20.0 2021-03-26 13:57:27 -04:00
rivo/uniseg Switch all builds to pull-never 2021-03-16 06:19:58 -04:00
rootless-containers/rootlesskit Bump github.com/rootless-containers/rootlesskit from 0.14.5 to 0.14.6 2021-11-19 14:26:03 -05:00
seccomp/libseccomp-golang Vendor in containers/buildah 1.16.1 2020-09-11 13:37:37 -04:00
sirupsen/logrus Bump github.com/sirupsen/logrus from 1.8.0 to 1.8.1 2021-03-12 06:15:31 -05:00
spf13 Bump github.com/spf13/cobra to v1.2.1 2021-07-02 17:36:30 +02:00
stefanberger/go-pkcs11uri Bump github.com/containers/ocicrypt from 1.0.3 to 1.1.0 2021-02-09 10:49:43 -05:00
stretchr/testify Bump github.com/stretchr/testify from 1.6.1 to 1.7.0 2021-01-14 04:22:05 -05:00
syndtr/gocapability vendor: drop replace for github.com/syndtr/gocapability 2021-03-19 15:17:12 +01:00
tchap/go-patricia update dependencies 2019-06-24 21:29:31 +02:00
uber/jaeger-client-go Bump github.com/uber/jaeger-client-go 2021-05-31 12:55:49 +00:00
ulikunitz/xz Bump github.com/containers/storage from 1.28.0 to 1.28.1 2021-03-25 07:05:38 +00:00
vbatts/tar-split Bump github.com/containers/image/v5 from 5.15.2 to 5.16.0 2021-08-26 13:21:26 +00:00
vbauerster/mpb Bump github.com/containers/image/v5 from 5.16.0 to 5.16.1 2021-10-06 12:24:29 +00:00
vishvananda Bump CNI to v1.0.1 2021-09-22 11:51:40 +02:00
VividCortex/ewma Bump github.com/vbauerster/mpb/v6 from 6.0.3 to 6.0.4 2021-05-19 06:50:18 +00:00
xeipuuv vendor c/image v5.4.2 2020-04-07 12:09:48 +02:00