sailesh1993 / rpms / cloud-init

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