From 4c983d54996ec159083da5ae15dccbed857596f9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 10 Sep 2024 14:54:14 +0000 Subject: [PATCH] Use evaluateSslExceptionHandler() when constructing OpenSearchSecureSettingsFactory (#4725) Signed-off-by: Andriy Redko (cherry picked from commit 014c8de0fcd96470dd2f4279f8fa599362d4b01e) Signed-off-by: github-actions[bot] --- .../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 e457e3ec43..67948b1de2 100644 --- a/src/main/java/org/opensearch/security/OpenSearchSecurityPlugin.java +++ b/src/main/java/org/opensearch/security/OpenSearchSecurityPlugin.java @@ -2120,7 +2120,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")