From ec51813c04e9bc7ce624728afe3bfc4aab2340dc Mon Sep 17 00:00:00 2001 From: Andriy Redko Date: Tue, 10 Sep 2024 09:52:16 -0400 Subject: [PATCH] Use evaluateSslExceptionHandler() when constructing OpenSearchSecureSettingsFactory Signed-off-by: Andriy Redko --- .../java/org/opensearch/security/OpenSearchSecurityPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/opensearch/security/OpenSearchSecurityPlugin.java b/src/main/java/org/opensearch/security/OpenSearchSecurityPlugin.java index d81499f7d6..663050c0b2 100644 --- a/src/main/java/org/opensearch/security/OpenSearchSecurityPlugin.java +++ b/src/main/java/org/opensearch/security/OpenSearchSecurityPlugin.java @@ -2122,7 +2122,7 @@ public PluginSubject getPluginSubject(Plugin plugin) { @Override public Optional getSecureSettingFactory(Settings settings) { - return Optional.of(new OpenSearchSecureSettingsFactory(threadPool, sks, sslExceptionHandler, securityRestHandler)); + return Optional.of(new OpenSearchSecureSettingsFactory(threadPool, sks, evaluateSslExceptionHandler(), securityRestHandler)); } @SuppressWarnings("removal")