Sami Dahoux

11/09/2022, 1:53 PM
Hello everyone, I wanted to use Cerbos to control the permission of creating an object in our application. I have noticed that in order to perform a checkResource I need to provide a resourceId, which I don't yet have since I am creating the resource. Right now we used a resourceId of 0 as a placeholder to perform the check. Is there a better solution to this problem ?

Alex Olivier (Cerbos)

11/09/2022, 1:54 PM
That is the recommended approach (or something like
) for now if you don’t have one yet. Some systems generate a guid upfront so that could be used also.

Sami Dahoux

11/09/2022, 1:57 PM
Thank you for your quick response, we do not use UUID generation but we might think about it latter.