I’m trying to use convergent AES-GCM encryption to provide an IV (nonce) generated in our application to send to be encrypted in the Vault transit engine. Using the python hvac lib, I keep seeing the following error when I attempt to specify the plaintext, nonce, and enable convergent encryption: hvac.exceptions.InvalidRequest: provided nonce not allowed for this key
During the import process, I’m not seeing the ability to specify convergent_encryption for the imported key using the /transit/keys/:name/import endpoint, while it is available for the /transit/keys/:name endpoint
Reference:
I did also see this bulletin discussing user-provided nonces without specifying convergent encryption:
Am I able to import a key and allow it to be used with convergent encryption?