Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for exporting and importing all entities #2515

Open
jensalm opened this issue Nov 1, 2024 · 2 comments
Open

Add support for exporting and importing all entities #2515

jensalm opened this issue Nov 1, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@jensalm
Copy link

jensalm commented Nov 1, 2024

Allow the cli to export and import all entities. The export should not contain instance specific details like ids, when it was created, etc.
The output from export should be able to be imported in an empty ziti instance.
Output should support both json and yaml.

Example:

  "identities": [
    {
      "appData": {},
      "authPolicy": "@Default",
      "disabled": false,
      "externalId": null,
      "isAdmin": true,
      "isDefaultAdmin": false,
      "isMfaEnabled": false,
      "name": "Test 1",
      "roleAttributes": [],
      "tags": {},
      "typeId": "Default"
    }
  ],
  "configs": [
    {
      "data": {
        "addresses": [
          "google.ziti"
        ],
        "portRanges": [
          {
            "high": 120,
            "low": 80
          }
        ],
        "protocols": [
          "tcp"
        ]
      },
      "name": "test 1 intercepting config",
      "tags": {},
    }
  ]
  "services": [
    {
      "configs": [
        "@test 1 intercepting config"
      ],
      "encryptionRequired": true,
      "name": "test 1",
      "roleAttributes": [
        "services"
      ],
      "tags": {},
      "terminatorStrategy": "smartrouting"
    }
  ]
@jensalm jensalm self-assigned this Nov 1, 2024
@jensalm jensalm changed the title Add support for importing and export all entities to recreate a ziti instance Add support for importing and exporting all entities to recreate a ziti instance Nov 1, 2024
@jensalm jensalm changed the title Add support for importing and exporting all entities to recreate a ziti instance Add support for exporting and importing all entities to recreate a ziti instance Nov 1, 2024
@dovholuknf dovholuknf added the enhancement New feature or request label Nov 1, 2024
@qrkourier
Copy link
Member

qrkourier commented Nov 1, 2024

What's an example use case for the feature? By recreate do you mean clone to a fresh network as opposed to managing a Ziti network's entities?

@jensalm jensalm changed the title Add support for exporting and importing all entities to recreate a ziti instance Add support for exporting and importing all entities Nov 1, 2024
@jensalm
Copy link
Author

jensalm commented Nov 1, 2024

What's an example use case for the feature? By recreate do you mean clone to a fresh network as opposed to managing a Ziti network's entities?

Basic use case is to be able to "clone" a network.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants