sailesh1993 / rpms / cloud-init

Forked from rpms/cloud-init a year ago
Clone
7ec9e8
From e7a0cd9aa71dfd7715eca4b393db0aa348e05f8f Mon Sep 17 00:00:00 2001
7ec9e8
From: jmaloy <jmaloy@redhat.com>
7ec9e8
Date: Thu, 28 May 2020 08:43:58 +0200
7ec9e8
Subject: [PATCH 1/4] cc_set_password: increase random pwlength from 9 to 20
7ec9e8
 (#189)
7ec9e8
7ec9e8
RH-Author: jmaloy <jmaloy@redhat.com>
7ec9e8
Message-id: <20200313015002.3297-2-jmaloy@redhat.com>
7ec9e8
Patchwork-id: 94253
7ec9e8
O-Subject: [RHEL-8.2 cloud-init PATCH 1/1] cc_set_password: increase random pwlength from 9 to 20 (#189)
7ec9e8
Bugzilla: 1812171
7ec9e8
RH-Acked-by: Eduardo Otubo <eterrell@redhat.com>
7ec9e8
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
7ec9e8
7ec9e8
From: Ryan Harper <ryan.harper@canonical.com>
7ec9e8
7ec9e8
Increasing the bits of security from 52 to 115.
7ec9e8
7ec9e8
LP: #1860795
7ec9e8
(cherry picked from commit 42788bf24a1a0a5421a2d00a7f59b59e38ba1a14)
7ec9e8
Signed-off-by: Jon Maloy <jmaloy@redhat.com>
7ec9e8
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
7ec9e8
---
7ec9e8
 cloudinit/config/cc_set_passwords.py | 2 +-
7ec9e8
 1 file changed, 1 insertion(+), 1 deletion(-)
7ec9e8
7ec9e8
diff --git a/cloudinit/config/cc_set_passwords.py b/cloudinit/config/cc_set_passwords.py
7ec9e8
index c3c5b0f..0742234 100755
7ec9e8
--- a/cloudinit/config/cc_set_passwords.py
7ec9e8
+++ b/cloudinit/config/cc_set_passwords.py
7ec9e8
@@ -236,7 +236,7 @@ def handle(_name, cfg, cloud, log, args):
7ec9e8
         raise errors[-1]
7ec9e8
 
7ec9e8
 
7ec9e8
-def rand_user_password(pwlen=9):
7ec9e8
+def rand_user_password(pwlen=20):
7ec9e8
     return util.rand_str(pwlen, select_from=PW_SET)
7ec9e8
 
7ec9e8
 
7ec9e8
-- 
7ec9e8
1.8.3.1
7ec9e8