This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Installing Developer Edition

The steps to install the product.

    Prerequisites

    Ensure that the following prerequisites are met.

    Hardware requirements

    For the local docker deployment mode, a machine with the following specifications will enable you to experiment with the main features:

    • RAM: 16 GB
    • CPU: 8 core
    • Hard Disk: 30GB available

    For the local docker deployment mode, a machine with the following specifications will enable you to experiment with the main features:

    • RAM: 16 GB
    • CPU: 8 core
    • Hard Disk: 30GB available

    For the local docker deployment mode, a machine with the following specifications will enable you to experiment with the main features:

    • RAM: 16 GB
    • CPU: 4 core
    • Hard Disk: 30GB available

    Software requirements

    • Python v3.9.23 and above is installed. For more information about installing Python, refer to the Python website.
    • pip for installing packages.
    • Python Virtual Environment.
    • Docker CLI is installed to manage Docker containers.
    • Docker Compose is installed for local containerized deployments. This application supports Docker Compose V2. Ensure that your installation supports this version.
    • Git is installed for cloning the repository.
    • Python v3.9.23 and above is installed. For more information about installing Python, refer to the Python website.
    • pip for installing packages.
    • Python Virtual Environment.
    • Docker CLI is installed to manage Docker containers.
    • Docker Compose is installed for local containerized deployments. This application supports Docker Compose V2. Ensure that your installation supports this version.
    • Git is installed for cloning the repository.
    • Python v3.9.23 and above is installed. For more information about installing Python, refer to the Python website.
    • pip for installing packages.
    • Python Virtual Environment.
    • Docker Desktop or Colima is installed.
    • Docker Compose is installed for local containerized deployments. This application supports Docker Compose V2. Ensure that your installation supports this version.
    • Git is installed for cloning the repository.

    Additional settings for macOS

    macOS requires additional steps for Docker and for systems with Apple Silicon chips. Complete the following steps before using Developer Edition.

    1. Complete one of the following options to apply the settings.

      • For Colima:
        1. Open a command prompt.
        2. Run the following command.
          colima start --vm-type vz --vz-rosetta
          
      • For Docker Desktop:
        1. Open Docker Desktop.
        2. Go to Settings > General.
        3. Enable the following check boxes:
          • Use Virtualization framework
          • Use Rosetta for x86_64/amd64 emulation on Apple Silicon
        4. Click Apply & restart.
    2. Update one of the following options for resolving certificate related errors.

      • For Colima:
        1. Open a command prompt.

        2. Navigate and open the following file.

          ~/.colima/default/colima.yaml
          
        3. Update the following configuration in colima.yaml to add the path for obtaining the required images.

          Before update:

          docker: {}
          

          After update:

          docker:
              insecure-registries:
                  - ghcr.io
          
        4. Save and close the file.

        5. Stop colima.

          colima stop
          
        6. Close and start the command prompt.

        7. Start colima.

          colima start --vm-type vz --vz-rosetta
          
      • For Docker Desktop:
        1. Open Docker Desktop.

        2. Click the gear or settings icon.

        3. Click Docker Engine from the sidebar. The editor opens the current Docker daemon configuration daemon.json.

        4. Locate and add the insecure-registries key in the root JSON object. Ensure that a comma is added after the last value in the existing configuration.

          After update:

          {
              .
              .
              <existing configuration>,
              "insecure-registries": [
                  "ghcr.io",
                  "githubusercontent.com"
              ]
          }
          
        5. Click Apply & Restart to save the changes and restart Docker Desktop.

        6. Verify: After Docker restarts, run docker info in your terminal and confirm that the required registry is listed under Insecure Registries.

    3. Optional: If the The requested image’s platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested error is displayed.

      1. Start a command prompt.

      2. Navigate and open the following file.

        ~/.docker/config.json
        
      3. Add the following paramater.

        "default-platform": "linux/amd64"
        
      4. Save and close the file.

      5. Run docker compose up -d from the protegrity-developer-edition directory if already cloned, else continue with the installation.

    Obtaining the package

    1. Navigate to the Protegrity Developer Edition repository.
    2. Clone or download the repositories.
    3. Verify the files in the package. The list of files in the git package can be obtained from the files list.

    Installing Data Discovery

    The containers contain the Data Discovery components required for identifying sensitive data.

    1. Open a command prompt.

    2. Navigate to the cloned repository location for protegrity-developer-edition.

    3. Run the following command to download and start the containers. The dependent containers are large in size. Based on the network connection, the containers might take time to download and deploy.

      docker compose up -d
      

      Based on your configuration use the docker-compose up -d command.

    To customize and deploy Data Discovery, refer to the Working with the Data Discovery containers.

    Installing the protegrity-developer-python Module

    The module has built-in functions to find and redact or mask data.

    1. Open a command prompt.

    2. Install the protegrity-developer-python module. It is recommended to install and activate the Python virtual environment.

      pip install protegrity-developer-python
      

      The installation completes and the success message is displayed. To compile and install the Python module from source, refer to Building the Python module.

    List of files in the Protegrity Developer Edition package

    The following files are available in the Developer Edition repositories.

    protegrity-developer-edition repository

    The repository for the obtaining and running the sample application.

    • docker-compose.yml: This file contains the configuration for deploying the Data Discovery containers.
    • README.md: The readme file specifying the steps to install the product.
    • samples: The directory with the sample application and scripts for the Python module.
      • sample-app-find-and-redact.py: The sample application Python file for detecting and redacting sensitive information in the source file.
      • sample-app-find.py: The sample application Python file for detecting and listing sensitive information in the source file.
      • config.json: The configuration file for the Python application.
      • sample-data: The directory with the sample file.
        • sample-find-redact.txt: The sample file that is processed.
    • data-discovery: The directory with the sample application and scripts for Data Discovery.
      • sample-classification-commands.sh: A file with the sample curl command for identifying sensitive data.
      • sample-classification-python.py: A sample Python module for identifying sensitive data.

    protegrity-developer-python repository

    The repository with the source files for customizing and compiling the Python file.

    • LICENSE: The license file with the terms and conditions for using the application.
    • README.md: The readme file for working with the Python file.
    • pyproject.toml: The configuration file for the script.
    • requirements.txt: The configuration file for the script.
    • protegrity-developer-python: The directory for the source file.
      • init.py: The initializing script.
      • securefind.py: The source file for the script.