cecemei commented on code in PR #17774:
URL: https://github.com/apache/druid/pull/17774#discussion_r2025432357
##########
server/src/main/java/org/apache/druid/client/CachingClusteredClient.java:
##########
@@ -199,6 +205,11 @@ private <T> Sequence<T> run(
final boolean specificSegments
)
{
+ Query<T> query = queryPlus.getQuery();
+ if (!(query instanceof SegmentMetadataQuery) &&
!policyEnforcer.validate(query.getDataSource())) {
+ throw new ISE("Failed security validation with dataSource [%s]",
query.getDataSource());
Review Comment:
updated
##########
server/src/main/java/org/apache/druid/server/coordination/ServerManager.java:
##########
@@ -190,6 +195,10 @@ public <T> QueryRunner<T>
getQueryRunnerForSegments(Query<T> theQuery, Iterable<
throw new ISE("Cannot handle subquery: %s", dataSourceFromQuery);
}
+ if (!(theQuery instanceof SegmentMetadataQuery) &&
!policyEnforcer.validate(dataSourceFromQuery)) {
+ throw new ISE("Failed security validation with dataSource [%s]",
dataSourceFromQuery);
Review Comment:
updated
--
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]