podman 3.2.3 search seems to ignore REGISTRY_AUTH_FILE on RHEL 8.4

Posted on

Here is a test that shows the problem on a RHEL8.4 podman 3.2.3 environment (tested with a local private container registry that requires logon):

podman pull docker.io/webgoat/goatandwolf
podman tag docker.io/webgoat/goatandwolf:latest localhost:5000/webgoat:latest
podman logout localhost:5000 #just make sure that there is no auth.json file in the default location

export REGISTRY_AUTH_FILE=./auth.json
podman login localhost:5000 --tls-verify=false
podman push localhost:5000/webgoat:latest --tls-verify=false
podman pull localhost:5000/webgoat --tls-verify=false
podman search localhost:5000/webgoat --tls-verify=false #returns the error

So all commands go fine, except for the search

The same test on a Fedora 34 linux VM with podman 3.1.0 or 3.3.1 shows no Errors.
So strangely related to RHEL 8.4

Installed Packages
podman.x86_64 3.2.3-0.10.module+el8.4.0+11989+6676f7ad @rhel-8-for-x86_64-appstream-rpms