Ethan Kong
12/11/2025, 9:52 PMAsk Inkeep
12/11/2025, 9:52 PMpermit support automation2
12/11/2025, 9:52 PMAsk Inkeep
12/11/2025, 9:52 PMTrying to connect to Pub/Sub server - <ws://localhost:7002/ws>
RPC connection was refused by server
(1)
*Common fixes:*
• Verify your PDP_URL is correct (e.g., <http://localhost:7766> for local Docker, or <https://cloudpdp.api.permit.io> for cloud PDP) (2)
• Check DNS resolution from within your container – in some cases (especially WSL/Docker setups) , DNS configuration can cause failures to resolve <http://api.permit.io|api.permit.io> (3)
• Ensure your PDP_API_KEY environment variable is set correctly (2)
*To run a local PDP:*
docker run -it \
-p 7766:7000 \
--env PDP_API_KEY=<your-permit-api-key> \
--env PDP_DEBUG=True \
permitio/pdp-v2:latest
*
To help our engineers investigate further, could you please share:
1. Which *Workspace / Project / Environment* you are using
2. What *calls* you are performing (SDK code or cURL)
3. Which *PDP version* you are running
4. *Relevant logs* from your PDP
You can also reach out directly via Email for further assistance.Ask Inkeep
12/11/2025, 9:52 PMEthan Kong
12/11/2025, 10:03 PMNatalia Edelson
12/11/2025, 11:15 PMOr Weis
12/12/2025, 8:00 AMabansal
12/12/2025, 3:38 PMOr Weis
12/12/2025, 3:42 PMAsk Inkeep
12/12/2025, 3:42 PMAsk Inkeep
12/12/2025, 3:42 PMdocker run -it \
-p 7766:7000 \
-p 8181:8181 \
--env PDP_API_KEY=<YOUR_API_KEY> \
--env PDP_DEBUG=True \
permitio/pdp-v2:latest
*To get your Environment API Key via API* (3) :
First, get your project:
curl '<https://api.permit.io/v2/projects>' \
-H 'authorization: Bearer API_SECRET_KEY'
Then get environments for that project:
curl '<https://api.permit.io/v2/projects/project_id_or_key/envs>' \
-H 'authorization: Bearer API_SECRET_KEY'
You can also retrieve or manage environment API keys through the Settings -> API Keys screen in the dashboard. (1)
*For multiple projects in the same EKS cluster*: You would typically run separate PDP instances (or deployments) , each configured with its own environment-level API key for the specific environment it serves.Ask Inkeep
12/12/2025, 3:42 PMOr Weis
12/12/2025, 4:02 PMAsk Inkeep
12/12/2025, 4:02 PMAsk Inkeep
12/12/2025, 4:03 PMPDP_PROJECT_API_KEY and specify the environment with `PDP_ACTIVE_ENV`:
docker run -it \
-p 7766:7000 \
--env PDP_PROJECT_API_KEY=<YOUR_PROJECT_API_KEY> \
--env PDP_ACTIVE_ENV=<YOUR_ENVIRONMENT_ID_OR_KEY> \
--env PDP_DEBUG=True \
permitio/pdp-v2:latest
*Using an Organization API Key:*
You need to set PDP_ORG_API_KEY and specify both the project and environment:
docker run -it \
-p 7766:7000 \
--env PDP_ORG_API_KEY=<YOUR_ORG_API_KEY> \
--env PDP_ACTIVE_PROJECT=<YOUR_PROJECT_ID_OR_KEY> \
--env PDP_ACTIVE_ENV=<YOUR_ENVIRONMENT_ID_OR_KEY> \
--env PDP_DEBUG=True \
permitio/pdp-v2:latest
This approach is useful when you want a single API key for multiple environments or to reduce secrets management overhead. However, as mentioned, environment-level keys are recommended from a least-privilege security perspective.Ask Inkeep
12/12/2025, 4:03 PMabansal
12/12/2025, 4:17 PMAPI key for hpvp ?abansal
12/12/2025, 4:17 PMabansal
12/12/2025, 4:17 PMAsk Inkeep
12/12/2025, 4:23 PMAsk Inkeep
12/12/2025, 4:24 PMPDP_ACTIVE_ENV, that PDP will only serve policy decisions for that specific environment within that project. (1)
*Options for multiple projects in the same EKS cluster*:
1. *Run separate PDP instances* — Each PDP deployment uses its own Environment API Key (or Project API Key + PDP_ACTIVE_ENV) for the specific project/environment it needs to serve. This is the recommended approach.
2. *Use an Organization API Key* — If you need one PDP to serve a specific environment across projects, you can use:
docker run -it \
-p 7766:7000 \
--env PDP_ORG_API_KEY=<YOUR_ORG_API_KEY> \
--env PDP_ACTIVE_PROJECT=<YOUR_PROJECT_ID_OR_KEY> \
--env PDP_ACTIVE_ENV=<YOUR_ENVIRONMENT_ID_OR_KEY> \
--env PDP_DEBUG=True \
permitio/pdp-v2:latest
But note: even with an Org API Key, you still specify *one* project and *one* environment per PDP instance.
*Bottom line*: For Ethan to access a different project, you'll need a separate PDP instance configured for that project's environment.
*
To help our engineers investigate the 403 error Ethan mentioned earlier, could you share:
1. Which *Workspace / Project / Environment* Ethan is using
2. The *SDK code or cURL calls* being performed
3. The *PDP version* you're running
4. *Relevant PDP logs*Ask Inkeep
12/12/2025, 4:24 PMOr Weis
12/12/2025, 4:24 PMOr Weis
12/12/2025, 4:25 PMabansal
12/12/2025, 6:04 PMOr Weis
12/12/2025, 6:34 PMabansal
12/12/2025, 8:25 PMpermit support automation2
12/12/2025, 8:25 PMabansal
12/12/2025, 8:56 PMpermit support automation2
12/12/2025, 8:56 PMThomas
12/12/2025, 9:38 PMAlon Boshi
12/14/2025, 10:24 AMcan we please schedule 30 mins next week. We have some questions around this.Yes — you can book 30 minutes with Thomas here: https://calendly.com/thomas-permitio/30min