From de3ebb9aedb6fc49ee92face73152f31bb6b5733 Mon Sep 17 00:00:00 2001 From: Subhash Bhushan Date: Mon, 19 Oct 2020 10:50:59 -0700 Subject: [PATCH] Disably SSL and Cert verification for Elasticsearch by default --- CHANGELOG.rst | 11 ++++++++--- src/protean/adapters/repository/elasticsearch.py | 4 ++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 23990d72..5e93db98 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,12 +1,17 @@ Release History =============== -DEV ---- +0.5.7 +----- + +* Add support for locking a custom repository to a specific database +* Add support for `use_ssl` and `verify_certs` options in Elasticsearch database definition + +0.5.6 +----- * Lock down celery to 4.4.x version * Re-Add support for restricting model to a specific database -* Add support for locking a custom repository to a specific database 0.5.5 (2020-09-28) ------------------ diff --git a/src/protean/adapters/repository/elasticsearch.py b/src/protean/adapters/repository/elasticsearch.py index f79e947c..f932133f 100644 --- a/src/protean/adapters/repository/elasticsearch.py +++ b/src/protean/adapters/repository/elasticsearch.py @@ -380,8 +380,8 @@ def get_connection(self): return Elasticsearch( self.conn_info["DATABASE_URI"]["hosts"], - use_ssl=self.conn_info.get("USE_SSL", True), - verify_certs=self.conn_info.get("VERIFY_CERTS", True), + use_ssl=self.conn_info.get("USE_SSL", False), + verify_certs=self.conn_info.get("VERIFY_CERTS", False), ) def get_dao(self, entity_cls, model_cls):