There are 3 different ways to connect with authentication: with username/password, Azure AD or Amazon Web Services (AWS).
Or, if you don't want any authentication, you can set that as well.
To connect to an Elasticsearch with basic authentication you will need to encrypt your password and add the right values to the configuration.
Follow the next steps:
In a terminal run, in Saga's root folder.
java -jar bin/saga-secure-<version>.jar -ep=<password> -config="config/config.json"
Update "providers" using authentication factor as "default".
$action.getHelper().renderConfluenceMacro("$codeS$body$codeE")
Update "solutions" using authentication factor as "default".
$action.getHelper().renderConfluenceMacro("$codeS$body$codeE")
If you are using Saga within Aspire you will need to:
Update the Saga's config file (the one within the Aspire configuration folder) to reflect the relative path of those files: $action.getHelper().renderConfluenceMacro("$codeS$body$codeE")
To connect to an Elasticsearch with Azure AD authentication you will need to set your Azure AD tenant and then you register your app in the Azure portal so the Microsoft identity platform can provide authentication and authorization services.
Follow the next steps:
Update "providers" using authentication factor as "azure".
$action.getHelper().renderConfluenceMacro("$codeS$body$codeE")
Update "solutions" using authentication factor as "azure".
$action.getHelper().renderConfluenceMacro("$codeS$body$codeE")
To connect to an Elasticsearch with AWS authentication you will need to set your Amazon Web Services credentials locally as environmental variables or get them from the ECS or EC2 credentials.
Follow the next steps:
Note
SagaElasticIndexer gets the credentials automatically by getting the credentials file. That is why you only need to specify region and service in the config file which is below this note.
Update "providers" using authentication factor as "aws".
$action.getHelper().renderConfluenceMacro("$codeS$body$codeE")
Update "solutions" using authentication factor as "aws".
$action.getHelper().renderConfluenceMacro("$codeS$body$codeE")