From e2468ff204074b614c5eac8d781c6b2fbe411368 Mon Sep 17 00:00:00 2001 From: Mia Altieri Date: Fri, 5 Jan 2024 23:53:50 +0000 Subject: [PATCH] set to require TLS --- lib/charms/mongodb/v1/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/charms/mongodb/v1/helpers.py b/lib/charms/mongodb/v1/helpers.py index 8f9e6ff98..7f66faad1 100644 --- a/lib/charms/mongodb/v1/helpers.py +++ b/lib/charms/mongodb/v1/helpers.py @@ -163,7 +163,7 @@ def get_mongod_args( f"--tlsCAFile={full_conf_dir}/{TLS_EXT_CA_FILE}", f"--tlsCertificateKeyFile={full_conf_dir}/{TLS_EXT_PEM_FILE}", # allow non-TLS connections - "--tlsMode=preferTLS", + "--tlsMode=requireTLS", ] )