aboutsummaryrefslogtreecommitdiffstats
path: root/environments
diff options
context:
space:
mode:
authorLuke Hinds <lhinds@redhat.com>2016-12-21 13:57:47 +0000
committerlhinds <lhinds@redhat.com>2017-01-25 16:45:22 +0000
commit0e18ac5fdec4b9eeaef7f6aa83c466e86415e4e2 (patch)
treea0d6bcbfb0bfbc8c528fc65a530f0721b8c6b9e0 /environments
parent6ec44d98b4a9aee3b469f31d08dd293bcff6db0e (diff)
Manage password_validator regex
Horizon provides a password validation check, which OpenStack cloud operators can use to enforce password complexity checks for users within horizon. A dictionary containing a regular expression can be used for password validation with help text that is displayed if the password does not pass validation. HORIZON_CONFIG["password_validator"] = { "regex": '.*', "help_text": _("Your password does not meet the requirements."), } This change allows injection of the regex into horizons local_settings file from a tripleo heat template Change-Id: Ib6517c8f96148bea002b0e3442a26367b236928f Depends-On: If82a80ed6a8e6e65aecc2a25ee6d60640ae03c9a Closes-Bug: #1640800
Diffstat (limited to 'environments')
-rw-r--r--environments/horizon_password_validation.yaml5
1 files changed, 5 insertions, 0 deletions
diff --git a/environments/horizon_password_validation.yaml b/environments/horizon_password_validation.yaml
new file mode 100644
index 00000000..1a0f92cc
--- /dev/null
+++ b/environments/horizon_password_validation.yaml
@@ -0,0 +1,5 @@
+# Use this enviroment to pass in validation regex for horizons password
+# validation checks
+parameter_defaults:
+ HorizonPasswordValidator: '.*'
+ HorizonPasswordValidatorHelp: 'Your password does not meet the requirements.'