Skip to content

Configuring Email Regex for Ranger Users

Overview

Apache Ranger enables administrators to enforce the specific format restrictions by configuring email address patterns. This feature ensures consistent and secure user management across the system.

Configuring Email Regex for Ranger Users

Perform the following steps to configure the email regex for Ranger users:

  1. SSH into the instance where Privacera Manager is installed.
  2. Navigate to the privacera-manager directory using the following command:
    Bash
    cd ~/privacera/privacera-manager/
    
  3. Run the following command to copy the sample vars. The -n flag prevents overwriting the file if it already exists:
    Bash
    cp -n config/sample-vars/vars.ranger.admin.yml config/custom-vars/
    
  4. Run the following command to open the .yml file for editing.
    Bash
    vi config/custom-vars/vars.ranger.admin.yml
    
  5. Add or update the following property:

    Variable Definition
    RANGER_VALID_EMAIL_REGEX Specifies the email address pattern for Ranger users.
    YAML
    RANGER_VALID_EMAIL_REGEX: "^[\\w]([\\-\\.\\w\\+])+[\\w\\+]+@[\\w]+[\\w\\-]+[\\w]*\\.([\\w]+[\\w\\-]+[\\w]*(\\.[a-z][a-z|0-9]*)?)$" 
    
  6. Once the properties are configured, update your Privacera Manager platform instance by following the

    Bash
    1
    2
    3
    cd ~/privacera/privacera-manager
    ./privacera-manager.sh setup
    ./pm_with_helm.sh upgrade 
    

Comments