Commit Graph

873 Commits

Author SHA1 Message Date
Brad P. Crochet
aa8c325d4a Fix HostPortOrFile to support IPv6 addresses with zone (#3527)
1. The HostPortOrFile tests don't have any IPv6 tests. This adds some.
2. The HostPortOrFile breaks if any of the addresses have IPv6 zone
defined. ParseIP does not handle %zone anymore.

Signed-off-by: Brad P. Crochet <brad@redhat.com>
2020-01-16 20:47:39 +01:00
Miek Gieben
246782b726 fixes
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-16 19:45:43 +01:00
Miek Gieben
45f11f3276 Version clusters - not endpoints yet
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-16 19:23:24 +01:00
Miek Gieben
cc87277820 more stuff
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-16 16:46:06 +01:00
Miek Gieben
a231daf17f more updates
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-16 16:39:28 +01:00
Miek Gieben
09f4e8aee4 format
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-16 11:24:01 +01:00
Miek Gieben
8582830b17 Stop hardcoding things
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-16 11:09:34 +01:00
Miek Gieben
0736ccb18e better
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-16 09:35:10 +01:00
Miek Gieben
ec151309dd Implement TO
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-16 09:16:05 +01:00
Miek Gieben
def3238287 Set some metadata
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-16 09:00:54 +01:00
Miek Gieben
6da97627a7 Make node id a property
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-16 08:47:17 +01:00
Miek Gieben
acd0b73a49 Add more options to the plugin
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-16 07:15:09 +01:00
Miek Gieben
c2594d1768 remove fmt
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-15 20:34:58 +01:00
Miek Gieben
e24c9703e5 Its working
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-15 20:33:53 +01:00
Miek Gieben
1652395efa Check everything in
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-15 17:26:09 +01:00
Miek Gieben
5f2d5788b0 Its working
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-15 16:37:18 +01:00
Miek Gieben
cf478b0aed more
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-14 10:56:09 +01:00
Miek Gieben
0090269744 more debugging
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-14 09:10:21 +01:00
Miek Gieben
b5008763c9 This does something
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-13 11:51:06 +01:00
Miek Gieben
519ef9ca79 more
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-13 11:21:20 +01:00
Miek Gieben
722133881b more
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-12 16:06:06 +01:00
Miek Gieben
2221b6160c sign: add expiration jitter (#3588)
* add expiration jitter

Signed-off-by: Miek Gieben <miek@miek.nl>

* sign: add expiration jitter

This PR adds a expiration jitter to spread out zone re-signing even
more. The max is 5 extra days added when creating the signer for a
specific zone.

Also make the duration* constants private to clean up the godoc for this
plugin.

Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-12 04:56:57 -08:00
Miek Gieben
822e45ebb5 more doc updates
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-11 09:04:59 +01:00
Miek Gieben
3e095ad847 Add more to the README
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-11 08:48:30 +01:00
Miek Gieben
3de4ab3c0b Copy grpc xDS client from grpc-go
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-10 17:18:16 +01:00
Miek Gieben
99c7aa1ab0 add grpc-go code
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-10 16:58:08 +01:00
Miek Gieben
99c828c787 Start documenting xds
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-10 09:52:29 +01:00
Miek Gieben
d5c5ba010c Add traffic plugin
This allows for advanced loadbalancing and maybe geoIP loadbalancing.

Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-09 17:07:22 +01:00
Zheng Xie
f81f28d97b plugin/cache: update comment to conform to the implementation (#3573)
Signed-off-by: zheng xie <xiez1989@gmail.com>
2020-01-03 14:26:53 +01:00
Jonathan Nagy
e3266d24f7 Resolve TXT records via CNAME (#3557)
* Add test case for TXT lookup via CNAME

Signed-off-by: Jonathan Nagy <nagytech@users.noreply.github.com>

* Return HostType of explicit TXT records

Signed-off-by: Jonathan Nagy <nagytech@users.noreply.github.com>

* Adapt TXT method lookup to allow lookup via CNAME

Signed-off-by: Jonathan Nagy <nagytech@users.noreply.github.com>

* Implement lookup of TXT records via CNAME

Signed-off-by: Jonathan Nagy <nagytech@users.noreply.github.com>
2020-01-03 14:16:04 +01:00
Zou Nengren
99e7c3dee7 registry cache_miss logic (#3578)
Signed-off-by: zouyee <zounyee1989@gmail.com>
2020-01-03 10:06:37 +01:00
Miek Gieben
fc546cf129 doc: fix generated manual pages (#3571)
Went over all generated manual pages and fixed some markdown issues,
mostly escaping "_" to avoid underlining entire paragraphs.

Some textual fixes in route53 and other cloud DNS plugins.

Regenerated the markdown with mmark.

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-12-29 13:35:17 +01:00
Antonio Ojea
e1cf9ccdab Bump kubernetes plugin schema version (#3554)
The Kubernetes DNS specification schema version was
updated to 1.1.0 in order to support IPv6

Signed-off-by: Antonio Ojea <antonio.ojea.garcia@gmail.com>
2019-12-19 09:34:03 -05:00
Zou Nengren
dded126317 bump k8s releated library (#3552)
Signed-off-by: zouyee <zounengren@cmss.chinamobile.com>
2019-12-18 05:32:00 -08:00
Zou Nengren
5e04c27238 Dedup policy implement between grpc and proxy plugin (#3537)
Signed-off-by: zouyee <zounengren@cmss.chinamobile.com>
2019-12-17 08:15:31 +00:00
Yong Tang
a34d564c07 Remove trailing whitespace as otherwise make check fails (#3515)
This PR removes trailing whitespace as otherwise `make check` fails

This PR fixes 3513

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2019-12-07 15:47:18 +00:00
Miek Gieben
a53321d9d6 plugin/sign: fix signing of authoritative data (#3479)
Don't sign data we are not authoritative for. This adds an AuthWalk
which skips names we should not authoritative for. Adds a few tests to
check this is the case. Generates zones have been compared to
dnssec-signzone.

A number of changes have been made:

* don't add DS records to the apex
* NSEC TTL is the SOA's minttl value (copying bind9)
* Various cleanups
* signer struct was cleaned up: doesn't need ttl, nor expiration or
  inception.
* plugin/sign: remove apex stuff from names()
  This is never used because we will always have other types in the
  apex, because we *ADD* them ourselves, before we sign (DNSKEY, CDS and
  CDNSKEY).

Signed-off-by: Miek Gieben <miek@miek.nl>
Co-Authored-By: Chris O'Haver <cohaver@infoblox.com>
2019-12-06 19:54:31 +00:00
Zou Nengren
799dce4bff redirect handler for pprof index (#3503)
Signed-off-by: zouyee <zounengren@cmss.chinamobile.com>
2019-12-06 19:04:49 +00:00
Zou Nengren
13fca02316 use pkg/reuseport in rest plugins (#3492)
Automatically submitted.
2019-12-06 10:55:40 +00:00
Gonzalo Paniagua Javier
b4df2d0d4c Add a serve_stale option for plugin/cache (#3468)
Automatically submitted.
2019-11-29 15:17:50 +00:00
Miek Gieben
24176a97e6 Move to CODEOWNERS (#3489)
* Move to CODEOWNERS

No change in who own what; just a move to CODEOWNERS. This allows
dreck cleanups.

Added .dreck.yaml for alias and exec.

Fixes: #3486

Signed-off-by: Miek Gieben <miek@miek.nl>

* stickler bot

Signed-off-by: Miek Gieben <miek@miek.nl>

* sort the file

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-11-29 13:17:05 +00:00
Zou Nengren
768ca99c57 Fix reloading in health and ready (#3473)
Signed-off-by: zouyee <zounengren@cmss.chinamobile.com>
2019-11-20 12:14:37 +00:00
Gonzalo Paniagua Javier
f91c55d6cd Fix reloading in plugin/pprof. (#3454)
* Fix reloading in plugin/pprof.

Reloading the server without changing the listen address results in an
error because Startup is called for newly set up plugins before Shutdown
is called for the old ones.

Signed-off-by: Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>

* Use pkg/reuseport when listening.

Use coredns' newly added reuseport.

Signed-off-by: Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>

* Revert go.{mod,sum} changes.

Signed-off-by: Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
2019-11-18 07:58:00 +00:00
Yong Tang
f100d61183 Fix incorrect sample configuration in clouddns (#3457)
Automatically submitted.
2019-11-17 18:53:10 +00:00
Miek Gieben
e14e053d3d create pkg/reuseport (#3455)
* create pkg/reuseport

Move the core server listening functions to a new package so plugins can
use them.

Also make *all* servers use the functions here; as only the udp/tcp
listeners where using SO_REUSEPORT (if available). This is the only
actual change in this PR; in it's core it's just a move of 2 files.

This can also be used to cleanup the dance we're doing now for
re-acquiring the sockets in e.g. the metrics plugins and the ready
plugin.

Signed-off-by: Miek Gieben <miek@miek.nl>

* Also push a small doc update

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-11-16 18:02:46 -08:00
Miek Gieben
4831e7f947 bufsize: go gen and docs (#3449)
Run 'go generate' and 'make -f Makefile.doc' to generate the chaos
plugin author list and update the manual pages.

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-11-15 07:45:09 -08:00
Miek Gieben
1e3330c12b pkg/fall: add (a lot of) guidance (#3450)
update the pkg doc to talk about various trade off

Fixes #2723

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-11-15 09:14:29 -05:00
Chris O'Haver
672992751e plugin/bufsize: remove trailing whitespace (#3444) 2019-11-14 16:13:49 +00:00
Kohei Yoshida
8cc034eece plugin/bufsize: add usecase description (#3437)
* add usecase

Signed-off-by: yukihira <yukihira.lab@gmail.com>

* fix some comments

Signed-off-by: ykhr53 <yukihira.lab@gmail.com>
2019-11-14 07:37:45 +00:00
Kohei Yoshida
1743ca3f02 add OWNERS file (#3441)
Signed-off-by: yukihira <yukihira.lab@gmail.com>
2019-11-13 09:49:24 +00:00