From d1334a6dff01f0aa436c4690a08730182f11e125 Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Wed, 5 Nov 2025 11:13:08 +0100 Subject: [PATCH] Zanzana: Log token namespace in case of error (#113437) --- pkg/services/authz/zanzana/server/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/services/authz/zanzana/server/auth.go b/pkg/services/authz/zanzana/server/auth.go index e86aaa81ebb..f137bdca47f 100644 --- a/pkg/services/authz/zanzana/server/auth.go +++ b/pkg/services/authz/zanzana/server/auth.go @@ -26,7 +26,7 @@ func authorize(ctx context.Context, namespace string, ss setting.ZanzanaServerSe return status.Errorf(codes.Unauthenticated, "unauthenticated") } if !claims.NamespaceMatches(c.GetNamespace(), namespace) { - return status.Errorf(codes.PermissionDenied, "namespace does not match") + return status.Errorf(codes.PermissionDenied, "token namespace %s does not match request namespace", c.GetNamespace()) } return nil }