Skip to content
This repository was archived by the owner on Oct 13, 2025. It is now read-only.

Commit a228f77

Browse files
author
Bill DeRusha
authored
Merge pull request #316 from open-craft/jill/auth_mech
CRI-171 Makes the mongo authentication mechanism configurable from the environment
2 parents cd26759 + fafb9e8 commit a228f77

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.travis/docker-compose-travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ services:
1313
container_name: forum_testing
1414
volumes:
1515
- ..:/edx/app/forum/cs_comments_service
16+
environment:
17+
MONGOID_AUTH_MECH: ""
1618
forum:
1719
extends: forum-base
1820
command: tail -f /dev/null

config/mongoid.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ common: &default_client
99
timeout: <%= ENV['MONGOID_TIMEOUT'] || 0.5 %>
1010
ssl: <%= ENV['MONGOID_USE_SSL'] || false %>
1111
auth_source: <%= ENV['MONGOID_AUTH_SOURCE'] || '' %>
12+
auth_mech: <%= ENV['MONGOID_AUTH_MECH'].nil? ? ':scram' : ENV['MONGOID_AUTH_MECH'] %>
1213

1314
common_uri: &default_uri
1415
uri: <%= ENV['MONGOHQ_URL'] %>

0 commit comments

Comments
 (0)