gharris1727 commented on code in PR #14995:
URL: https://github.com/apache/kafka/pull/14995#discussion_r1453851791


##########
clients/src/main/java/org/apache/kafka/common/config/provider/DirectoryConfigProvider.java:
##########
@@ -44,8 +44,15 @@ public class DirectoryConfigProvider implements 
ConfigProvider {
 
     private static final Logger log = 
LoggerFactory.getLogger(DirectoryConfigProvider.class);
 
+    public static final String ALLOWED_PATHS_CONFIG = "allowed.paths";
+    public static final String ALLOWED_PATHS_DOC = "A comma separated list of 
paths that this config provider is " +
+            "allowed to access. If not set, all paths are allowed.";
+    private AllowedPaths allowedPaths = new AllowedPaths(null);

Review Comment:
   This class is required to be thread-safe in the ConfigProvider javadoc.
   
   ```suggestion
       private volatile AllowedPaths allowedPaths = new AllowedPaths(null);
   ```



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