summaryrefslogtreecommitdiff
path: root/ironic/tests/unit/drivers/modules/test_agent.py
diff options
context:
space:
mode:
authorJulia Kreger <juliaashleykreger@gmail.com>2019-10-25 11:31:53 -0700
committerJulia Kreger <juliaashleykreger@gmail.com>2020-03-24 20:11:43 +0000
commitfcaefdbe74c63d6ad42fd23cdb5cb98373d83443 (patch)
tree683a880122fae2fc1b0b1d9fa006d434bfd993cf /ironic/tests/unit/drivers/modules/test_agent.py
parent3eb0c164011a744126330de44413ab704b55ea83 (diff)
downloadironic-fcaefdbe74c63d6ad42fd23cdb5cb98373d83443.tar.gz
Hash the rescue_password
In order to provide increased security, it is necessary to hash the rescue password in advance of it being stored into the database and to provide some sort of control for hash strength. This change IS incompatible with prior IPA versions with regard to use of the rescue feature, but I fully expect we will backport the change to IPA on to stable branches and perform a release as it is a security improvement. Change-Id: I1e118467a536229de6f7c245c1c48f0af38dcef2 Story: 2006777 Task: 27301
Diffstat (limited to 'ironic/tests/unit/drivers/modules/test_agent.py')
-rw-r--r--ironic/tests/unit/drivers/modules/test_agent.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ironic/tests/unit/drivers/modules/test_agent.py b/ironic/tests/unit/drivers/modules/test_agent.py
index 81790a28a..9a337e58a 100644
--- a/ironic/tests/unit/drivers/modules/test_agent.py
+++ b/ironic/tests/unit/drivers/modules/test_agent.py
@@ -1954,7 +1954,8 @@ class AgentRescueTestCase(db_base.DbTestCase):
self.config(**config_kwarg)
self.config(enabled_hardware_types=['fake-hardware'])
instance_info = INSTANCE_INFO
- instance_info.update({'rescue_password': 'password'})
+ instance_info.update({'rescue_password': 'password',
+ 'hashed_rescue_password': '1234'})
driver_info = DRIVER_INFO
driver_info.update({'rescue_ramdisk': 'my_ramdisk',
'rescue_kernel': 'my_kernel'})