Skip to content
Discussion options

You must be logged in to vote

For anyone landing here later: this was fixed by #16543, which shipped in Recursor 5.4.0. The 5.3.0 to 5.4.0 upgrade notes say:

It is no longer necessary to set webservice.api_key to enable the web service. When no API key is set, usage is limited to (potentially password based) access of the frontpage and related statistics calls.

So from 5.4.0, leaving webservice.api_key unset does what you wanted. Looking at web.rs, the only API endpoints that accept the web server password are GET /jsonstat, GET /api/v1/servers/localhost and GET /api/v1/servers/localhost/statistics, which the front page uses. Everything else (cache flush, config, zones and so on) returns 401 "API Key missing in conf…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@karelbilek
Comment options

Comment options

You must be logged in to vote
1 reply
@karelbilek
Comment options

Answer selected by karelbilek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants