Skip to content

Apache Lucene open-source search software

SOLR-7125: Add note to javadocs

Alan Woodwarddf3471a1b4ca
diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudSolrClient.java b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudSolrClient.java
index 2b01018255c..111b76ac8f9 100644
--- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudSolrClient.java
+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudSolrClient.java
@@ -477,6 +477,11 @@ public class CloudSolrClient extends SolrClient {
/**
* Upload a set of config files to Zookeeper and give it a name
+ *
+ * NOTE: You should only allow trusted users to upload configs. If you
+ * are allowing client access to zookeeper, you should protect the
+ * /configs node against unauthorised write access.
+ *
* @param configPath {@link java.nio.file.Path} to the config files
* @param configName the name of the config
* @throws IOException if an IO error occurs