Skip to main content

Privacera Documentation

Table of Contents

Troubleshoot REST API Issues on Privacera Platform

No Permission/Access Denied on REST API Requests on Kubernetes

On PEG REST API endpoints, if you get an "unauthorized" response or permission denied errors, check the following:

  • Make sure the user has been given the proper permission for Apache Ranger policies. See Set User Access in Ranger KMS.

  • Verify that Apache Ranger policies are being downloaded properly to the PEG pod. Log into the server and check the PEG pod in your namespace for the presence of the file peg_privacera_peg_roles.json with the following example commands:

# Get a Bash shell as root on the PEG pod
kubectl exec -it peg-6df5fb4b68-n78gl -n t-16153315220081 bash
cd /tmp/policycache/
ls -al
total 4
drwxr-xr-x 2 root root  42 Apr 28 17:29 .
drwxrwxrwt 1 root root 160 Apr 28 17:29 ..
-rw-r--r-- 1 root root 112 Apr 28 17:29 peg_privacera_peg_roles.json