-
Notifications
You must be signed in to change notification settings - Fork 72
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
Cedar FFI Overhaul #757
Comments
This proposes |
Relatedly, what should we do if there is an error converting the input |
I propose that we return |
Another question: Do we want to rename the Also, do we want to rethink the current structure where users see three public submodules |
Thanks for the suggestions @cdisselkoen!
|
Implemented several of the suggestions in this issue in #760; see notes there. As I work on implementing more of the suggestions in this issue, found another problem: |
As requested in #793, keeping this issue up to date with changes proposed/accepted in #800:
|
Update: the changes proposed in this issue are implemented in #1014. The issue comment has been updated to match the implementation in that PR. |
Category
User level API features/changes
Describe the feature you'd like to request
The code in
cedar-policy/src/ffi/
acts as our public interface for JSON-based FFI. It is currently used by the Java and WASM bindings. We plan to use it for the differential testing harness too, in the future (see #75, #76, #125). But there are several rough edges in our frontend interface as it is now. This issue proposes to overhaul our FFI interface. This will result in breaking changes that will need to be delayed to the next major release (as of writing, 4.0 or greater).Proposed API
Entry point for
is_authorized
AuthorizationCall
typeAuthorizationAnswer
typeEntry point for
validate
ValidationCall
typeValidationAnswer
typeThe text was updated successfully, but these errors were encountered: