Skip to content

Is there a documentation about using CEL in AuthConfig ? #504

Closed Answered by guicassolato
eshepelyuk asked this question in Q&A
Discussion options

You must be logged in to vote

In the meantime...

  1. Where previously one could do {selector: <json-path>, operator: <authorino-custom-operator>, value: <string>}, now {predicate: <cel-predicate>} is also supported, where <cel-predicate> has to evaluate to a boolean value;
  2. Where previously one could do {selector: <json-path}, now {expression: <cel-expression>} is also supported;
  3. Specific fields that supported JSON path interpolation (e.g. http.url: <string>) have got a CEL-enabled counterpart (e.g. http.urlExpression: <cel-expression>).

All CEL predicates and expressions must be valid or the AuthConfig will be rejected (at reconciliation time), unlike JSON paths that at runtime will evaluate to null/empty value if invalid.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@guicassolato
Comment options

Answer selected by eshepelyuk
@eshepelyuk
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants