gerlowskija 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_r354818496
##########
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:
Sure.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]