Skip to content

Commit

Permalink
Switch from PyMongo ssl config to tls config (#190)
Browse files Browse the repository at this point in the history
PyMongo 4 changed how this config should be specified.

https://pymongo.readthedocs.io/en/4.8.0/examples/tls.html
  • Loading branch information
adrianclay authored Sep 2, 2024
1 parent 97a3070 commit 882af9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/persistence/mongo_persistence_adaptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ def _build_client():
with open(_CERT_FILE_PATH, "w") as cert_file:
cert_file.write(cert)
kwargs = {
'ssl': True,
'ssl_ca_certs': _CERT_FILE_PATH
'tls': True,
'tlsCAFile': _CERT_FILE_PATH
}
return AsyncIOMotorClient(config.get_config('DB_ENDPOINT_URL'), **kwargs)

Expand Down

0 comments on commit 882af9e

Please sign in to comment.