Skip to content

Upgraded ElasticSearch to get rid of CVEs (and switched client to OpenSearch one)#13867

Merged
lhotari merged 2 commits intoapache:masterfrom
dlg99:cve-elastic
Jan 21, 2022
Merged

Upgraded ElasticSearch to get rid of CVEs (and switched client to OpenSearch one)#13867
lhotari merged 2 commits intoapache:masterfrom
dlg99:cve-elastic

Conversation

@dlg99
Copy link
Contributor

@dlg99 dlg99 commented Jan 20, 2022

CVEs are:
CVE-2020-7020
CVE-2020-7021
CVE-2021-22132
CVE-2021-22134
CVE-2021-22144
CVE-2021-22147

Motivation

mvn clean install verify -Powasp-dependency-check -DskipTests found various CVEs

Modifications

Brought back changes from #13747
On top of that, replaced ElasticSearch client with OpenSearch one to get rid of CVEs + retain the Apache 2.0 licensing.

Verifying this change

  • Make sure that the change passes the CI checks.

This change is a trivial rework / code cleanup without any test coverage.

Does this pull request potentially affect one of the following parts:

If yes was chosen, please highlight the changes

  • Dependencies (does it add or upgrade a dependency): YES
  • The public API: (yes / no)
  • The schema: (yes / no / don't know)
  • The default values of configurations: (yes / no)
  • The wire protocol: (yes / no)
  • The rest endpoints: (yes / no)
  • The admin cli options: (yes / no)
  • Anything that affects deployment: (yes / no / don't know)

Documentation

Check the box below or label this PR directly (if you have committer privilege).

Need to update docs?

  • doc-required

    (If you need help on updating docs, create a doc issue)

  • no-need-doc

    (Please explain why)

  • doc

    (If this PR contains doc changes)

dlg99 and others added 2 commits January 20, 2022 13:01
* Upgraded ElasticSearch to get rid of CVEs.

CVE-2020-7020
CVE-2020-7021
CVE-2021-22132
CVE-2021-22134
CVE-2021-22144
CVE-2021-22147

* Elastic search client version >= 7.11 no longer works with OSS Elastic images (and elastic.co no longer releases OSS images)

* Fixed tests for Elasticsearch

* pom cleanup
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Jan 20, 2022
@dlg99
Copy link
Contributor Author

dlg99 commented Jan 21, 2022

/pulsarbot run-failure-checks

Copy link
Member

@mattisonchao mattisonchao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great +1

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Copy link
Member

@lhotari lhotari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work @dlg99

@lhotari lhotari merged commit bef3071 into apache:master Jan 21, 2022
nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Jan 21, 2022
…nSearch one) (apache#13867)

* Upgraded ElasticSearch to get rid of CVEs. (apache#13747)

* Upgraded ElasticSearch to get rid of CVEs.

CVE-2020-7020
CVE-2020-7021
CVE-2021-22132
CVE-2021-22134
CVE-2021-22144
CVE-2021-22147

* Elastic search client version >= 7.11 no longer works with OSS Elastic images (and elastic.co no longer releases OSS images)

* Fixed tests for Elasticsearch

* pom cleanup

* Switched to OpenSearch client for Elastic (Apache 2 licensed)

(cherry picked from commit bef3071)
nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Feb 28, 2022
…nSearch one) (apache#13867)

* Upgraded ElasticSearch to get rid of CVEs. (apache#13747)

* Upgraded ElasticSearch to get rid of CVEs.

CVE-2020-7020
CVE-2020-7021
CVE-2021-22132
CVE-2021-22134
CVE-2021-22144
CVE-2021-22147

* Elastic search client version >= 7.11 no longer works with OSS Elastic images (and elastic.co no longer releases OSS images)

* Fixed tests for Elasticsearch

* pom cleanup

* Switched to OpenSearch client for Elastic (Apache 2 licensed)

(cherry picked from commit bef3071)
(cherry picked from commit 6deb24c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-not-needed Your PR changes do not impact docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Comments