From 5566c3a9b80fc1b03e0e95525fbfe2b80bddac96 Mon Sep 17 00:00:00 2001 From: Alano Terblanche <18033717+Benehiko@users.noreply.github.com> Date: Wed, 16 Jul 2025 09:01:35 +0200 Subject: [PATCH] cli/command: remove usages of RegistryAuthenticationPrivilegedFunc This patch deprecates the unused `RegistryAuthenticationPrivilegedFunc`. The function would prompt the user when the registry returns a 403 after trying the initial auth value set in `RegistryAuth`. Signed-off-by: Alano Terblanche <18033717+Benehiko@users.noreply.github.com> (cherry picked from commit 29263e865b2d309753759b26fcbe16d94a8f25e3) Signed-off-by: Sebastiaan van Stijn --- cli/command/registry.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cli/command/registry.go b/cli/command/registry.go index be49d85b6b..d02d88db2d 100644 --- a/cli/command/registry.go +++ b/cli/command/registry.go @@ -36,6 +36,8 @@ const authConfigKey = "https://index.docker.io/v1/" // RegistryAuthenticationPrivilegedFunc returns a RequestPrivilegeFunc from the specified registry index info // for the given command to prompt the user for username and password. +// +// Deprecated: this function is no longer used and will be removed in the next release. func RegistryAuthenticationPrivilegedFunc(cli Cli, index *registrytypes.IndexInfo, cmdName string) registrytypes.RequestAuthConfig { configKey := getAuthConfigKey(index.Name) isDefaultRegistry := configKey == authConfigKey || index.Official