Skip to content

Conversation

dennis-ix
Copy link
Contributor

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

Adds an unset action to edns0 options in the rewrite plugin. This allows removing an edns0 option (local, nsid or subnet) from the request.
This can be useful when forwarding a request with internal data to an external server.

2. Which issues (if any) are related?

#7360

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

Updated the rewrite plugin readme.

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

No.

Signed-off-by: Dennis Simmons <215134900+dennis-ix@users.noreply.github.com>
Signed-off-by: Dennis Simmons <215134900+dennis-ix@users.noreply.github.com>
Signed-off-by: Dennis Simmons <215134900+dennis-ix@users.noreply.github.com>
@greenpau
Copy link
Collaborator

@dennis-ix , great work on this one! 👍

Copy link

codecov bot commented Jun 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.99%. Comparing base (93c57b6) to head (7f3c68e).
Report is 1508 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7380      +/-   ##
==========================================
+ Coverage   55.70%   59.99%   +4.29%     
==========================================
  Files         224      273      +49     
  Lines       10016    17982    +7966     
==========================================
+ Hits         5579    10789    +5210     
- Misses       3978     6565    +2587     
- Partials      459      628     +169     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@greenpau
Copy link
Collaborator

@dennis-ix , please address test failures.

Signed-off-by: Dennis Simmons <215134900+dennis-ix@users.noreply.github.com>
@dennis-ix
Copy link
Contributor Author

Thanks @greenpau !
Just fixed the linting issues.

@greenpau
Copy link
Collaborator

@dennis-ix , also please get coverage to 100%

Signed-off-by: Dennis Simmons <215134900+dennis-ix@users.noreply.github.com>
@dennis-ix
Copy link
Contributor Author

@greenpau
I wouldn't say the Codecov report was very useful, but luckily it was easy to find and fix the missing lines.
While at it I also covered 3 more existing cases.

@greenpau greenpau merged commit b2a2a5f into coredns:master Jun 19, 2025
13 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