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