Commit graph

2842 commits

Author SHA1 Message Date
dependabot[bot]
efc9203c38
build(deps): bump github.com/golang/protobuf from 1.4.3 to 1.5.2 (#4575)
Bumps [github.com/golang/protobuf](https://github.com/golang/protobuf) from 1.4.3 to 1.5.2.
- [Release notes](https://github.com/golang/protobuf/releases)
- [Commits](https://github.com/golang/protobuf/compare/v1.4.3...v1.5.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-21 09:50:47 -07:00
dependabot[bot]
994fd83681
build(deps): bump github.com/Azure/azure-sdk-for-go (#4579)
Bumps [github.com/Azure/azure-sdk-for-go](https://github.com/Azure/azure-sdk-for-go) from 53.1.0+incompatible to 53.3.0+incompatible.
- [Release notes](https://github.com/Azure/azure-sdk-for-go/releases)
- [Changelog](https://github.com/Azure/azure-sdk-for-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Azure/azure-sdk-for-go/compare/v53.1.0...v53.3.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-21 09:50:35 -07:00
milgradesec
76eeae01ec
Enable DependaBot (#4571)
* Create dependabot.yml

Signed-off-by: milgradesec <38557680+milgradesec@users.noreply.github.com>

* Update dependabot.yml

Signed-off-by: milgradesec <38557680+milgradesec@users.noreply.github.com>
2021-04-21 09:24:16 -07:00
Yong Tang
cedf6ffddc
Disable CodeCov on commit push (#4572)
As commit push holds write access of GITHUB_TOKEN, we may
want to limit the scope of third-party test run.

This PR disable CodeCov on commit push. Pull request is still
ok.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2021-04-16 07:38:42 -07:00
coredns[bot]
52440be79e auto go mod tidy
Signed-off-by: coredns[bot] <bot@bot.coredns.io>
2021-04-14 10:30:48 +00:00
Yong Tang
6cbd6fdb1f
Update dependencies (#4569)
As dependabot has been failing for some time,
this PR manually updates all dependencies when possible.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2021-04-09 14:41:57 -04:00
Chris O'Haver
9e7fe18088
Manually update k8s.io packages to k8s 1.21 api v0.21.0 (#4567) 2021-04-09 06:40:25 -07:00
Miek Gieben
13cef2ee09
plugin/dnssec: use entire RRset as key input (#4537)
* plugin/dnssec: use entire RRset as key input

This uses the entire rrset as input for the hash key; this is to detect
differences in the RRset and generate the correct signature.

As this would then lead to unbounded growth, we periodically (every 8h)
prune the cache of old entries. In theory we could rely on the random
eviction, but it seems nicer to do this in a maintannce loop so that we
remove the unused ones. This required adding a Walk function to the
plugin/pkg/cache.

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

* Update plugin/dnssec/cache.go

Co-authored-by: Chris O'Haver <cohaver@infoblox.com>

Co-authored-by: Chris O'Haver <cohaver@infoblox.com>
2021-04-05 06:45:28 -07:00
cuirunxing-hub
454bc9e0b9
typos correct (#4560)
Signed-off-by: cuirunxing-hub <cuirunxing@inspur.com>
2021-04-05 09:34:25 -04:00
Chris O'Haver
9f72db12e7
plugin/kubernetes: do endpoint/slice check in retry loop (#4492)
* do endpoint/slice check in retry loop

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-03-26 08:54:39 -04:00
Mohammad Yosefpor
ea41dd23a0
plugin/bind: exclude interface or ip address (#4543)
* plugin/bind: exclude interface or ip address

Signed-off-by: Mohammad Yosefpor <myusefpur@gmail.com>

* fix README.md

Signed-off-by: Mohammad Yosefpor <myusefpur@gmail.com>

* Apply suggestions, Fix test

Signed-off-by: Mohammad Yosefpor <myusefpur@gmail.com>

* Apply suggestions, move errs to setup

Signed-off-by: Mohammad Yosefpor <myusefpur@gmail.com>
2021-03-25 16:38:17 +01:00
Frank Riley
5b9b079dab
Add cache eviction metrics to the cache plugin (#4411)
Signed-off-by: Frank Riley <fhriley@gmail.com>
2021-03-21 16:58:16 +01:00
Miek Gieben
ed3f287fe8
metrics: remove RR type (#4534)
To combat label cardinality explosions remove the type from metrics.
This was most severe in the histogram for request duration, remove it
there.

It's also highlighted difference between grpc and forward code, where
forward did use type and grpc didn't; getting rid of all that "fixes"
that discrepancy

Move monitor.go back into the vars directory and make it private again.
Also name it slightly better

Fixes: #4507

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-03-19 12:59:26 +01:00
Miek Gieben
634e3fe8f5
plugin/health: add logging for local health request (#4533) 2021-03-19 03:40:38 -07:00
Miek Gieben
8faca26873
plugin/bind: tweak error messages (#4532)
When the interface doesn't exist you get:

plugin/bind: not a valid IP address: eth0

Fix the wording that this can also be interface name. Also %q the
argument in the error mesg.

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-03-18 15:39:40 +01:00
Mohammad Yosefpor
deb09c8905
plugin/bind: Discard link-local addresses on binding by interface name (#4531)
* Discard link-local addresses on binding

Signed-off-by: Mohammad Yosefpor <myusefpur@gmail.com>

* Update plugin/bind: README.md

Signed-off-by: Mohammad Yosefpor <myusefpur@gmail.com>

* Except for IPv6 link-local only

Signed-off-by: Mohammad Yosefpor <myusefpur@gmail.com>
2021-03-18 10:54:57 +01:00
Miek Gieben
1b2f0bef6f
workflow: move committing workflows to schedule (#4529)
This moves all workflows that commit to a schedule, so that it _doesn't_
push into peoples PRs as that enlarges them and is just non-obvious.

They run throughout the week.

Also change the "user" we use for this, so that DCO believes it a real
email address (DCO is pretty stupid here). Update the authors target to
filter out this bot as well.

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-03-18 09:53:46 +01:00
coredns-auto-go-mod-tidy[bot]
3933b46fb9 auto make -f Makefile.doc
Signed-off-by: coredns-auto-go-mod-tidy[bot] <coredns-auto-go-mod-tidy[bot]@users.noreply.github.com>
2021-03-18 06:39:10 +00:00
Mohammad Yosefpor
61b5cdb352
plugin/bind: Bind by interface name (#4522)
* auto make -f Makefile.doc

Signed-off-by: Mohammad Yosefpor <myusefpur@gmail.com>

* Bind by interface name

Signed-off-by: Mohammad Yosefpor <myusefpur@gmail.com>

* README.md: Interface with multiple address

Signed-off-by: Mohammad Yosefpor <myusefpur@gmail.com>

* auto make -f Makefile.doc

Signed-off-by: Mohammad Yosefpor <myusefpur@gmail.com>

* auto make -f Makefile.doc

Signed-off-by: Mohammad Yosefpor <myusefpur@gmail.com>

* Elaborate more on the behaviour in README.md, revert man/*, fix tests

Signed-off-by: Mohammad Yosefpor <myusefpur@gmail.com>

* auto make -f Makefile.doc

Signed-off-by: Mohammad Yosefpor <myusefpur@gmail.com>

* --sign-off

Revert man/* to fix DCO check

Signed-off-by: Mohammad Yosefpor <myusefpur@gmail.com>

* auto make -f Makefile.doc

* Revert man/* to fix DCO check

Signed-off-by: Mohammad Yosefpor <myusefpur@gmail.com>

Co-authored-by: coredns-auto-go-mod-tidy[bot] <coredns-auto-go-mod-tidy[bot]@users.noreply.github.com>
2021-03-18 07:38:48 +01:00
Miek Gieben
5457cdcd4b
workflow: sign commits (#4526)
This doesn't do much, but at least it doesn't litter PRs with non-signed
commits. This should keep the DCO clean(er)

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-03-17 14:16:17 +01:00
coredns-auto-go-mod-tidy[bot]
5a40a2cd63 auto make -f Makefile.doc 2021-03-16 12:51:42 +00:00
Chris O'Haver
929aa3886e
add metadata section to docs (#4525)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-03-16 13:51:21 +01:00
Chris O'Haver
32cc745dc2
add forward/upstream metadata (#4521)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-03-16 13:34:22 +01:00
Miek Gieben
a2b34a233d
workflow: guard against faillint failing (#4524)
So there is (and will always) be a disconnect between latest Go in the
workflow and the actual latest Go used by other utils. Faillint move to
go 1.16 features and for some reason this now borkes.

Add ||true to allow failling to not compile, this will skip that
particular test (so be it)

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-03-16 11:11:12 +01:00
coredns-auto-go-mod-tidy[bot]
2e2eec3448 auto go mod tidy 2021-03-16 09:58:50 +00:00
dependabot-preview[bot]
2712ab7cb0
build(deps): bump github.com/miekg/dns from 1.1.38 to 1.1.40 (#4498)
Bumps [github.com/miekg/dns](https://github.com/miekg/dns) from 1.1.38 to 1.1.40.
- [Release notes](https://github.com/miekg/dns/releases)
- [Changelog](https://github.com/miekg/dns/blob/master/Makefile.release)
- [Commits](https://github.com/miekg/dns/compare/v1.1.38...v1.1.40)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-16 10:58:13 +01:00
Miek Gieben
a9aedb79cf
plugin/minimal: fix import path (#4523)
presubmit failing, fix import path.

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-03-16 10:55:21 +01:00
coredns-auto-go-mod-tidy[bot]
e4c9daf3aa auto make -f Makefile.doc 2021-03-15 14:42:45 +00:00
Miek Gieben
064d6cdd0a
Revert "plugin/sign: track zone file's mtime (#4431)" (#4511)
This reverts commit c4720b8ad2.
2021-03-15 15:42:13 +01:00
coredns-auto-trailing-whitespaces[bot]
c04d112b83 auto remove trailing whitespaces 2021-03-15 14:38:14 +00:00
Soumya Ghosh Dastidar
7651e6c4de
Added minimal-responses plugin (#4417)
* Added minimal-responses plugin

Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com>

* Removed unnecessary comments

* Updated tests

Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com>

* Reformated imports

Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com>

* Updated package name

Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com>

* Removed  unnecessary comments

Co-authored-by: Miek Gieben <miek@miek.nl>

* Added changes

Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com>

* updated

Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com>

* Updated comment for NextOrFailure

Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com>

* Updated to test.Case for testing

Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com>

* Formated imports using goimports

Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com>

Co-authored-by: Miek Gieben <miek@miek.nl>
2021-03-15 15:37:55 +01:00
Miek Gieben
74ef6e00f1
transfer: reply with refused (#4510)
* transfer: reply with refused

When the *transfer* plugin is not loaded and of the handlers will still
see the AXFR/IXFR request because it is not intercepted.

They need to reply with REFUSED in that case. Update file, auto and k8s
to do this. Add testcase in the file plugin.

Ideally *erratic* should be moved over as well, but maybe that's
*erratic*

This is a bug fix.

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

* import path

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-03-09 12:17:34 -08:00
Miek Gieben
c27605797b
Use latest Go version (#4505)
Update go.mod to 1.16 and make the workflows default to the latest
available.

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-03-09 09:16:05 -08:00
coredns-auto-go-mod-tidy[bot]
94e027cd6f auto make -f Makefile.doc 2021-03-08 11:15:45 +00:00
Miek Gieben
ec9e8168e5
plugin/file: add small zonefile example (#4509)
Watching TGI Kubernetes 147 and it helps to show a small zonefile
example in the documentation.

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-03-08 12:15:20 +01:00
Paco Xu
93c57b613d
Correct the link to dnstap plugin in release note (#4503) 2021-03-03 22:56:42 -08:00
Miek Gieben
1df7daf995
Point to github discussion in issue template (#4491)
A generic question might be more suited for a discussion, add pointer to
the issue template.

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-02-25 09:46:47 -08:00
Miek Gieben
c2028e330f
plugin/kubernetes: don't return when ServerVersion return an error (#4490)
When err=nil try to determine the version of the k8s cluster and disable
endpoint slices. Don't return from connecting to the cluster.

In the future we should just default to true, and delete all this code.

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-02-25 18:14:57 +01:00
Chris O'Haver
4843cdfe1e
rebuild go.mod/sum with go mod download before go test (#4487)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-02-25 18:13:14 +01:00
Miek Gieben
9d3a84377c
Makefile.release: do a complete dry-run (#4488)
Just dry-run all important targets.

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-02-24 10:03:16 -08:00
Miek Gieben
4293992bb8
Up release to 1.8.3 (#4486)
See #4484

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-02-24 14:51:28 +01:00
Miek Gieben
6e50faa907
release: add 1.8.3 release notes (#4485)
Signed-off-by: Miek Gieben <miek@miek.nl>
2021-02-24 14:38:46 +01:00
Miek Gieben
f64d06e8b0
Fix release script (#4483)
Move the make syntax out of the shell syntax section and pull it to the
top of the file.

Also add notes on how to test this script. And yes Makefile syntax is
pretty horrible. Testing on a release machine with my personal docker
repo.

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-02-24 14:35:20 +01:00
coredns-auto-go-fmt[bot]
ff9b4bcb98 auto go fmt 2021-02-24 10:22:15 +00:00
Miek Gieben
d07a3ac6c2
Up to version 1.8.2 (#4482)
See #4479

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-02-24 11:21:58 +01:00
Miek Gieben
8fdd363c79
release notes for 1.8.2 (#4480)
Update the notes and set the date to tomorrow.

See #4479

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-02-24 09:23:54 +01:00
Miek Gieben
908622a664
Fix go-test yaml (#4481)
unsure why this only pops up, but the yaml was not correct for this
workflow. Randomly added whitespace until it parsed as proper yaml

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-02-23 14:12:00 +01:00
coredns-auto-trailing-whitespaces[bot]
f9b98a1d06 auto remove trailing whitespaces 2021-02-23 09:12:58 +00:00
slick-nic
0103931263
Rewrite SRV targets and additional names in response (#4287)
* Rewrite plugin - rewrite SRV targets and names in response answer and additional records

Signed-off-by: Nic Colledge <nic@njcolledge.net>

* Added README content to describe new behaviour

Signed-off-by: Nic Colledge <nic@njcolledge.net>

* Added more record types to rewrite handling based on PR/Issue feedback

Signed-off-by: Nic Colledge <nic@njcolledge.net>

* Updated README.md for plugin

Signed-off-by: Nic Colledge <nic@njcolledge.net>

* Updated unit tests.
Small refactor of getTarget... function.

Signed-off-by: Nic Colledge <nic@njcolledge.net>

* Refactor to add response value rewrite as answer value option

Signed-off-by: Nic Colledge <nic@njcolledge.net>

* Removed TODO comment, added test for NAPTR record.

Signed-off-by: Nic Colledge <nic@njcolledge.net>
2021-02-23 10:12:40 +01:00
Johnny Bergström
fe2b5f630d
doh: set http request in writer (#4445)
Makes it possible to read the current http request while serving DNS

Signed-off-by: Johnny Bergström <johnny@klaudify.se>
2021-02-17 20:45:04 +01:00