Zanzana: Log token namespace in case of error (#113437)

This commit is contained in:
Alexander Zobnin
2025-11-05 11:13:08 +01:00
committed by GitHub
parent 505e025d18
commit d1334a6dff
+1 -1
View File
@@ -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
}