rmuir commented on a change in pull request #1058: SOLR-13972: Warn about insecure settings on startup URL: https://github.com/apache/lucene-solr/pull/1058#discussion_r355437539
########## File path: solr/core/src/java/org/apache/solr/core/CoreContainer.java ########## @@ -897,6 +899,20 @@ private void reloadSecurityProperties() { initializeAuditloggerPlugin((Map<String, Object>) securityConfig.getData().get("auditlogging")); } + private void warnUsersIfSecurityDisabled() { + if (authenticationPlugin == null || authorizationPlugin == null) { + log.warn("Not all security plugins configured! authentication={} authorization={}. Solr is only as secure as " + + "you make it. Consider configuring authentication/authorization before exposing Solr to users internal or " + + "external. See https://lucene.apache.org/solr/guide/authentication-and-authorization-plugins.html for more info", Review comment: should we use an s.apache.org shortened link for this? ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org