Surendhar Sivaprahasam
12/31/2025, 3:36 PMbearer in the auth header but Cloud PDP needs uppercase Bearer.
PR: https://github.com/permitio/permit-python/pull/123
Issue: https://github.com/permitio/permit-python/issues/122
One line fix in 4 files, tested locally and it works.
Not sure if this is the right channel for this, let me know if I should post it somewhere else!Ask Inkeep
12/31/2025, 3:36 PMAsk Inkeep
12/31/2025, 3:36 PMawait permit.api.resource_relations.create(
"file",
{
"key": "parent",
"name": "Parent",
"subject_resource": "folder",
}
)
(1)
And assign resource-level roles:
await permit.api.role_assignments.assign(
{
"user": "<mailto:john@acme.com|john@acme.com>",
"role": "viewer",
"resource_instance": "file:2023_report",
}
)
​*A quick note on Cloud PDP:*​ It's great for experimentation, but the documentation notes that for production deployments, the Docker Container PDP is recommended for better latency and availability. Also, the Cloud PDP is currently not compatible with ABAC or ReBAC policies. (2) , (3)
So for your ReBAC POC, you'll likely want to run the container PDP locally:
docker pull permitio/pdp-v2:latest
docker run -it -p 7766:7000 --env PDP_DEBUG=True --env PDP_API_KEY=<YOUR_API_KEY> permitio/pdp-v2:latest
(2)
To help our engineers investigate the 401 issue you encountered, could you share:
1. Which Workspace / Project / Environment you're using
2. The SDK calls you were performing (code snippet or cURL)
3. Which PDP version you were running
4. Any relevant logs from your PDPAsk Inkeep
12/31/2025, 3:36 PMOr Weis
12/31/2025, 3:39 PMOr Weis
12/31/2025, 3:40 PMSurendhar Sivaprahasam
12/31/2025, 3:42 PMSurendhar Sivaprahasam
12/31/2025, 3:43 PMAlon Boshi
12/31/2025, 3:50 PMSurendhar Sivaprahasam
12/31/2025, 3:59 PMAlon Boshi
12/31/2025, 4:05 PMSurendhar Sivaprahasam
12/31/2025, 4:08 PMAlon Boshi
12/31/2025, 4:09 PM