5b08af
From 5123a7d9558a7d3bffd72f48554a1026ddacf624 Mon Sep 17 00:00:00 2001
5b08af
From: Jon Maloy <jmaloy@redhat.com>
5b08af
Date: Thu, 19 Mar 2020 07:03:22 +0100
5b08af
Subject: [PATCH 3/5] cc_set_password: increase random pwlength from 9 to 20
5b08af
 (#189)
5b08af
MIME-Version: 1.0
5b08af
Content-Type: text/plain; charset=UTF-8
5b08af
Content-Transfer-Encoding: 8bit
5b08af
5b08af
Message-id: <20200312182427.7304-2-jmaloy@redhat.com>
5b08af
Patchwork-id: 94251
5b08af
O-Subject: [RHEL-7.9 cloud-init 1/1] cc_set_password: increase random pwlength from 9 to 20 (#189)
5b08af
Bugzilla: 1812170
5b08af
RH-Acked-by: Eduardo Otubo <eterrell@redhat.com>
5b08af
RH-Acked-by: Vitaly Kuznetsov <vkuznets@redhat.com>
5b08af
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
5b08af
5b08af
From: Ryan Harper <ryan.harper@canonical.com>
5b08af
5b08af
Increasing the bits of security from 52 to 115.
5b08af
5b08af
LP: #1860795
5b08af
(cherry picked from commit 42788bf24a1a0a5421a2d00a7f59b59e38ba1a14)
5b08af
Signed-off-by: Jon Maloy <jmaloy@redhat.com>
5b08af
---
5b08af
 cloudinit/config/cc_set_passwords.py | 2 +-
5b08af
 1 file changed, 1 insertion(+), 1 deletion(-)
5b08af
5b08af
diff --git a/cloudinit/config/cc_set_passwords.py b/cloudinit/config/cc_set_passwords.py
5b08af
index c3c5b0f..0742234 100755
5b08af
--- a/cloudinit/config/cc_set_passwords.py
5b08af
+++ b/cloudinit/config/cc_set_passwords.py
5b08af
@@ -236,7 +236,7 @@ def handle(_name, cfg, cloud, log, args):
5b08af
         raise errors[-1]
5b08af
 
5b08af
 
5b08af
-def rand_user_password(pwlen=9):
5b08af
+def rand_user_password(pwlen=20):
5b08af
     return util.rand_str(pwlen, select_from=PW_SET)
5b08af
 
5b08af
 
5b08af
-- 
5b08af
1.8.3.1
5b08af