Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-17771

Shared Credentials are not exported using Bamboo Export

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 5.11.3
    • 5.7.2
    • Credentials

    Description

      Summary

      When running Bamboo's export, "Bamboo administration >> Build resources >> Shared credentials" are not exported

      Environment

      • Bamboo v5.7.2
      • MySQL

      Steps to Reproduce

      1. go to Bamboo administration >> Build resources >> Shared credentials
      2. create a new Shared Credential
        Credential name* My Credential
        SSH Key*
        -----BEGIN RSA PRIVATE KEY-----
        MIIEpAIBAAKCAQEAvUfSvw38D0V7g0ZbTwEFSSJBDKf7C1iwR/O4XtIJJAt+/XWi
        u6x+Zjw40Oyatoiz3syzWw773TgIKvwFFSlJvKnVc5x1qrh8/YX2r+fU418MzXu+
        UGKiZn9qqbK4WcSTTIwLKS2nJDbT4z5meGZ+GpEFKMeSERjxSWkEoesjfBhQEBfr
        NJdk3M/Dis1lcj4nWvKMIwucDDxfXw7GypQkNEE/7HtlDP+tKyEN6caqeBfXtT0V
        7MiCsmxnhPM0iMJmgGsaGbak/2ftV+NwxRBTN79Z8BxKSgy+nb/FnIhPiz3ltUa/
        PHe1mX8XdhU2uq4BOsG7+UbXi+iQyTrclBkbLwIDAQABAoIBACEoqPHRaFvghz+7
        HpnbiuqB9rVZ5C/brJ4eQylRUEqhPPD4H7cTA92zJRzspjnd/uzEHZORL2xUuZGW
        LunDHujPM9aaDT8ILNVZF5s/WNswNpT03aVFcj/UiIIMDiGjv05EplvjZImClWIU
        92yWP/c1eprnQ159aR+8JxSalc/SQRVE4BqVyZFJHiT9o08WvB++hk+wS/6/9hNu
        rTrQSs67vbPUGxOw03sRQROYEOnJxuUVqIMGO8HrOrskCsBhkZOOuw2LR6PWKx3B
        tWtldrGTRwX8dcpT/OxyJ2/ifaBmi2H+S1onh9LERCLOww9bOZtn2WzH1WUeyqB7
        oxkqBdkCgYEA8cDUzUqep7cLBVbVljaoCaNG74tjId+6u8M7lmhOxaxE9FUW56Cw
        lH6TL3Pwf1I0qxOAkgSJg5+CMNB7OqcW5IP1ufXmwNOxRwkkFGxUkf6Vm1qR/cr/
        rUF00YUQPHpXgpgpFjay6udUpaoXWktWmnrQ+Ynfgj5lEzQkYVFvzf0CgYEAyG9f
        Lm0hEm9Ez7oBH44hrDYg5XqXNB0IY1aBw+q4qChcWBZy/E00sSuifbx4+aDG6G0Z
        +VWCsnSfriVBan9w/+BP23CqND0+Zi5aU2zZOvfJbWRuDXcj6te7LjLaLEmCkK2i
        b3ZO0KpFOerJfJjDoqCaHUjHO1O1Tyy6iPpY35sCgYEA2rd2z3SfLWUxF1eETS6N
        wIpz9uzIdzEOpCjxlBYyjixZBiSlYFHE79PEHb5q6wXYmJ5AR9rK/sYk5zz3AA2D
        bKLmgaOzbOkZDgd7GO8ZZCxL9g1u34n03y7FHXmhQtX8ri4zneFG5bb8ohTMo+hd
        Jc3PmrPd/tusXj9iWplu6ZECgYEAq0xTok/t9d1Wh9nF3/wO1ykjkDvnQciWRJ/I
        I3JVApIL6dS1zN8G62wJYUBUe7Nmi3nCuw7TtkRpu+FnOOdV4bkJRtfQ/vhgfd+b
        nrTmKrleUrmEPMnXzns1I9SeFT918MQUkQIhdcAvjcIVFQFSIYj0bZanfxKZX+Mw
        QKUEk4UCgYBFAf92eSATCjXQk3QgGGI8kNf53pOies/OEqy5VAoBhMNMpeydP8Xl
        VlxSsSl6sDUFauyD96j0HuVYSepp6bWycz+15ZAaNaiT1MsEUXYGgAMYcBKgtk43
        kEDYeWiSicDIZeJUHcmB9wVycqFnlYk+FutY1Gm1p4PCcsTxntX94w==
        -----END RSA PRIVATE KEY-----|
        SSH Passphrase abc123
      3. save it and the same should be found under Bamboo's database, CREDENTIALS table
      4. run Bamboo export

      Expected Results

      The Shared Credentials are exported

      Actual Results

      The Shared Credentials found in the CREDENTIALS table do not exist in Bamboo's export (./db-export/credentials.xml)

      Workaround

      Scenario A - In place upgrade

      If you are upgrading Bamboo and not changing the databases type, version, or location, don't perform an export. Instead, create a Bamboo backup by taking a dump of the database using the native tools specific to your database and create a filesystem copy of the BAMBOO_HOME directory. For further instructions, refer to the Bamboo upgrade guide documentation.

      Scenario B - Upgrade + DB version upgrade

      If you are upgrading Bamboo and changing the databases version, don't perform an export. Instead, create a Bamboo backup by taking a dump of the database using the native tools specific to your database and create a filesystem copy of the BAMBOO_HOME directory. Next, import the database dump into the new version of the database. For further instructions, refer to the Bamboo upgrade guide documentation.

      Scenario C - Upgrade + DB server location change

      If you are upgrading Bamboo and changing the databases location, don't perform an export. Instead, create a Bamboo backup by taking a dump of the database using the native tools specific to your database and create a filesystem copy of the BAMBOO_HOME directory. Next, import the database dump into the new database on the new server. For further instructions, refer to the Bamboo upgrade guide documentation.

      Scenario D - Upgrade + DB type change

      If you are upgrading Bamboo and changing the database type, you will need to perform an export. After you import the export file into the upgraded version, stop Bamboo and manually copy the data from the CREDENTIALS table from the source (old) database to the target (new) database. For further instructions, refer to the Bamboo upgrade guide documentation.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rsperafico Rafael Sperafico (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: