Hi,
I configured a basic setup for oathkeeper but for some reasons my configuration is always wrong.
I get back the following error:
A rule uses a malformed configuration and all URLs matching this rule will not work. You should resolve this issue now." error="authenticator matching this route is misconfigured or disabled".
Here is my config.yaml:
serve:
api:
port: 4456
host: ''
proxy:
port: 4455
host: ''
access_rules:
repositories:
- "file://rules.json"
authenticators:
noop:
enabled:
enabled: true
I am sure this file is picked up because the rules.json
is read and evaluated. Here is it:
[{
"id": "some-id",
"upstream": {
"url": "http://localhost:3000/"
},
"match": {
"url": "http://localhost:4455/some-route",
"methods": [
"GET"
]
},
"authenticators": [{
"handler": "noop"
}]
}]
I tried almost all combinations of config and even tried with ENV variables but I always get the same error. Any hint?
Thank you.