image/pkg/docker
Sascha Grunert 2935f06f71
Error on namespaced registries for credential helpers
We now error on login if repositories or repository namespaces are used
for other credential helpers than the `AuthenticationFileHelper`. On
logout we ignore them and debug log a warning that nothing has been
modified.

The functions `SetCredentials` (for login) as well as
`RemoveAuthentication` (for logout) already feature support for path
based registries for the `AuthenticationFileHelper`. This patch adds
unit tests to ensure that the support will not break in the future.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2021-07-14 09:19:28 +02:00
..
config Error on namespaced registries for credential helpers 2021-07-14 09:19:28 +02:00