Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Version published after converting to the new editor

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.

...

  1. Restore the old backup into a new instance with a separate database.

  2. 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 A

  3. With the data, move to the new instance and update AO_DCA036_GLOBAL_KEY_PAIR table with the copied keys from Server A

    Code 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;


  4. After this, clear the plugin cache (as recommended by Atlassian).

  5. Check if the migrated secure macros can be decrypted.

    Note
    iconfalse
    (warning) 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.


...