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
1faa7328
Commit
1faa7328
authored
Aug 14, 2014
by
Martyn James
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes to default settings for LMS as recommended by Matasano
parent
0130a837
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
8 deletions
+28
-8
lms/envs/common.py
+8
-8
lms/envs/devstack.py
+9
-0
lms/envs/test.py
+11
-0
No files found.
lms/envs/common.py
View file @
1faa7328
...
...
@@ -224,7 +224,7 @@ FEATURES = {
'ENABLE_S3_GRADE_DOWNLOADS'
:
False
,
# whether to use password policy enforcement or not
'ENFORCE_PASSWORD_POLICY'
:
Fals
e
,
'ENFORCE_PASSWORD_POLICY'
:
Tru
e
,
# Give course staff unrestricted access to grade downloads (if set to False,
# only edX superusers can perform the downloads)
...
...
@@ -233,10 +233,10 @@ FEATURES = {
'ENABLED_PAYMENT_REPORTS'
:
[
"refund_report"
,
"itemized_purchase_report"
,
"university_revenue_share"
,
"certificate_status"
],
# Turn off account locking if failed login attempts exceeds a limit
'ENABLE_MAX_FAILED_LOGIN_ATTEMPTS'
:
Fals
e
,
'ENABLE_MAX_FAILED_LOGIN_ATTEMPTS'
:
Tru
e
,
# Hide any Personally Identifiable Information from application logs
'SQUELCH_PII_IN_LOGS'
:
Fals
e
,
'SQUELCH_PII_IN_LOGS'
:
Tru
e
,
# Toggles the embargo functionality, which enable embargoing for particular courses
'EMBARGO'
:
False
,
...
...
@@ -260,10 +260,10 @@ FEATURES = {
'ENABLE_MKTG_SITE'
:
False
,
# Prevent concurrent logins per user
'PREVENT_CONCURRENT_LOGINS'
:
Fals
e
,
'PREVENT_CONCURRENT_LOGINS'
:
Tru
e
,
# Turn o
ff
Advanced Security by default
'ADVANCED_SECURITY'
:
Fals
e
,
# Turn o
n
Advanced Security by default
'ADVANCED_SECURITY'
:
Tru
e
,
# Show a "Download your certificate" on the Progress page if the lowest
# nonzero grade cutoff is met
...
...
@@ -1532,9 +1532,9 @@ PROGRESS_SUCCESS_BUTTON_TEXT_OVERRIDE = None
#### PASSWORD POLICY SETTINGS #####
PASSWORD_MIN_LENGTH
=
None
PASSWORD_MIN_LENGTH
=
8
PASSWORD_MAX_LENGTH
=
None
PASSWORD_COMPLEXITY
=
{}
PASSWORD_COMPLEXITY
=
{
"UPPER"
:
1
,
"LOWER"
:
1
,
"DIGITS"
:
1
}
PASSWORD_DICTIONARY_EDIT_DISTANCE_THRESHOLD
=
None
PASSWORD_DICTIONARY
=
[]
...
...
lms/envs/devstack.py
View file @
1faa7328
...
...
@@ -99,6 +99,15 @@ CC_PROCESSOR = {
FEATURES
[
'ENABLE_MOBILE_REST_API'
]
=
True
FEATURES
[
'ENABLE_VIDEO_ABSTRACTION_LAYER_API'
]
=
True
########################## 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.
try
:
...
...
lms/envs/test.py
View file @
1faa7328
...
...
@@ -200,6 +200,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
# 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 ##########
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