You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 9
Next »
Base Configuration (Without Authentication)
Parameters
-
name ( type=string
| default=saga-provider
| required
)
- The name of the provider, used in the pipeline configuration when required by stages.
-
type ( type=string
| default=OpenSearch
| required
)
- The provider type. See Resources for more information.
-
indexName ( type=string
| default=saga
| optional
)
- Name for the prefix for each index used in the OpenSearch server.
-
nodeUrls ( type=string
| default=http://localhost:9200
| optional
)
- List of OpenSearch hosts and ports (including schema)
-
authentication ( type=string
| default=none
| optional
)
- Authentication to use, it could be basic, aws or azure.
-
timestamp ( type=string
| optional
)
- Field in indices used as timestamp, automatically included when fetching data.
-
delay ( type=string
| default=5
| optional
)
- Time in seconds, of how much to wait between retries
-
retries ( type=string
| default=3
| optional
)
- In case of a connection issue, how many time it will try before throwing an error
-
include ( type=string
| optional
)
- Fields in indices to include when fetching data.
-
exclude ( type=string
| optional
)
- Fields in indices to exclude when fetching data.
-
maxResults ( type=integer
| default=-1
| optional
)
- Maximum amount of results to return per request. By default is -1, which means the engine's default will be not overwritten
-
track_total_hits ( type=boolean
| default=true
| optional
)
- Indicates, if the engine must track always the real total of results available, otherwise it will return an estimated beyond certain point (e.g. gt 10000))
$action.getHelper().renderConfluenceMacro("$codeS$body$codeE")
Step-by-step guide (Basic Authentication)
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:
- Encrypt the password.
- Locate on <saga>/bin the file saga-secure-<version>.jar
In a terminal run, in Saga's root folder.
java -jar bin/saga-secure-<version>.jar -ep=<password> -config="config/config.json"
- Keep the generated pwd.txt file at hand, you'll need to reference it in the configuration.
- Update the configuration in <saga>/config/config.json.
Update "providers" using authentication factor as "basic".
$action.getHelper().renderConfluenceMacro("$codeS$body$codeE")
Step-by-step guide (AWS)
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:
- Set your AWS credentials.
- Set your credentials using the AWS CLI. You can see how to do that here.
- Or, you can load credentials from you ECS or EC2 instance. With IAM roles for Amazon ECS Tasks, you can specify an IAM role that can be used by the containers in a task to access AWS resources.
- Update the configuration in <saga>/config/config.json.
Update "providers" using authentication factor as "aws".
- Then we have 2 options with Credential Chain Provider, or with Access & Secret Keys
With Credential Chain Provider
$action.getHelper().renderConfluenceMacro("$codeS$body$codeE")
With Access & Secret Keys
$action.getHelper().renderConfluenceMacro("$codeS$body$codeE")
In case of Aspire Saga Parse (or any component using Saga)
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")