From ed95aed6342527bd9d68c6f44a1548f569626aa9 Mon Sep 17 00:00:00 2001 From: Juanjo Presa Date: Fri, 1 May 2026 12:21:41 +0200 Subject: [PATCH] fix registry authentication headers encoding i only check it with digitalocean private registry but i require to change the base64 encoding to make it work. Also, during debug, i ve found a bug in ONLY_KNOWN_REGISITRIES logic. --- swarmgate/routes.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swarmgate/routes.ts b/swarmgate/routes.ts index 428232a..a204c74 100644 --- a/swarmgate/routes.ts +++ b/swarmgate/routes.ts @@ -164,7 +164,7 @@ export function setupRoutes(tenantLabelValue: string) { password: registryAuth.password!, serveraddress: registryAuth.serveraddress!, email: registryAuth.email, - })).toString("base64url"); + })).toString("base64"); } const options = { @@ -238,7 +238,7 @@ export function setupRoutes(tenantLabelValue: string) { password: registryAuth.auth.password!, serveraddress: registryAuth.auth.serveraddress!, email: registryAuth.auth.email, - })).toString("base64url"); + })).toString("base64"); } proxyRequestToDocker(req, res);