Skip to main content

Import data to Locker SM

Importing files of secrets from other secrets managers, or applications to Locker Secrets Manager helps you move to Locker faster to secure your secrets.
  1. Locker currently supports importing data from a JSON file. Store your secrets with a JSON file following the below template. You can store secrets in a project or multiple projects based on your usage purposes.
{
  "projects": [
    {
      "name": "project_1",
      "description": "",
      "secrets": [
        {
          "description": null,
          "key": "key_1_1",
          "value": "value_1_1"
        },
        {
          "description": null,
          "key": "key_1_2",
          "value": "value_1_2"
        },
        {
          "description": null,
          "key": "key_1_3",
          "value": "value_1_3"
        }
      ],
      "environments": []
    },
    {
      "name": "project_2",
      "description": "",
      "secrets": [
        {
          "description": null,
          "key": "key_2_1",
          "value": "value_2_1"
        },
        {
          "description": null,
          "key": "key_2_2",
          "value": "value_2_2"
        }
      ],
      "environments": []
    }
  ]
}
  1. Open a workspace > click Settings on the left navigation bar.
  2. On the Settings screen, click Import/Export.
  3. Click the Import button.
  4. On the Import form, click Choose file to upload a file with the Locker Json format.
  5. Click Next to import the file’s data into Locker.
New project(s) with secrets will be created and appear on the project list. Click to open a project to see the imported secrets.