Yilmaz Alizadeh
09/05/2025, 12:10 PMAsk Inkeep
09/05/2025, 12:10 PMAsk Inkeep
09/05/2025, 12:11 PMAsk Inkeep
09/05/2025, 12:11 PMOr Weis
09/05/2025, 12:27 PMOr Weis
09/05/2025, 12:33 PMLewis Youl
09/05/2025, 12:44 PMYilmaz Alizadeh
09/05/2025, 2:59 PMYilmaz Alizadeh
09/05/2025, 3:18 PMYilmaz Alizadeh
09/05/2025, 3:19 PMOr Weis
09/05/2025, 3:44 PMLewis Youl
09/05/2025, 4:21 PMOr Weis
09/05/2025, 4:24 PMLewis Youl
09/05/2025, 4:33 PMOr Weis
09/05/2025, 5:42 PMLewis Youl
09/08/2025, 6:34 AMLewis Youl
09/08/2025, 9:00 AMLewis Youl
09/08/2025, 9:08 AMsandbox - lewis_development & default - dev.Lewis Youl
09/08/2025, 9:11 AMOr Weis
09/08/2025, 9:16 AMOr Weis
09/08/2025, 9:42 AMLewis Youl
09/08/2025, 9:55 AMLewis Youl
09/08/2025, 9:56 AMOr Weis
09/08/2025, 10:00 AMDan
09/08/2025, 10:08 AMLewis Youl
09/08/2025, 10:21 AMimport { Permit } from 'permitio';
const permit = new Permit({
token: process.env.PDP_API_KEY,
pdp: process.env.PDP_URL,
proxyFactsViaPdp: true,
throwOnError: true
});
export default permit;
This is the SDK call that we make to create a condition set.
await this.permit.api.conditionSets.create(conditionSet);Lewis Youl
09/08/2025, 10:22 AM{
key: "document-58d83812-2a73-45b5-b431-ac890096a7b5-c8217bd9-ed07-4898-b455-f9c9eb615977-resource-set",
name: "document with documentTypeId 58d83812-2a73-45b5-b431-ac890096a7b5 on c8217bd9-ed07-4898-b455-f9c9eb615977",
description: "document with documentTypeId 58d83812-2a73-45b5-b431-ac890096a7b5 on c8217bd9-ed07-4898-b455-f9c9eb615977",
type: "resourceset",
resource_id: "document",
conditions: {
allOf: [
{
allOf: [
{
"resource.documentTypeId": {
equals: "58d83812-2a73-45b5-b431-ac890096a7b5",
},
}, {
"resource.tenant": {
equals: "redacted",
},
}
],
}
],
},
}Lewis Youl
09/08/2025, 10:25 AMLewis Youl
09/08/2025, 10:26 AMDan
09/08/2025, 10:33 AMLewis Youl
09/08/2025, 10:35 AMNotice that this API call is not supported by the Consistent Updates APIsYes I figured that out earlier in the thread.
Are you using Custom GitOps with your project?No we aren't.
Lewis Youl
09/08/2025, 11:33 AMLewis Youl
09/08/2025, 11:33 AMLewis Youl
09/08/2025, 11:36 AMDan
09/08/2025, 11:39 AMDan
09/08/2025, 12:19 PMLewis Youl
09/08/2025, 12:46 PMDan
09/08/2025, 12:48 PMDan
09/08/2025, 1:01 PMLewis Youl
09/08/2025, 1:02 PMDan
09/08/2025, 2:35 PMLewis Youl
09/08/2025, 2:40 PMDan
09/08/2025, 4:13 PMlewis_development env. It seem to be an issue with the number of condition sets and the amount of resources, actions and roles they have. This issue is the Cartesian fanout that cause the query to return hundreds of thousands of rows and leading to a timeout or even a crash.
Even after the previous optimizations, this environment still leads to a very large response and timeout. I'm continuing to work on it to find the right way to overcome it.
Thank you for your patience and I'll keep you posted about the solution 🙏Lewis Youl
09/08/2025, 4:27 PMLewis Youl
09/08/2025, 4:29 PMDan
09/08/2025, 4:37 PMLewis Youl
09/09/2025, 9:01 AMDan
09/09/2025, 9:21 AMYilmaz Alizadeh
09/09/2025, 11:38 AMLewis Youl
09/09/2025, 1:32 PMOmer Zuarets
09/09/2025, 1:41 PMLewis Youl
09/09/2025, 2:32 PMOmer Zuarets
09/09/2025, 2:54 PMLewis Youl
09/09/2025, 3:19 PM