xiangfu0 commented on code in PR #20422:
URL: https://github.com/apache/pinot/pull/20422#discussion_r4806056088


##########
pinot-broker/src/main/java/org/apache/pinot/broker/requesthandler/BaseSingleStageBrokerRequestHandler.java:
##########
@@ -677,6 +703,14 @@ protected BrokerResponse doHandleRequest(long requestId, 
String query, SqlNodeAn
       return BrokerResponseNative.NO_TABLE_RESULT;
     }
 
+    // Routing reads the logical-table config again. Query only backing tables 
authorized above.
+    if (logicalTableConfig != null && _enableRowColumnLevelAuth

Review Comment:
   Fixed in 00c845cd41. The route check now applies to every logical-table 
query. A broker regression test covers a backing-table configuration refresh 
with row-level security disabled.



##########
pinot-broker/src/main/java/org/apache/pinot/broker/requesthandler/BaseSingleStageBrokerRequestHandler.java:
##########
@@ -1475,6 +1518,50 @@ private void throwAccessDeniedError(long requestId, 
String query, RequestContext
     throw new WebApplicationException("Permission denied." + failureMessage, 
Response.Status.FORBIDDEN);
   }
 
+  /// Stamps each policy under the exact physical table name that the server 
receives with its segments.
+  private static boolean applyLogicalTableRlsFilters(AccessControl 
accessControl,
+      @Nullable RequesterIdentity requesterIdentity, Set<String> 
physicalTableNames, PinotQuery serverPinotQuery,
+      boolean disableGroovy) {
+    Map<String, String> policies = new HashMap<>();
+    for (String physicalTableName : physicalTableNames) {

Review Comment:
   Fixed in 00c845cd41. An applicable policy on the logical name now applies to 
every backing scan. The server combines it with each backing policy after the 
backing table’s expression overrides. Backing-table grants still determine 
access, and the execution test covers combining the policies.



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to