Skip to content

plugin/tsig: add require_opcode directive for opcode-based TSIG#7828

Merged
thevilledev merged 1 commit into
coredns:masterfrom
clwluvw:tsig-opcode
Mar 27, 2026
Merged

plugin/tsig: add require_opcode directive for opcode-based TSIG#7828
thevilledev merged 1 commit into
coredns:masterfrom
clwluvw:tsig-opcode

Conversation

@clwluvw

@clwluvw clwluvw commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

1. Why is this pull request needed and what does it do?

Extend the tsig plugin to require TSIG signatures based on DNS opcodes, similar to the existing qtype-based requirement.

The new require_opcode directive accepts opcode names (QUERY, IQUERY, STATUS, NOTIFY, UPDATE) or the special values "all" and "none".

This is useful for requiring TSIG on dynamic update (UPDATE) or zone transfer notification (NOTIFY) requests while allowing unsigned queries.

Example:

  tsig {
    secret key. NoTCJU+DMqFWywaPyxSijrDEA/eC3nK0xi3AMEZuPVk=
    require_opcode UPDATE NOTIFY
  }

4. Does this introduce a backward incompatible change or deprecation?

No

Extend the tsig plugin to require TSIG signatures based on DNS opcodes,
similar to the existing qtype-based requirement.

The new require_opcode directive accepts opcode names (QUERY, IQUERY,
STATUS, NOTIFY, UPDATE) or the special values "all" and "none".

This is useful for requiring TSIG on dynamic update (UPDATE) or zone
transfer notification (NOTIFY) requests while allowing unsigned queries.

Example:
```
  tsig {
    secret key. NoTCJU+DMqFWywaPyxSijrDEA/eC3nK0xi3AMEZuPVk=
    require_opcode UPDATE NOTIFY
  }
```

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
@clwluvw clwluvw requested a review from chrisohaver as a code owner January 15, 2026 21:15
@clwluvw

clwluvw commented Jan 29, 2026

Copy link
Copy Markdown
Contributor Author

ping @chrisohaver

@thevilledev thevilledev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution @clwluvw! Looks good to me.

@thevilledev thevilledev merged commit 471d629 into coredns:master Mar 27, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants