From 9b287f3020a27434a0c25db1c9cf66a2da1caf27 Mon Sep 17 00:00:00 2001 From: LP B Date: Mon, 24 Apr 2023 13:57:39 +0200 Subject: [PATCH] fix(api/registry): encode X-Registry-Auth header using base64url instead of base64 [EE-4726] (#8492) --- api/http/proxy/factory/docker/transport.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/http/proxy/factory/docker/transport.go b/api/http/proxy/factory/docker/transport.go index d63883960..a2d85cfa8 100644 --- a/api/http/proxy/factory/docker/transport.go +++ b/api/http/proxy/factory/docker/transport.go @@ -471,7 +471,7 @@ func (transport *Transport) decorateRegistryAuthenticationHeader(request *http.R return err } - header := base64.StdEncoding.EncodeToString(headerData) + header := base64.URLEncoding.EncodeToString(headerData) request.Header.Set("X-Registry-Auth", header) }