-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add Management API CA file field to opensearch.yml
#171
Comments
A sample of a class reading a config file from a plugin: A sample class loading a custom trust chain: |
Relevant discovery in the process: How to put configuration attributes in opensearch.yml.The process is simple and similar to putting configurations in keystore. Depending on the type of attribute, if it is a secure configuration or not, it will automatically be saved in the keystore or in the opensearch.yml file. Example of declaration of secure setting:
Example of declaration of not secure setting:
Validate configuration values.We do not yet validate the contents of the attributes in the settings, but we will probably want to do so in the future. We can see a good example of how to create and validate settings here. Access to files with AccessController.doPrivilegedTo use the AccesController we have to configure a policy file inside plugins/command-manager/src/main/plugin-metadata/ Inside this file, if we want to manage the access to a file we cannot put a “*”, we have to put a concrete directory or an absolute path to a file. Example. |
Description
In order for the command-manager plugin to connect to the Wazuh Server's management API using self-signed certificates, a
CAcert
needs to be loaded into the plugin's trust chain.We need to expose this as a setting in the configuration file.
The text was updated successfully, but these errors were encountered: