]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Deprecate parameters to webserver(), add 'statsRequireAuthentication' parameter
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 13 Jan 2021 17:35:02 +0000 (18:35 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 13 Jan 2021 17:35:02 +0000 (18:35 +0100)
commitfa7e8b5dd7f21d52cd21b5b7cb0e3b9f67558da6
tree4c2ce3bb12f233f8e0db68ce7cec215763e45419
parent6478e050305868f697d05814186b67ed6f81bf27
dnsdist: Deprecate parameters to webserver(), add 'statsRequireAuthentication' parameter

This PR deprecates the use of additional parameters with `webserver()`,
as the syntax is confusing and could lead to believe that the parameters
are per-instance while they actually are global.
Also implements an additional 'statsRequireAuthentication' parameter
to allow scraping the statistics without any kind of authentication,
which is useful to Prometheus setups with dynamic service discovery.
pdns/dnsdist-console.cc
pdns/dnsdist-lua.cc
pdns/dnsdist-web.cc
pdns/dnsdistdist/dnsdist-web.hh
pdns/dnsdistdist/docs/reference/config.rst
regression-tests.dnsdist/test_API.py
regression-tests.dnsdist/test_DynBlocks.py
regression-tests.dnsdist/test_Prometheus.py
regression-tests.dnsdist/test_TCPFastOpen.py