Skip to content

Commit

Permalink
Disably SSL and Cert verification for Elasticsearch by default
Browse files Browse the repository at this point in the history
  • Loading branch information
subhashb committed Oct 19, 2020
1 parent 0eada53 commit de3ebb9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
11 changes: 8 additions & 3 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -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)
------------------
Expand Down
4 changes: 2 additions & 2 deletions src/protean/adapters/repository/elasticsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit de3ebb9

Please sign in to comment.