wazuh-docker
wazuh-docker copied to clipboard
Add an option to configure S3 repository to store snapshots out of the box
Description
The aim of this PR is to add an ability to configure S3 repository to store snapshots out of the box. It adds an option to install OpenSearch 'repository-s3' plugin, when building a wazuh-indexer image, and 2 optional environment variables for the S3 access keys. Tested on version 4.7.2.
Example of changes to single-node/config/wazuh_indexer/wazuh.indexer.yml:
...
s3.client.default.endpoint: minio:9000
s3.client.default.protocol: http
s3.client.default.max_retries: 3
s3.client.default.read_timeout: 50s
s3.client.default.path_style_access: true
s3.client.default.use_throttle_retries: true
Example of changes to single-node/docker-compose.yml:
...
wazuh.indexer:
...
environment:
...
- "S3_ACCESS_KEY_ID=randomAccessKey"
- "S3_SECRET_ACCESS_KEY=randomSecretAccessKey"
...
Hello. Do i need to add any additional information to this PR or open an issue for it?