From dfbae18557f8f47b9ed91dc0ab57fa741fe5069b Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Sun, 7 Jun 2026 01:25:05 -0600 Subject: [PATCH] fix: correct deriveCookieSecret test to validate 16-byte hex secret as per oauth2-proxy requirements --- apps/dokploy/__test__/traefik/forward-auth.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/dokploy/__test__/traefik/forward-auth.test.ts b/apps/dokploy/__test__/traefik/forward-auth.test.ts index 7016c94d7..9bc9a1f9e 100644 --- a/apps/dokploy/__test__/traefik/forward-auth.test.ts +++ b/apps/dokploy/__test__/traefik/forward-auth.test.ts @@ -226,8 +226,8 @@ describe("deriveCookieSecret", () => { ); }); - test("produces a 32-byte base64 secret (oauth2-proxy requirement)", () => { + test("produces a 16-byte hex secret (oauth2-proxy requirement)", () => { const secret = deriveCookieSecret(".acme.com"); - expect(Buffer.from(secret, "base64")).toHaveLength(32); + expect(Buffer.from(secret, "hex")).toHaveLength(16); }); });