plugin/tsig: new plugin TSIG (#4957)

* expose tsig secrets via dnsserver.Config
* add tsig plugin

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
This commit is contained in:
Chris O'Haver 2022-06-27 15:48:34 -04:00 committed by GitHub
parent 64885950cc
commit 68e141eff2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 1112 additions and 3 deletions

View file

@ -28,8 +28,10 @@ func setup(c *caddy.Controller) error {
})
c.OnStartup(func() error {
config := dnsserver.GetConfig(c)
t.tsigSecret = config.TsigSecret
// find all plugins that implement Transferer and add them to Transferers
plugins := dnsserver.GetConfig(c).Handlers()
plugins := config.Handlers()
for _, pl := range plugins {
tr, ok := pl.(Transferer)
if !ok {