Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
7c5e716b
Commit
7c5e716b
authored
Aug 14, 2014
by
Martyn James
Committed by
Zia Fazal
Apr 06, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes to default settings for LMS as recommended by Matasano
parent
eeb91f1f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
11 deletions
+20
-11
lms/envs/devstack.py
+9
-11
lms/envs/test.py
+11
-0
No files found.
lms/envs/devstack.py
View file @
7c5e716b
...
@@ -120,6 +120,15 @@ FEATURES['API'] = True
...
@@ -120,6 +120,15 @@ FEATURES['API'] = True
EDX_API_KEY
=
None
EDX_API_KEY
=
None
########################## SECURITY #######################
FEATURES
[
'ENFORCE_PASSWORD_POLICY'
]
=
False
FEATURES
[
'ENABLE_MAX_FAILED_LOGIN_ATTEMPTS'
]
=
False
FEATURES
[
'SQUELCH_PII_IN_LOGS'
]
=
False
FEATURES
[
'PREVENT_CONCURRENT_LOGINS'
]
=
False
FEATURES
[
'ADVANCED_SECURITY'
]
=
False
PASSWORD_MIN_LENGTH
=
None
PASSWORD_COMPLEXITY
=
{}
#####################################################################
#####################################################################
# See if the developer has any local overrides.
# See if the developer has any local overrides.
try
:
try
:
...
@@ -130,14 +139,3 @@ except ImportError:
...
@@ -130,14 +139,3 @@ except ImportError:
#####################################################################
#####################################################################
# Lastly, run any migrations, if needed.
# Lastly, run any migrations, if needed.
MODULESTORE
=
convert_module_store_setting_if_needed
(
MODULESTORE
)
MODULESTORE
=
convert_module_store_setting_if_needed
(
MODULESTORE
)
########################## SECURITY #######################
FEATURES
[
'ENFORCE_PASSWORD_POLICY'
]
=
False
FEATURES
[
'ENABLE_MAX_FAILED_LOGIN_ATTEMPTS'
]
=
False
FEATURES
[
'SQUELCH_PII_IN_LOGS'
]
=
False
FEATURES
[
'PREVENT_CONCURRENT_LOGINS'
]
=
False
FEATURES
[
'ADVANCED_SECURITY'
]
=
False
PASSWORD_MIN_LENGTH
=
None
PASSWORD_COMPLEXITY
=
{}
lms/envs/test.py
View file @
7c5e716b
...
@@ -206,6 +206,17 @@ filterwarnings('ignore', message='No request passed to the backend, unable to ra
...
@@ -206,6 +206,17 @@ filterwarnings('ignore', message='No request passed to the backend, unable to ra
simplefilter
(
'ignore'
)
# Change to "default" to see the first instance of each hit
simplefilter
(
'ignore'
)
# Change to "default" to see the first instance of each hit
# or "error" to convert all into errors
# or "error" to convert all into errors
############################# SECURITY SETTINGS ################################
# Default to advanced security in common.py, so tests can reset here to use
# a simpler security model
FEATURES
[
'ENFORCE_PASSWORD_POLICY'
]
=
False
FEATURES
[
'ENABLE_MAX_FAILED_LOGIN_ATTEMPTS'
]
=
False
FEATURES
[
'SQUELCH_PII_IN_LOGS'
]
=
False
FEATURES
[
'PREVENT_CONCURRENT_LOGINS'
]
=
False
FEATURES
[
'ADVANCED_SECURITY'
]
=
False
PASSWORD_MIN_LENGTH
=
None
PASSWORD_COMPLEXITY
=
{}
######### Third-party auth ##########
######### Third-party auth ##########
FEATURES
[
'ENABLE_THIRD_PARTY_AUTH'
]
=
True
FEATURES
[
'ENABLE_THIRD_PARTY_AUTH'
]
=
True
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment