Skip to content

Commit 90b6b24

Browse files
committed
tlsAllowInvalidCertificates=True
1 parent db872d9 commit 90b6b24

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/mongodb_settings.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
PARSED_URI = parse_uri(os.getenv("MONGODB_URI")) if os.getenv("MONGODB_URI") else {}
66

77
# Temporary fix for https://github.com/mongodb-labs/mongo-orchestration/issues/268
8-
if "USER" in PARSED_URI and "PASSWORD" in PARSED_URI:
8+
if PARSED_URI["USER"] and PARSED_URI["PASSWORD"]:
99
PARSED_URI["OPTIONS"]["tls"] = True
10+
PARSED_URI["OPTIONS"]["tlsAllowInvalidCertificates"] = True
1011

1112
DATABASES = {
1213
"default": {

0 commit comments

Comments
 (0)