You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am having trouble implementing the get_query method for sql_alchemy in our app. Here's what I've got going on. I am fairly new to Cerbos so it may (likely??) be that something is wrong on my end, but I'm a bit stumped so I'm asking for help.
When I run is_allowed with the following principal and resource, things work as expected and shows that Cerbos is running and knows about the policies.
There is no top level variable key in this data structure, which is why it throws an error. I don't really understand why the data structure d is wrong at this point though. Could someone help me out? Thanks!
The text was updated successfully, but these errors were encountered:
This was "fixed" in Dennis' PR above. However, it did highlight a failure case in the adapter when unsupported operators make their way through to the resolution logic. I've created another issue to track this and will close this as complete!
Hello,
I am having trouble implementing the
get_query
method for sql_alchemy in our app. Here's what I've got going on. I am fairly new to Cerbos so it may (likely??) be that something is wrong on my end, but I'm a bit stumped so I'm asking for help.Simplified policies are as follows:
Policies
When I run
is_allowed
with the following principal and resource, things work as expected and shows that Cerbos is running and knows about the policies.When I try to run
get_query
with the above principal and the following code, it errors on theget_query
line.The plan looks like this:
Printout of query plan
The error is
When I put a print in the file where the error originates, I get this for the value of
d
:There is no top level
variable
key in this data structure, which is why it throws an error. I don't really understand why the data structured
is wrong at this point though. Could someone help me out? Thanks!The text was updated successfully, but these errors were encountered: