Summary
When migrating the instance to another server, the existing Secure macros may fail to be decrypted due to a PGP Encryption key mismatch. When this happens, you will see an error similar to the image below. To solve this, you need to migrate the data of the AO_DCA036_GLOBAL_KEY_PAIR table from the old database to the newly migrated instance's database.
...
Restore the old backup into a new instance with a separate database.
After restoring the backup into the new instance (let's name this instance Server A), check the PASS_PHRASE, PRIVATE_KEY, and PUBLIC_KEY from
AO_DCA036_GLOBAL_KEY_PAIR
database table of Server AWith the data, move to the new instance and update
AO_DCA036_GLOBAL_KEY_PAIR
table with the copied keys from Server ACode Block UPDATE public."AO_DCA036_GLOBAL_KEY_PAIR" SET"PASS_PHRASE" = Server A PASS_PHRASE, "PRIVATE_KEY" = Server A PRIVATE_KEY, "PUBLIC_KEY" = Server A PUBLIC_KEY;
After this, clear the plugin cache (as recommended by Atlassian).
Check if the migrated secure macros can be decrypted.
Note icon false Note:Upon updating
AO_DCA036_GLOBAL_KEY_PAIR
with the new keys, any secure macros which were created previously in the instance will not be decryptable.
...