coredns/plugin
Miek Gieben ba1efee4f1
Default to scrubbing replies in the server (#2012)
Every plugin needs to deal with EDNS0 and should call Scrub to make a
message fit the client's buffer. Move this functionality into the server
and wrapping the ResponseWriter into a ScrubWriter that handles these
bits for us. Result:

Less code and faster, because multiple chained plugins could all be
calling scrub and SizeAndDo - now there is just one place.

Most tests in file/* and dnssec/* needed adjusting because in those unit
tests you don't see OPT RRs anymore. The DNSSEC signer was also looking
at the returned OPT RR to see if it needed to sign - as those are now
added by the server (and thus later), this needed to change slightly.

Scrub itself still exist (for backward compat reasons), but has been
made a noop. Scrub has been renamed to scrub as it should not be used by
external plugins.

Fixes: #2010

Signed-off-by: Miek Gieben <miek@miek.nl>
2018-08-29 12:26:22 +01:00
..
auto Default to scrubbing replies in the server (#2012) 2018-08-29 12:26:22 +01:00
autopath Typo fixes (#2031) 2018-08-14 08:55:55 -07:00
bind Clean up tests logging (#1979) 2018-07-19 16:23:06 +01:00
cache Default to scrubbing replies in the server (#2012) 2018-08-29 12:26:22 +01:00
chaos Clean up tests logging (#1979) 2018-07-19 16:23:06 +01:00
debug Clean up tests logging (#1979) 2018-07-19 16:23:06 +01:00
deprecated Implement deprecation notice for 1.1.4 (#1833) 2018-05-24 14:30:01 +01:00
dnssec Default to scrubbing replies in the server (#2012) 2018-08-29 12:26:22 +01:00
dnstap dnstap.TapperFromContext always returns nil (#2018) 2018-08-01 22:58:23 +00:00
erratic plugin/erratic: add axfr support (#1977) 2018-07-20 10:25:54 +01:00
errors Clean up tests logging (#1979) 2018-07-19 16:23:06 +01:00
etcd Default to scrubbing replies in the server (#2012) 2018-08-29 12:26:22 +01:00
federation Default to scrubbing replies in the server (#2012) 2018-08-29 12:26:22 +01:00
file Default to scrubbing replies in the server (#2012) 2018-08-29 12:26:22 +01:00
forward Default to scrubbing replies in the server (#2012) 2018-08-29 12:26:22 +01:00
health Clean up tests logging (#1979) 2018-07-19 16:23:06 +01:00
hosts Default to scrubbing replies in the server (#2012) 2018-08-29 12:26:22 +01:00
kubernetes Default to scrubbing replies in the server (#2012) 2018-08-29 12:26:22 +01:00
loadbalance Clean up tests logging (#1979) 2018-07-19 16:23:06 +01:00
log Clean up tests logging (#1979) 2018-07-19 16:23:06 +01:00
loop Document current limitations of loop (#1996) 2018-07-23 20:37:41 +01:00
metadata Typo fixes (#2031) 2018-08-14 08:55:55 -07:00
metrics Metrics listener fix (#2036) 2018-08-21 11:52:25 -04:00
nsid Clean up tests logging (#1979) 2018-07-19 16:23:06 +01:00
pkg lower cache min limit (#2065) 2018-08-29 07:13:18 +01:00
pprof Clean up tests logging (#1979) 2018-07-19 16:23:06 +01:00
proxy Default to scrubbing replies in the server (#2012) 2018-08-29 12:26:22 +01:00
reload Typo fixes (#2031) 2018-08-14 08:55:55 -07:00
rewrite Add suffix example to docs (#2049) 2018-08-23 15:27:09 -04:00
root Typo fixes (#2031) 2018-08-14 08:55:55 -07:00
route53 Default to scrubbing replies in the server (#2012) 2018-08-29 12:26:22 +01:00
secondary Fix ineffassign (#1959) 2018-07-28 10:32:13 +01:00
template Default to scrubbing replies in the server (#2012) 2018-08-29 12:26:22 +01:00
test plugin/test: Fix documentation (#1948) 2018-07-07 08:30:57 +01:00
tls Clean up tests logging (#1979) 2018-07-19 16:23:06 +01:00
trace Clean up tests logging (#1979) 2018-07-19 16:23:06 +01:00
whoami New plugin: loop (#1989) 2018-07-20 19:45:17 +01:00
backend.go all: fix plugin import ordering (#1717) 2018-04-22 08:34:35 +01:00
backend_lookup.go plugin/kubernetes: Create records for portless services (#2052) 2018-08-27 10:10:51 -04:00
log_test.go Clean up tests logging (#1979) 2018-07-19 16:23:06 +01:00
normalize.go Fix ineffassign (#1959) 2018-07-28 10:32:13 +01:00
normalize_test.go CIDR query routing (#1159) 2017-10-24 10:16:03 +01:00
plugin.go all: fix plugin import ordering (#1717) 2018-04-22 08:34:35 +01:00