When running via CLI and the credentials are saved in the docker config, it correctly grabs the credentials, but always treats the password as a token and never tries to treat it as username+password. It first tries get_token of the DockerConfigAuthProvider, which returns just the password of a username+password as a valid token. The get_auth_for_registry then always returns pretending its an actual token. The RegistryClient then proceeds to send a "Authorization: Bearer " Header.
https://github.com/spboyer/pycontainer-build/blob/v0.3.1/src/pycontainer/auth.py#L151
https://github.com/spboyer/pycontainer-build/blob/v0.3.1/src/pycontainer/auth.py#L89
This makes it impossible to use username:password credentials in any way with the cli of pycontainer-build
When running via CLI and the credentials are saved in the docker config, it correctly grabs the credentials, but always treats the password as a token and never tries to treat it as username+password. It first tries get_token of the DockerConfigAuthProvider, which returns just the password of a username+password as a valid token. The get_auth_for_registry then always returns pretending its an actual token. The RegistryClient then proceeds to send a "Authorization: Bearer " Header.
https://github.com/spboyer/pycontainer-build/blob/v0.3.1/src/pycontainer/auth.py#L151
https://github.com/spboyer/pycontainer-build/blob/v0.3.1/src/pycontainer/auth.py#L89
This makes it impossible to use username:password credentials in any way with the cli of pycontainer-build