Skip to main content
Skip table of contents

Tuning the profiler results

The profiler uses regular expressions to identify sensitive data fields based on the column names and key values of VARIANT type data. These regular expressions are configured in a file called recognizers.yaml and each expression is mapped to a masking algorithm and has a matching score. Here is an example configuration:

CODE
-  name: ACCOUNT_NO 
    patterns:
    -   name: ACCOUNT_NO 1
         regex: '(?i)(?>(account|accnt|acct)_?-? ?(number|num|nbr|no|user))($|[ _-])'
         score: 0.67
    supported_entity: ACCOUNT_NO
    supported_language: en

To improve the results, you can edit the recognizers.yaml to add new regular expressions or to change the score associated to an existing configuration.

  1. The default recognizers.yaml is available in /app/src/config/recognizers.yaml. But the execution will use the recognizers.yaml copied over to /app/delphix/profiler.

  2. Copying the recognizers.yaml from the pod/container.

    1. For Kubernetes deployment:

      CODE
      kubectl cp --namespace=<profiler-namespace> <snowflake-profiler-service-pod-name>:/app/src/config/recognizers.yaml ./recognizers.yaml
    2.  For Docker Compose deployment:

      CODE
      docker cp <snowflake-profiler-service-container>:/app/src/config/recognizers.yaml ./recognizers.yaml
  3. Edit the recognizers.yaml to either add new regex regular expressions or to edit the scores. For instance, in the below example we added an identifier for city name where the column name is enclosed in single quotes:

    CODE
    - name: CITY
      patterns:
        ...
        # New city identifier
        - name: CITY 3
          regex: (?i)(?>'(address_?-? ?city|city|city_?-? ?address)')
          score: 0.9
  4. Copy the edited recognizers.yaml to the pod/container.

    1. For Kubernetes deployment:

      CODE
      kubectl cp --namespace=<profiler-namespace> ./recognizers.yaml  <snowflake-profiler-service-pod-name>:/app/delphix/profiler/recognizers.yaml 
    2.  For Docker Compose deployment:

      CODE
      docker cp ./recognizers.yaml <snowflake-profiler-service-container>:/app/delphix/profiler/recognizers.yaml 

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.