]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Disable Lua configuration directives in YAML mode
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 13 Feb 2025 12:17:02 +0000 (13:17 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 13 Feb 2025 16:13:14 +0000 (17:13 +0100)
commita9195c3e1ec5ed9d62e35f3380889c374f20c104
tree8049fc06144adc36a20c2fee93b10e6f7c43a817
parentf400ec75c5a9b7e5b2f0d5ece2e9dade18d221d6
dnsdist: Disable Lua configuration directives in YAML mode

This commit restricts the Lua directives available to a Lua script
loaded alongside with a YAML configuration, disabling all Lua
configuration directives. This prevents a mess when settings are
set to different values in YAML and Lua, and make it clear that the
when a YAML configuration is used, any Lua file should only be used
to provide functions to the YAML configuration.
This behaviour can be reverted via the `enableLuaConfiguration`
directive if really needed.
pdns/dnsdistdist/dnsdist-console.cc
pdns/dnsdistdist/dnsdist-lua.cc
pdns/dnsdistdist/dnsdist-lua.hh
pdns/dnsdistdist/dnsdist-rust-lib/dnsdist-settings-documentation-generator.py
pdns/dnsdistdist/dnsdist.cc
pdns/dnsdistdist/docs/reference/config.rst
pdns/dnsdistdist/docs/reference/yaml-settings.rst