-
Notifications
You must be signed in to change notification settings - Fork 3
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
Implement a new KeyStore file to configure the persistence logic #97
Conversation
…tion. Add PluginSettingTest
Signed-off-by: Álex Ruiz <[email protected]>
plugins/command-manager/src/main/java/com/wazuh/commandmanager/settings/PluginSettings.java
Outdated
Show resolved
Hide resolved
plugins/command-manager/src/main/java/com/wazuh/commandmanager/settings/PluginSettings.java
Outdated
Show resolved
Hide resolved
plugins/command-manager/src/main/java/com/wazuh/commandmanager/settings/PluginSettings.java
Outdated
Show resolved
Hide resolved
plugins/command-manager/src/main/java/com/wazuh/commandmanager/settings/PluginSettings.java
Outdated
Show resolved
Hide resolved
plugins/command-manager/src/main/java/com/wazuh/commandmanager/settings/PluginSettings.java
Outdated
Show resolved
Hide resolved
plugins/command-manager/src/main/java/com/wazuh/commandmanager/settings/PluginSettings.java
Outdated
Show resolved
Hide resolved
plugins/command-manager/src/test/resources/wazuh-indexer.keystore.json
Outdated
Show resolved
Hide resolved
.../command-manager/src/main/java/com/wazuh/commandmanager/settings/CommandManagerSettings.java
Show resolved
Hide resolved
…plugin and the keystore load in this class.
…nit test. Also delete the PluginSettings class.
…95-configuration-persistence-logic
…s. Change the settings name.
…tings of CommandManagerSettings
.../command-manager/src/main/java/com/wazuh/commandmanager/settings/CommandManagerSettings.java
Outdated
Show resolved
Hide resolved
.../command-manager/src/main/java/com/wazuh/commandmanager/CommandManagerSettingsException.java
Outdated
Show resolved
Hide resolved
…/wazuh-indexer-plugins into 95-configuration-persistence-logic
Opensearch solutionWe ask for help to OpenSearch for managing the Settings in the Keystore, and they give us a simple solution: The plugins can declare "secure" settings and then they will have access to the decrypted value directly. They only have access to their own declared secure settings, but not secure settings declared by other plugins They can be declared like this and they can be accessed like any other setting. The different between secureSetting vs normal setting is that secureSetting is stored in the keystore. So we are going to refactor the code to simplify the solution. |
… pattern to CommanfManagerSettings.
Description
This PR implements the configuration persistence method, so the Command Manager plugin can send data to the Management API in the server. With this, it will know the endpoint of its HTTP Rest API and its credentials in order to establish the communication.
Issues Resolved
#95