Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Encrypt the password.
    1. Locate on <saga>/bin the file saga-secure-<version>.jar
    2. In a terminal run, in Saga's root folder.

      Code Block
      languagetext
      titleConsole / Terminal / Command
      java -jar bin/saga-secure-<version>.jar -ep=<password> -config="config/config.json"
    3. Keep the generated pwd.txt file at hand, you'll need to reference it in the configuration.
  2. Update the configuration in <saga>/config/config.json.
    1. Update "providers"

      Saga_json
      "providers": [
            {
              "name": "filesystem-provider",
              "type": "FileSystem",
              "baseDir": "./config"
            },
            {
              "name": "saga-provider",
              "type": "Elastic",
              "indexName": "saga",
              "nodeUrls": ["http://localhost:9200"],
              "authentication":"nonedefault"
      		"user": "<username>",
      		"password": "<path_to_pwd_file>",
              "timestamp": "updatedAt",
              "exclude": [
                "updatedAt",
                "createdAt"
              ]
            }


      1. Notice the values of "user" and "password".
    2. Update "solutions"

      Saga_json
      "solutions": [
            {
              "display": "Saga",
              "elasticSearch": {
                "nodeUrls": ["http://localhost:9200"],
                "indexName": "saga",
                "authentication": "default"
      		  "user": "<username>",
      		  "password": "<path_to_pwd_file>",
                "timeout": 30,
                "delay": 5,
                "retries": 3
              }
            }
          ]


      1. Again notice the values of "user" and "password".

...