From 014c8de0fcd96470dd2f4279f8fa599362d4b01e Mon Sep 17 00:00:00 2001 From: Andriy Redko Date: Tue, 10 Sep 2024 10:53:29 -0400 Subject: [PATCH] Use evaluateSslExceptionHandler() when constructing OpenSearchSecureSettingsFactory (#4725) 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")