feat: cel supported operators - #6027
Merged
Merged
Conversation
wolf4ood
force-pushed
the
feat/cel_supported_operators
branch
from
September 25, 2026 09:40
39921d8 to
cb0aa28
Compare
wolf4ood
force-pushed
the
feat/cel_supported_operators
branch
from
September 25, 2026 09:44
cb0aa28 to
63677bb
Compare
wolf4ood
force-pushed
the
feat/cel_supported_operators
branch
from
September 25, 2026 09:45
63677bb to
d33eb98
Compare
wolf4ood
marked this pull request as ready for review
September 25, 2026 10:14
jimmarino
approved these changes
Sep 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR changes/adds
Adds an optional
supportedOperatorsfield to CEL expressions. It limits which constraint operators an expression is invoked with.Operators use the enum names, e.g.
"EQ"or"IS_PART_OF". The deprecatedINis treated asIS_PART_OF.CEL expressions can also use a new binding,
this.odrlOperator. It holds the ODRL operator name without the namespace ("eq","isPartOf", …), next to the existingthis.operator, which holds the enum name. Expressions can use the same names policy authors write in ODRL, andIN/IS_PART_OFboth show up as"isPartOf". Example:Also:
supported_operatorscolumn, withADD COLUMN IF NOT EXISTSfor existing tables.PolicyValidatornow reports each validation failure only once. Before, a function registered in several policy contexts reported the same failure once per context.Why it does that
Briefly state why the change was necessary.
Further notes
List other areas of code that have changed but are not necessarily linked to the main feature. This could be method
signature changes, package declarations, bugs that were encountered and were fixed inline, etc.
Who will sponsor this feature?
Please @-mention the committer that will sponsor your feature.
Linked Issue(s)
Closes #6023
Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.