pdns
pdns copied to clipboard
auth: Per zone metadata setting ENABLE-LUA-RECORDS can not be set via API
- Program: Authoritative
- Issue type: Bug report
Short description
It seems that it's currently not possible to enable LUA records on a per-zone basis using the API as that setting is not whitelisted.
Environment
- Operating system: Ubuntu 20.04
- Software version: 4.8.0-alpha0.264.master.g7eaadaa85
- Software source: pdns repo
Steps to reproduce
- Try to set
ENABLE-LUA-RECORDSusing the API - Result:
Unsupported metadata kind 'ENABLE-LUA-RECORDS'
Expected behaviour
Possible to set ENABLE-LUA-RECORDS using the API.
Actual behaviour
Unsupported metadata kind 'ENABLE-LUA-RECORDS'
Other information
Ref: https://github.com/PowerDNS/pdns/blob/master/pdns/ws-auth.cc#L862 & as discussed.
Enabling this access by default would turn the REST API into a remote shell, which users may not want. Perhaps we can hide this ability behind a pdns.conf flag.