diff --git a/src/main/java/org/opensearch/security/securityconf/DynamicConfigFactory.java b/src/main/java/org/opensearch/security/securityconf/DynamicConfigFactory.java index cdf0eaf366..262eb37cf8 100644 --- a/src/main/java/org/opensearch/security/securityconf/DynamicConfigFactory.java +++ b/src/main/java/org/opensearch/security/securityconf/DynamicConfigFactory.java @@ -145,16 +145,6 @@ public DynamicConfigFactory(ConfigurationRepository cr, final Settings opensearc log.info("Static resources will not be loaded."); } - if(opensearchSettings.getAsBoolean(ConfigConstants.SECURITY_UNSUPPORTED_LOAD_STATIC_RESOURCES, true)) { - try { - loadStaticConfig(); - } catch (IOException e) { - throw new StaticResourceException("Unable to load static resources due to "+e, e); - } - } else { - log.info("Static resources will not be loaded."); - } - registerDCFListener(this.iab); this.cr.subscribeOnChange(this); }