From a879d91a2059afb63a29c34577b2009f1c83121f Mon Sep 17 00:00:00 2001 From: Rohan Garg <7731512+rohangarg@users.noreply.github.com> Date: Mon, 22 Aug 2022 11:58:51 +0530 Subject: [PATCH] Remove misleading logging on router for JDBC queries (#12925) --- .../apache/druid/server/security/UnsecuredResourceFilter.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/src/main/java/org/apache/druid/server/security/UnsecuredResourceFilter.java b/server/src/main/java/org/apache/druid/server/security/UnsecuredResourceFilter.java index 0d73ba2fa26..0980d07f3cf 100644 --- a/server/src/main/java/org/apache/druid/server/security/UnsecuredResourceFilter.java +++ b/server/src/main/java/org/apache/druid/server/security/UnsecuredResourceFilter.java @@ -50,7 +50,9 @@ public class UnsecuredResourceFilter implements Filter new AuthenticationResult( AuthConfig.ALLOW_ALL_NAME, AuthConfig.ALLOW_ALL_NAME, - AuthConfig.ALLOW_ALL_NAME, + // adding null so that the router doesn't try to decorate the request. It is ok since we're already bypassing + // authentication for unsecure paths. + null, null ) );