-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't query facts added with authorizer_merge! #192
Comments
Thanks! I'm not sure how much of this is intended behaviour or not. In any case, it should be properly documented. |
I'm just getting my feet wet with this crate, so weight my comment accordingly. I think the current behavior is desirable, and if different semantics are needed, I think an additional or alternative query method should be provided for that. Here's my scenario: The base token includes some facts (such as a list of resources that are to be updated as part of an operation) that I can trust, because they were put into the token by the original token issuer. In my endpoint I plan to use the query method to extract those facts from the base token and use those to determine which resources my endpoint should operate on. This way my endpoint doesn't accept any additional parameters from the client; it will only operate on the trusted facts in the token. Additional appended facts are not to be trusted; these are the same semantics as described and illustrated in https://doc.biscuitsec.org/reference/datalog#block-scoping |
The behaviour should be stricter now that the |
Below an example showing the issue:
It looks like
query
don't lookup on facts added withauthorizer_merge!
The text was updated successfully, but these errors were encountered: