diff --git a/CHANGELOG.md b/CHANGELOG.md index f3a6afc54..ac7452639 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,17 @@ Each section organizes entries into the following subsections: [Unreleased] ------------ +[0.6.2] - 2020-02-16 +-------------------- + +This release fixes a bug with the SSH check in Dynamicbeat. + +### Dynamicbeat + +#### Fixed + +- SSH now matches content when MatchContent is true (#288) + [0.6.1] - 2020-01-26 -------------------- @@ -310,7 +321,8 @@ This release is in preparation for ISTS 2020. The initial release of Scorestack. -[Unreleased]: https://github.com/scorestack/scorestack/compare/v0.6.1...dev +[Unreleased]: https://github.com/scorestack/scorestack/compare/v0.6.2...dev +[0.6.2]: https://github.com/scorestack/scorestack/compare/v0.6.1...v0.6.2 [0.6.1]: https://github.com/scorestack/scorestack/compare/v0.6.0...v0.6.1 [0.6.0]: https://github.com/scorestack/scorestack/compare/v0.5.1...v0.6.0 [0.5.1]: https://github.com/scorestack/scorestack/compare/v0.5.0...v0.5.1 @@ -318,4 +330,4 @@ The initial release of Scorestack. [0.4.0]: https://github.com/scorestack/scorestack/compare/v0.3...v0.4 [0.3.0]: https://github.com/scorestack/scorestack/compare/v0.2...v0.3 [0.2.0]: https://github.com/scorestack/scorestack/compare/v0.1...v0.2 -[0.1.0]: https://github.com/scorestack/scorestack/releases/tag/v0.1.0 \ No newline at end of file +[0.1.0]: https://github.com/scorestack/scorestack/releases/tag/v0.1.0 diff --git a/deployment/medium/ansible/playbook.yml b/deployment/medium/ansible/playbook.yml index 6560128f8..6bed1803b 100644 --- a/deployment/medium/ansible/playbook.yml +++ b/deployment/medium/ansible/playbook.yml @@ -393,7 +393,7 @@ - Restart Kibana - name: Install plugin - command: /usr/share/kibana/bin/kibana-plugin --allow-root install https://github.com/scorestack/scorestack/releases/download/v0.6.1/kibana-plugin-v0.6.1.zip + command: /usr/share/kibana/bin/kibana-plugin --allow-root install https://github.com/scorestack/scorestack/releases/download/v0.6.2/kibana-plugin-v0.6.2.zip args: creates: /usr/share/kibana/plugins/scorestack notify: diff --git a/deployment/small/docker/setup.sh b/deployment/small/docker/setup.sh index 0074d9dc1..e92f50740 100755 --- a/deployment/small/docker/setup.sh +++ b/deployment/small/docker/setup.sh @@ -65,7 +65,7 @@ EOF shred -uvz /tmp/cluster-passwords.txt # Install kibana plugin -docker exec ${KIBANA_CONTAINER} /bin/bash -c "bin/kibana-plugin install https://github.com/scorestack/scorestack/releases/download/v0.6.1/kibana-plugin-v0.6.1.zip" +docker exec ${KIBANA_CONTAINER} /bin/bash -c "bin/kibana-plugin install https://github.com/scorestack/scorestack/releases/download/v0.6.2/kibana-plugin-v0.6.2.zip" # Create admin user curl -k -XPOST -u elastic:${elastic_pass} ${ELASTICSEARCH_HOST}/_security/user/root -H "Content-Type: application/json" -d '{"password":"changeme","full_name":"Extra Superuser","email":"root@example.com","roles":["superuser"]}' diff --git a/dynamicbeat/checks/ssh/ssh.go b/dynamicbeat/checks/ssh/ssh.go index b3a9c588e..532297277 100644 --- a/dynamicbeat/checks/ssh/ssh.go +++ b/dynamicbeat/checks/ssh/ssh.go @@ -76,7 +76,7 @@ func (d *Definition) Run(ctx context.Context) schema.CheckResult { } // Check if we are going to match content - if matchContent, _ := strconv.ParseBool(d.MatchContent); matchContent { + if matchContent, _ := strconv.ParseBool(d.MatchContent); !matchContent { // If we made it here the check passes result.Message = fmt.Sprintf("Command %s executed successfully: %s", d.Cmd, output) result.Passed = true diff --git a/kibana-plugin/package.json b/kibana-plugin/package.json index 507110905..a565984ba 100644 --- a/kibana-plugin/package.json +++ b/kibana-plugin/package.json @@ -1,11 +1,11 @@ { "name": "scorestack", - "version": "0.6.1", + "version": "0.6.2", "description": "A Kibana plugin for viewing and modifying Scorestack checks and attributes.", "private": true, "scripts": { "prebuild": "node ../../scripts/build_kibana_platform_plugins --verbose --dist --filter scorestack", - "build": "plugin-helpers build --build-version 0.6.1 --kibana-version 7.9.2", + "build": "plugin-helpers build --build-version 0.6.2 --kibana-version 7.9.2", "kbn": "node ../../scripts/kbn", "lint": "eslint --ignore-path .gitignore --color .", "plugin-helpers": "plugin-helpers",