ValueError: AES key must be either 16, 24, or 32 bytes long
Bug #1415887 reported by
Christian Berendt
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
rajiv | ||
puppet-heat |
Fix Released
|
Medium
|
Emilien Macchi |
Bug Description
When using a string with a length != 16, 24, or 32 as value for the auth_encryption_key parameter in the /etc/heat/heat.conf file it is not possible to create new stacks. Creating a new stack (and probably anything else) will fail with the following exception:
ValueError: AES key must be either 16, 24, or 32 bytes long
Changing the auth_encryption_key parameter to a string with a length of 16, 24, or 32 solves the issue.
There should be at least a note in the parameter description that it is necessary to use a string with this specific length. A validation of the string value would be nice.
Tested with version 2014.2.1 (Juno).
description: | updated |
Changed in heat: | |
assignee: | nobody → rajiv (rajiv-kumar) |
tags: | removed: kilo-rc-potential |
Changed in puppet-heat: | |
milestone: | none → 6.0.0 |
Changed in puppet-heat: | |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | liberty-rc2 → 5.0.0 |
To post a comment you must log in.
https:/ /github. com/openstack/ heat/blob/ master/ heat/common/ config. py#L302
This ^ is a good place to have the check.