new security settings defaults

161 views
Skip to first unread message

Beth Porter

unread,
Jan 8, 2015, 11:15:14 AM1/8/15
to edx-...@googlegroups.com
Currently, in Open edX, our security settings are permissive by default, and the settings for our production environment (i.e edX.org) tighten up the security as a special case. In our next release, we will make the more secure settings our defaults, and loosen security for environments where it is warranted, such as development and testing.

As an Open edX operator, this means that you will notice the following defaults will change their state when you upgrade your instance:
  • enforcing the password policy (we are changing it to be true)
  • enabling max log-in attempts (we are changing this to be on)
  • hiding PII in the application logs (we are changing this to be hidden)
  • preventing concurrent log-ins (we are changing to to be true)
  • enabling "Advanced Security" (we are changing this to be on)
We are also setting a minimum password length (to 8) and introducing simple password complexity logic:

+PASSWORD_COMPLEXITY = { "UPPER": 1, "LOWER": 1, "DIGITS": 1 }
To change these settings back to their current defaults using the Ansible deployment system, add the following settings to your configuration yml file before deployment:

EDXAPP_FEATURES:
  ENABLE_MAX_FAILED_LOGIN_ATTEMPTS: false
  ENFORCE_PASSWORD_POLICY: false
  SQUELCH_PII_IN_LOGS: false
  PREVENT_CONCURRENT_LOGINS: false
  ADVANCED_SECURITY: false

Additional details can be found here: 
https://github.com/edx/edx-platform/pull/5410/files

Dmitry Ivanyushin

unread,
Jan 14, 2015, 10:12:49 PM1/14/15
to edx-...@googlegroups.com
Hi there,

I must be missing something. What does key ADVANCED_SECURITY supposed to do? Other keys seem self-explanatory, but not this one. :)

четверг, 8 января 2015 г., 19:15:14 UTC+3 пользователь Beth Porter написал:

Jesse Zoldak

unread,
Jan 15, 2015, 7:44:04 AM1/15/15
to edx-code
The ADVANCED_SECURITY flag toggles the entire feature on or off, regardless of the settings in the ADVANCED_SECURITY_CONFIG dict.
Here's an example of how you can see it used in the codebase: https://github.com/edx/edx-platform/blob/master/common/djangoapps/student/models.py#L455

HTH.

-- JZ

mahmedg...@gmail.com

unread,
Jul 22, 2018, 4:56:12 AM7/22/18
to General Open edX discussion

hi 
Beth Porter in my installation the settings are the same but for some reason it does not seem to work, i still can register a user with two digits password!.  could you help me solve this ?? 
Reply all
Reply to author
Forward
0 new messages