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 "basic". $action.getHelper().renderConfluenceMacro("$codeS$body$codeE")
Notice the values of "user", "password" and "encryptionKeyFile"
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")
Notice the values of "resourceId", "tenantId", "clientId" and "clientSecret" using the values provided by the Azure Portal
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".
With Credential Chain Provider $action.getHelper().renderConfluenceMacro("$codeS$body$codeE")
Notice the values of "awsService", "awsRegion" and "useCredentialsProviderChain"
With Access & Secret Keys $action.getHelper().renderConfluenceMacro("$codeS$body$codeE")
Notice that now we also have the values of "awsAccessKey" and "awsSecretKey". You can ommit "useCredentialsProviderChain" if you want to
If you are using Saga within Aspire, the configurations are the same for providers, but you will need to:
Copy Saga's encryption key file to <aspire>/bin/
Copy pwd.txt to <aspire>/bin/ as well.
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")