roryqi commented on code in PR #14766:
URL: https://github.com/apache/gravitino/pull/14766#discussion_r4511493415


##########
docs/statistics.md:
##########
@@ -33,7 +33,7 @@ you choose.
 A reserved statistic is one Gravitino defines, such as `row_count`. The set 
can grow in future
 releases, so reserved names are not available for your own use.
 
-A custom statistic is yours, and its name must begin with `custom.` to keep it 
clear of anything
+A custom statistic is yours, and its name must begin with `custom-` to keep it 
clear of anything

Review Comment:
   Addressed in ebbe10c985.
   
   `Statistic.reserved()` now references `CUSTOM_PREFIX` and `MAX_NAME_LENGTH`; 
the statistics guide documents the 128-character limit including the prefix.



##########
iceberg/iceberg-rest-server/src/main/java/org/apache/gravitino/server/web/filter/IcebergMetadataAuthorizationMethodInterceptor.java:
##########
@@ -192,6 +205,11 @@ protected boolean isExceptionPropagate(Exception 
exception) {
     return 
exception.getClass().getName().startsWith("org.apache.iceberg.exceptions");
   }
 
+  @Override
+  protected boolean isAuthorizationDenial(Exception exception) {
+    return super.isAuthorizationDenial(exception) || exception instanceof 
ForbiddenException;

Review Comment:
   Addressed in ebbe10c985.
   
   Only local authorization denials should be audited. The auth handlers now 
use Gravitino's `ForbiddenException`, and the interceptor no longer classifies 
every Iceberg `ForbiddenException` as a local denial. Added load-table/view 
regressions for backend 403s during backend lookup and after authorization: 
they remain 403 without dispatching denial events.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to