Skip to main content

Privacera Documentation

Table of Contents

Enable/Disable Discovery Consumer Service in Privacera Manager for AWS/Azure/GCP on Privacera Platform

The Discovery consumer service is known as a service that is used for writing Privacera Discovery classification and scan summary data in Solr.

This section provides details to enable and disable the Discovery consumer services in Privecera Manager for the AWS/Azure/GCP.

Enable Discovery consumer service in Privacera Manager

Perform following steps to enable the Discovery consumer service in Privacera Manager:

  1. SSH to the instance where Privacera is installed.

  2. Run the following command to change the directory to Privecera Manager:

    cd ~/privacera/privacera-manager
  3. Run the following command to edit the properties:

    • Run the following command to edit the properties for AWS:

      vi config/custom-vars/vars.discovery.aws.yml
    • Run the following command to edit the properties for Azure:

      vi config/custom-vars/vars.discovery.azure.yml
    • Run the following command to edit the properties for GCP:

      vi config/custom-vars/vars.discovery.gcp.yml
  4. To enable the Discovery consumer service, set the following property to true:

    DISCOVERY_CONSUMER_ENABLE: "true"
  5. Run the following command to update the Privacera Manager:

    cd ~/privacera/privacera-manager
    ./privacera-manager.sh update

Disable Discovery consumer service using Privacera Manager

Perform following steps to disable the Discovery consumer service in Privacera Manager:

  1. SSH to the instance where Privacera is installed.

  2. Run the following command to change the directory to Privecera Manager:

    cd ~/privacera/privacera-manager
  3. Run the following command to edit the properties:

    • Run the following command to edit the properties for AWS:

      vi config/custom-vars/vars.discovery.aws.yml
    • Run the following command to edit the properties for Azure:

      vi config/custom-vars/vars.discovery.azure.yml
    • Run the following command to edit the properties for GCP:

      vi config/custom-vars/vars.discovery.gcp.yml
  4. Edit the following properties to disable the Discovery consumer service and scale down all consumer pods:

    DISCOVERY_CONSUMER_ENABLE: "false"
    DISCOVERY_CONSUMER_K8S_REPLICAS: "0"
  5. Run the following command to update the Privacera Manager:

    cd ~/privacera/privacera-manager
    ./privacera-manager.sh update
  6. Run the following command multiple times to delete items/files generated by Privacera Manager for that particular service:

    kubectl -n <name-space> delete -f <item.yml>

    Note

    Each time while running the preceding command, replace the <item.yml> with the name of the file (one by one for all the files) present in /home/user/privacera/privacera-manager/output/kubernetes/helm/discovery-consumer/templates folder.

    Privacera Manager uses the Kubernetes name-space based on the value of the DEPLOYMENT_ENV_NAME variable defined in your config/vars.privacera.yml file.

    The <name-space> is an entity in Kubernetes where all the services are getting installed. For more information, see Namespaces.