openstack-kolla/kolla
Bartosz Bezak ddac7ca1ed send empty X-Registry-Auth for anonymous pushes
Since Docker 28.3.3 the daemon rejects a push that carries no
`X-Registry-Auth` header [1]. The SDK already sets this header when it
finds credentials, so the breakage happens only on anonymous pushes.

During `PushTask.push_image()` we now check whether the SDK can resolve
credentials for the target registry; if it cannot, we inject
`auth_config={}`, causing the SDK to send the minimal "{}" header that
satisfies the daemon while leaving authenticated pushes unchanged.

Drop this addition when [2] is fixed.

[1] https://github.com/moby/moby/pull/50371
[2] https://github.com/docker/docker-py/issues/3348

Closes-Bug: #2119619

Change-Id: I7a2f3fce223afd74741b40bf62836b325fca5b19
Signed-off-by: Bartosz Bezak <bartosz@stackhpc.com>
2025-08-06 11:50:39 +02:00
..
cmd implement "allowed to fail" images 2021-01-20 17:01:25 +01:00
common Merge "Move to CentOS Stream 10" 2025-07-17 11:54:34 +00:00
engine_adapter Add podman for image building 2023-09-21 11:01:21 +02:00
hacking CI: bump hacking 2024-10-24 13:39:20 +00:00
image send empty X-Registry-Auth for anonymous pushes 2025-08-06 11:50:39 +02:00
template Move to CentOS Stream 10 2025-07-16 14:05:50 +00:00
tests send empty X-Registry-Auth for anonymous pushes 2025-08-06 11:50:39 +02:00
__init__.py Make Kolla installable via PIP 2015-08-24 16:08:49 -07:00
exception.py Add dots at first line in docstring 2017-05-04 09:23:41 +01:00
opts.py Generate the kolla-build.conf file using oslo_config 2016-01-06 08:11:06 +08:00
version.py Change kolla_version LABEL to git sha-1 2022-06-21 08:54:03 +02:00