summaryrefslogtreecommitdiff
path: root/cloudinit/config
diff options
context:
space:
mode:
authorRyan Harper <ryan.harper@canonical.com>2020-01-24 21:33:12 +0200
committerDaniel Watkins <oddbloke@ubuntu.com>2020-01-24 14:33:12 -0500
commit42788bf24a1a0a5421a2d00a7f59b59e38ba1a14 (patch)
tree66852b6840c7d0100c4aa4a1dc481354c19be452 /cloudinit/config
parentefc82c9b059ae781befc014a5e9c0de3b5184e5e (diff)
downloadvyos-cloud-init-42788bf24a1a0a5421a2d00a7f59b59e38ba1a14.tar.gz
vyos-cloud-init-42788bf24a1a0a5421a2d00a7f59b59e38ba1a14.zip
cc_set_password: increase random pwlength from 9 to 20 (#189)
Increasing the bits of security from 52 to 115. LP: #1860795
Diffstat (limited to 'cloudinit/config')
-rwxr-xr-xcloudinit/config/cc_set_passwords.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/config/cc_set_passwords.py b/cloudinit/config/cc_set_passwords.py
index e3b39d8b..4943d545 100755
--- a/cloudinit/config/cc_set_passwords.py
+++ b/cloudinit/config/cc_set_passwords.py
@@ -236,7 +236,7 @@ def handle(_name, cfg, cloud, log, args):
raise errors[-1]
-def rand_user_password(pwlen=9):
+def rand_user_password(pwlen=20):
return util.rand_str(pwlen, select_from=PW_SET)