mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-23 15:41:07 +02:00
* Do not generate HMAC keys for CMAC keys on calls to Upgrade - Missed during the initial development of the Transit CMAC feature, on initial key creation we did not generate HMAC keys when the key type was CMAC. The call to the policy's Upgrade function though would treat this key as requiring an upgrade and add one back. - Fix this by adding an HMACSupported argument and verifying on upgrade for HMAC creation that the key type supports HMAC - Add generic test that verifies we aren't changing a key type iota value, string it defined and the proper operation of HMACSupported and CMACSupported functions * Add warning to test variable