Skip to content

Commit

Permalink
Merge pull request #88 from djberg96/provisioning_blacklist
Browse files Browse the repository at this point in the history
Add blacklists for VM username and password when provisioning
  • Loading branch information
gmcculloug authored Jul 12, 2017
2 parents b478828 + fa8c1c5 commit 0c3e664
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion content/miq_dialogs/miq_provision_azure_dialogs_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -357,9 +357,24 @@
:required: true
:display: :edit
:data_type: :string
:required_method: :validate_blacklist
:blacklist: [
'1', '123', 'a', 'actuser', 'adm', 'admin', 'admin1', 'admin2',
'administrator', 'aspnet', 'backup', 'console', 'david', 'guest',
'john', 'owner', 'root', 'server', 'sql', 'support', 'support_388945a0',
'sys', 'test', 'test1', 'test2', 'test3', 'user', 'user1', 'user2',
'user3', 'user4', 'user5'
]
:max_length: 20
:root_password:
:description: Password
:required_method: :validate_regex
:required_method:
- :validate_blacklist
- :validate_regex
:blacklist: [
'abc@123', 'P@$$w0rd', 'P@ssw0rd', 'P@ssword123', 'Pa$$word',
'pass@word1', 'Password!', 'Password1', 'Password22', 'iloveyou!'
]
:required_regex: !ruby/regexp /(?=.{12,72})((?=.*\d)(?=.*[a-z])(?=.*[A-Z])|(?=.*\d)(?=.*[a-zA-Z])(?=.*[\W_])|(?=.*[a-z])(?=.*[A-Z])(?=.*[\W_])).*/
:required_regex_fail_details: The password must be 12-72 characters, and have 3 of the following - one lowercase character, one uppercase character, one number and one special character.
:required: true
Expand Down

0 comments on commit 0c3e664

Please sign in to comment.