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 }