Skip to content

Commit

Permalink
Use ExtensionsManager.lookupExtensionSettingsById when verifying exte…
Browse files Browse the repository at this point in the history
…nsion unique id (opensearch-project#2749)

Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks authored May 10, 2023
1 parent f4def32 commit 9d758f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ protected void addAdditionalContextValues(final String action, final TransportRe
String extensionUniqueId = getThreadContext().getHeader("extension_unique_id");
if (extensionUniqueId != null) {
ExtensionsManager extManager = OpenSearchSecurityPlugin.GuiceHolder.getExtensionsManager();
if (extManager.lookupInitializedExtensionById(extensionUniqueId).isPresent()) {
if (extManager.lookupExtensionSettingsById(extensionUniqueId).isPresent()) {
getThreadContext().putTransient(ConfigConstants.OPENDISTRO_SECURITY_SSL_TRANSPORT_EXTENSION_REQUEST, Boolean.TRUE);
}
}
Expand Down

0 comments on commit 9d758f9

Please sign in to comment.