Add the 'Brute force protection' checkbox to the UI

DocImpact
Partial-Bug: #1563721
Change-Id: I7bbd96fb43fcd6030621671d0056f56324f50956
Signed-off-by: Maksim Malchuk <mmalchuk@mirantis.com>
This commit is contained in:
Maksim Malchuk 2016-07-18 22:15:51 +03:00
parent 980694da8c
commit 0825f3e96c
2 changed files with 11 additions and 0 deletions

View File

@ -1381,6 +1381,15 @@
restrictions:
- condition: "settings:ssh.security_enabled.value == false"
action: "hide"
brute_force_protection:
value: false
label: "Brute force protection"
description: "When enabled, the access from all networks (except the provided ones) will be granted, but the networks will be checked against the brute force attack."
weight: 30
type: "checkbox"
restrictions:
- condition: "settings:ssh.security_enabled.value == false"
action: "hide"
kernel_params:
metadata:
label: "Kernel parameters"

View File

@ -160,6 +160,8 @@ class InstallationInfo(object):
'security_enabled', bool),
WhiteListRule(('ssh', 'security_networks', 'value'),
'security_networks', None),
WhiteListRule(('ssh', 'brute_force_protection', 'value'),
'brute_force_protection', bool),
)
vmware_attributes_white_list = (