*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content

Create script for adding SMTP credentials to OpenSearch

Tsepelakis, Sotirios requested to merge st/dev into main

Currently, there are 2 ways to add SMTP credentials to the OpenSearch keystore:

  • via the OpenSearch CLI
  • specify them in the OpenSearch configuration

The script follows the first approach by loading them into the keystore of both nodes (as of the current setup) and reloads the secure settings via a call to the REST API (so that the containers don't have to be restarted). The second approach is less secure because the current OpenSearch version (2.8 at the time of writing) does not natively support environment variables directly in the opensearch.yml configuration file. This means that the SMTP username, password and sender name would have to be hardcoded.

Merge request reports