Skip to content

Commit

Permalink
simpler predicate for chcking request.path not in set
Browse files Browse the repository at this point in the history
Signed-off-by: Guilherme Cassolato <[email protected]>
  • Loading branch information
guicassolato committed Nov 26, 2024
1 parent 4813252 commit 9217e6f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -797,10 +797,8 @@ spec:
authorization:
"allowed-endpoints":
when:
- predicate: request.path != '/hi'
- predicate: request.path != '/hello'
- predicate: request.path != '/aloha'
- predicate: request.path != '/ciao'
- predicate: |
!(request.path in ['/hi', '/hello', '/aloha', '/ciao'])
patternMatching:
patterns:
- pattern: "true"
Expand Down

0 comments on commit 9217e6f

Please sign in to comment.