Skip to content

Commit

Permalink
Merge pull request #133 from Kuadrant/fix-readme
Browse files Browse the repository at this point in the history
README.md: update reference example
  • Loading branch information
eguzki authored Nov 5, 2024
2 parents 4d9451d + fbe4efd commit 1a1a7fd
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ services:
ratelimit-service:
type: ratelimit
endpoint: ratelimit-cluster
failureMode: deny
failureMode: allow
actionSets:
- name: rlp-ns-A/rlp-name-A
routeRuleConditions:
Expand All @@ -29,9 +29,12 @@ actionSets:
- request.host == "test.toystore.com"
- request.method == "GET"
actions:
- service: auth-service
scope: auth-scope-a
- service: ratelimit-service
scope: rlp-ns-A/rlp-name-A
conditions: []
scope: ratelimit-scope-a
predicates:
- auth.identity.anonymous == "true"
data:
- expression:
key: my_header
Expand All @@ -42,8 +45,8 @@ actionSets:
### CEL Predicates and Expression
`routeRuleConditions`'s `predicate`s are expressed in [Common Expression Language (CEL)](https://cel.dev). `Predicate`s
evaluating to a `bool` value, while `Expression`, used for passing data to a service, evaluate to some `Value`.
`routeRuleConditions`'s `predicate`s are expressed in [Common Expression Language (CEL)](https://cel.dev). `Predicate`s
evaluating to a `bool` value, while `Expression`, used for passing data to a service, evaluate to some `Value`.

These expression can operate on the data made available to them through the Well Known Attributes, see below

Expand Down

0 comments on commit 1a1a7fd

Please sign in to comment.