-
Notifications
You must be signed in to change notification settings - Fork 9
Implicit authenticated requests to the Command Manager API #414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
OpenSearch's Internal Plugin Communication via Transport LayerOpenSearch provides a mechanism for plugin-to-plugin communication within the same cluster that avoids HTTP overhead. This is done through the Transport Layer using This communication model is ideal for internal plugin logic that doesn’t require REST exposure, improves performance, and leverages OpenSearch’s native action execution flow. To set up Transport Layer communication between plugins:
The Proof of Concept:
|
Currently working on the implementation of the Transport's action/request/response on a Command Manager SPI library. Facing a ClassLoader issue with the shared library, it seems to be because of the method used to implement the library on the plugins, we should replace Current error when testing the plugins on an actual cluster: java.lang.ClassCastException: class com.wazuh.commandmanager.spi.CommandRequest cannot be cast to class com.wazuh.commandmanager.spi.CommandRequest (com.wazuh.commandmanager.spi.CommandRequest is in unnamed module of loader java.net.FactoryURLClassLoader @401788d5; com.wazuh.commandmanager.spi.CommandRequest is in unnamed module of loader>
at com.wazuh.commandmanager.transport.CommandTransportAction.doExecute(CommandTransportAction.java:47) ~[?:?]
at org.opensearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:220) [opensearch-2.19.1.jar:2.19.1]
at org.opensearch.indexmanagement.controlcenter.notification.filter.IndexOperationActionFilter.apply(IndexOperationActionFilter.kt:39) [opensearch-index-management-2.19.1.0.jar:2.19.1.0]
|
Uh oh!
There was an error while loading. Please reload this page.
Description
In #393, we added authenticated HTTP requests to the Command Manager API. However, this requires the addition of the Indexer's user credentials to the key store, which feels unnecessary or redundant as we are communicating with another puling within the same node.
On this issue, we will explore alternatives to this solution, by investigating how OpenSearch performs requests to the node with implicit authentication (actions such as index creation, deletion and so on).
Functional requirements
Implementation restrictions
Plan
The text was updated successfully, but these errors were encountered: