]> granicus.if.org Git - pdns/commit
dnsdist: Allow accessing the API with an optional API key
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 3 Mar 2016 17:35:01 +0000 (18:35 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 3 Mar 2016 17:35:01 +0000 (18:35 +0100)
commit87893e0866ec490992eef0dcd3a161c9afadddba
treef51a420cda021d925e994f334047d889a5c0c9d8
parentad8bf39422c5cdf7d695a18967620e35eebc8db8
dnsdist: Allow accessing the API with an optional API key

The API key can be specified as an additional, optional parameter
to `webserver()`. If present in a X-API-Key header, it allows
access to the API URLs:
- /api/v1/servers/localhost
- /jsonstat

Others URLs are still only allowed through basic authentication.
pdns/README-dnsdist.md
pdns/dnsdist-lua.cc
pdns/dnsdist-web.cc
pdns/dnsdist.hh