Avoid Security Entities from Migration [OPTIONAL]

JFrog Installation & Setup Documentation

Content Type
Installation & Setup
ft:sourceType
Paligo

After you run the migrator tool with the getconfig option, the migrator tool creates the security.json file inside the folder, <working directory>/migration/nexus-migrator.

The security.json file contains the details of the security entities to be migrated to Artifactory. You can delete the entities that you do not want to be migrated from this list.

You can delete the entity name and the corresponding block from the security.json file to avoid migration of the entity to Artifactory.

Note

If you remove any entity, remember to also remove its reference and any other section that is related to it. For example, if you remove a group section, you will need to remove that group name from any privileges that reference it.

The password field in the JSON file is base64 encoded. If you wish to change the password, enter the base64 encoded value of the password in the password field.

The following example shows a sample security.json file.

{
    "users": [
        {
            "name": "deployment",
            "email": "changeme1@yourcompany.com",
            "password": "UGFzc3dvcmRAMTIz",
            "realm": "internal",
            "groups": [
                "readers"
            ]
        },
        {
            "name": "testadmin",
            "email": "a@gmail.com",
            "password": "UGFzc3dvcmRAMTIz",
            "admin": true,
            "realm": "internal",
            "groups": [
                "readers"
            ]
        },
        {
            "name": "normaluser",
            "email": "test@gmail.com",
            "password": "UGFzc3dvcmRAMTIz",
            "realm": "internal",
            "groups": [
                "TestPrivRole",
                "readers"
            ]
        }
    ],
    "groups": [
        {
            "name": "TestPrivRole",
            "description": "TestPrivRole"
        },
        {
            "name": "m-8test",
            "description": "test"
        }
    ],
    "permissions": [
        {
            "name": "m-8privtest",
            "includesPattern": "**",
            "principals": {
                "groups": {
                    "m-8test": [
                        "r",
                        "w",
                        "d",
                        "n",
                        "m"
                    ]
                }
            },
            "repositories": [
                "test1"
            ]
        },
        {
            "name": "testcustom",
            "includesPattern": "**",
            "principals": {},
            "repositories": [
                "ANY"
            ]
        }
    ]
}