wazuh-docker icon indicating copy to clipboard operation
wazuh-docker copied to clipboard

Add an option to configure S3 repository to store snapshots out of the box

Open t0x01 opened this issue 1 year ago • 1 comments

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"
...

t0x01 avatar Feb 22 '24 15:02 t0x01

Hello. Do i need to add any additional information to this PR or open an issue for it?

t0x01 avatar Mar 20 '24 08:03 t0x01