You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
however the local config.schema.json does not contain it.
This is also the schema that is loaded on startup root.go which causes the command to fail with a validation error:
INFO[0000] Config file loaded successfully. path=/etc/auth-oathkeeper/templates/oathkeeper.yaml
FATA[0000] The configuration is invalid and could not be loaded. [config_key=serve]="additionalProperties \"prometheus\" not allowed" config_file=/etc/auth-oathkeeper/templates/oathkeeper.yaml
Run docker run -v ${PWD}/config.yaml:/etc/config.yaml oryd/oathkeeper:v0.38.1-alpine serve --config /etc/config.yaml
Process start fails with:
time="2020-05-14T09:33:05Z" level=info msg="Config file loaded successfully." path=/etc/oathkeeper.yaml
time="2020-05-14T09:33:05Z" level=fatal msg="The configuration is invalid and could not be loaded." [config_key=#]="validation failed" [config_key=mutators.header]="oneOf failed" [config_key=serve]="additionalProperties \"prometheus\" not allowed" config_file=/etc/config.yaml
Expected behavior
The prometheus server should bind to localhost:9090
INFO[0000] No tracer configured - skipping tracing setup
INFO[0000] TLS has not been configured for proxy, skipping
INFO[0000] Listening on http://:4455
INFO[0000] Listening on http://localhost:9090
INFO[0000] TLS has not been configured for api, skipping
INFO[0000] Listening on http://:4456
^CINFO[0007] HTTP server was shutdown gracefully
INFO[0007] HTTP(s) server was shutdown gracefully
INFO[0007] HTTP server was shutdown gracefully
Describe the bug
The current v0.38.0-beta.2 release has introduced prometheus metrics and the following configuration stanza:
however the local config.schema.json does not contain it.
This is also the schema that is loaded on startup root.go which causes the command to fail with a validation error:
Reproducing the bug
Steps to reproduce the behavior:
config.yaml
fileRun
docker run -v ${PWD}/config.yaml:/etc/config.yaml oryd/oathkeeper:v0.38.1-alpine serve --config /etc/config.yaml
Process start fails with:
Expected behavior
The prometheus server should bind to
localhost:9090
Environment
Docker, image
oryd/oathkeeper:v0.38.1-alpine
Additional context
I opened a PR with a proposed fix
The text was updated successfully, but these errors were encountered: