Sam Armitt-Fior
11/18/2025, 7:21 PMPermit Support Automation
11/18/2025, 9:07 PMPermit Support Automation
11/19/2025, 12:45 AMJarek Głowacki
11/19/2025, 12:46 AMSam Armitt-Fior
11/19/2025, 6:33 AMPermit Support Automation
11/19/2025, 11:12 AMPermit Support Automation
11/19/2025, 5:16 PMPermit Support Automation
11/19/2025, 8:37 PMPermit Support Automation
11/20/2025, 7:24 AMPermit Support Automation
11/21/2025, 9:18 AMPermit Support Automation
11/21/2025, 10:49 AMPermit Support Automation
11/21/2025, 1:11 PMPermit Support Automation
11/21/2025, 2:20 PMPermit Support Automation
11/21/2025, 2:28 PMPermit Support Automation
11/21/2025, 4:42 PMPermit Support Automation
11/21/2025, 9:44 PMMihiru Kongahage
11/22/2025, 10:01 AM{"level":50,"time":"2025-11-22T09:40:20.177Z","label":"<http://Permit.io|Permit.io>","msg":"[undefined] permit.api.getApiKeyScope(), err: undefined"}
Error creating resource instance: PermitContextError: could not fetch the api key scope in order to set the api context level
I’ve tested this with both Cloud PDP and a local PDP, but the behavior is the same.
SDK Initialization:
const permit = new Permit({
token: process.env.PERMIT_API_KEY || '',
pdp: '<https://cloudpdp.api.permit.io>',
timeout: 30000,
apiContext: {
project: "default",
environment: "dev",
},
throwOnError: true,
log: {
level: 'debug',
}
});
Can you clarify what causes this intermittent failure and how to resolve it?Permit Support Automation
11/22/2025, 7:44 PMJames Bohrman
11/22/2025, 7:45 PMJames Bohrman
11/22/2025, 7:45 PMJames Bohrman
11/22/2025, 7:59 PMPermit Support Automation
11/24/2025, 9:24 AMPermit Support Automation
11/24/2025, 10:59 AMMihiru Kongahage
11/24/2025, 2:13 PM{
"user": {
"key": "user_id1"
},
"action": "create",
"resource": {
"type": "project",
"tenant": "default",
"key": "project_test10"
},
"context": {}
}
Is this RBAC + ReBAC design and resource-instance model valid for Permit.io for this use case? Any other design options/candidates that you'd recommend?
In the first iteration, we'd like to use the cloud PDP exclusively without a local PDP setup. Is there a another approach where this kind of permission model can be supported by exclusively using cloud PDP?Permit Support Automation
11/24/2025, 11:03 PMPermit Support Automation
11/25/2025, 6:02 AMPermit Support Automation
11/25/2025, 9:57 AMPermit Support Automation
11/25/2025, 12:44 PMPermit Support Automation
11/26/2025, 7:09 AMB22DCCN393 Nguyễn Việt Huy
11/26/2025, 9:14 AMresult: false. Could you please help me identify the root cause of this issue?