Skip to content

Implement file parser for NSD's (and soon Unbound)'s TSIG config-snippet-in-a-file for use in Cascade #695

Description

@maertsen

NSD:

key:
        name: test.key
        algorithm: hmac-sha256
        secret: "B22jiD30pKL541XsOZ28y+NxbcIRoGqnumH2SFC8QDE="

It appears the NSD config file format also allows the secret string to be unquoted.

Unbound (in a dev branch):

tsig-key:
       name: test.key
       algorithm: hmac-sha256
       secret: "B22jiD30pKL541XsOZ28y+NxbcIRoGqnumH2SFC8QDE="

An alias will be added in a future release of NSD, so it supports tsig-key: going forward. This creates a yaml-like format Cascade will implement as well. This issue is for Domain to implement the required parsing with Cascade as a user in https://github.com/NLnetLabs/cascade/blob/70bc25ecf38cc5af25684914360c30415637a1cd/crates/cli/src/commands/tsig.rs#L108.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions