Skip to content

Conversation

@preuss-adam
Copy link
Contributor

Ensure that check queries have a consistent structure by replacing the original rule head with a placeholder predicate.

Without this fix, if a rule has a malformed head (e.g., the head predicate does not include all the variables in the body) the biscuit builder does not report any errors, but the authorizer catches the issue.

Also adds an addRule() API that optionally validates the rule.

…e original rule head with a placeholder predicate.

Add an API that validates the Rule before including it in the biscuit.
@preuss-adam preuss-adam force-pushed the apreuss/builder-rule-validation branch from e30ab1c to b10557a Compare January 21, 2026 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant