most-library-19007
02/10/2024, 9:10 AMhostname:port/<**>
and then have more specific rules for things that a user needs to be authenticated for, e.g. hostname:port/admin/<**>
When trying a very simple test ruleset I end up with a Expected exactly one rule but found multiple rules
error
test rule set
---
- id: "test-rule"
version: v0.40.6
upstream:
preserve_host: false
url: "<http://localhost:8081>"
match:
url: "<http://localhost:9100/><**>"
methods:
- GET
authenticators:
- handler: noop
mutators:
- handler: noop
authorizer:
handler: allow
# errors:
# - handler: redirect
# config:
# to: <http://localhost:4455/login>
- id: "test-rule2"
version: v0.40.6
upstream:
preserve_host: false
url: "<http://localhost:8081/ping>"
match:
url: "<http://localhost:9100/ping>"
methods:
- GET
authenticators:
- handler: noop
mutators:
- handler: noop
authorizer:
handler: deny
errors:
- handler: redirect
config:
to: <http://localhost:9100/login>
Has anyone been able to solve this?witty-holiday-65473
02/16/2024, 8:59 AMmatch:
url: "<http://localhost:9100/><**>"
methods:
- GET
and id: "test-rule2"
match:
url: "<http://localhost:9100/ping>"
methods:
- GET
**
will, of course, overlap with ping
.most-library-19007
02/17/2024, 3:14 AM