Skip to content

fix: reject unknown trace and dnstap block options#8120

Merged
yongtang merged 1 commit into
masterfrom
fix/trace-dnstap-unknown-block-options
May 21, 2026
Merged

fix: reject unknown trace and dnstap block options#8120
yongtang merged 1 commit into
masterfrom
fix/trace-dnstap-unknown-block-options

Conversation

@thevilledev

Copy link
Copy Markdown
Collaborator

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

Reject unrecognized nested directives in the trace and dnstap setup parsers instead of silently consuming them. This matches the behavior used by other CoreDNS plugins and catches configuration typos during startup.

Add parser tests covering misspelled block properties for both plugins.

2. Which issues (if any) are related?

Inspired by #8119.

3. Which documentation changes (if any) need to be made?

None.

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

No.

Reject unrecognized nested directives in the trace and dnstap setup
parsers instead of silently consuming them. This matches the
behavior used by other CoreDNS plugins and catches configuration
typos during startup.

Add parser tests covering misspelled block properties for both plugins.

Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
@thevilledev thevilledev marked this pull request as ready for review May 21, 2026 20:24
@yongtang yongtang merged commit d9c6b9b into master May 21, 2026
13 checks passed
@yongtang yongtang deleted the fix/trace-dnstap-unknown-block-options branch May 21, 2026 23:06
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