Commit Graph

1944 Commits

Author SHA1 Message Date
Miek Gieben
b8a0b52a5e plugin/sign: a plugin that signs zone (#2993)
* plugin/sign: a plugin that signs zones

Sign is a plugin that signs zone data (on disk). The README.md details
what exactly happens to should be accurate related to the code.

Signs are signed with a CSK, resigning and first time signing is all
handled by *sign* plugin.

Logging with a test zone looks something like this:

~~~ txt
[INFO] plugin/sign: Signing "miek.nl." because open plugin/sign/testdata/db.miek.nl.signed: no such file or directory
[INFO] plugin/sign: Signed "miek.nl." with key tags "59725" in 11.670985ms, saved in "plugin/sign/testdata/db.miek.nl.signed". Next: 2019-07-20T15:49:06.560Z
[INFO] plugin/file: Successfully reloaded zone "miek.nl." in "plugin/sign/testdata/db.miek.nl.signed" with serial 1563636548
[INFO] plugin/sign: Signing "miek.nl." because resign was: 10m0s ago
[INFO] plugin/sign: Signed "miek.nl." with key tags "59725" in 2.055895ms, saved in "plugin/sign/testdata/db.miek.nl.signed". Next: 2019-07-20T16:09:06.560Z
[INFO] plugin/file: Successfully reloaded zone "miek.nl." in "plugin/sign/testdata/db.miek.nl.signed" with serial 1563637748
~~~

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

* Adjust readme and remove timestamps

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

* Comment on the newline

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

* Update plugin/sign/README.md

Co-Authored-By: Michael Grosser <development@stp-ip.net>
2019-08-29 15:41:59 +01:00
Miek Gieben
eec24cb013 notes: rebrand 1.7.0 as 1.6.3 (#3217)
We're not making any backward incompat changes so this can just be 1.6.3

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-28 08:12:33 -07:00
Miek Gieben
2cb017928c plugin/etcd: clarify it's not a generic backend (#3220)
* plugin/etcd: clarify it's not a generic backend

Clarify the docs that this is not a generic backend.

Wrap it on 80 columns as well.

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

* Update plugin/etcd/README.md

Co-Authored-By: Chris O'Haver <cohaver@infoblox.com>

* Update plugin/etcd/README.md

Co-Authored-By: Chris O'Haver <cohaver@infoblox.com>
2019-08-28 14:59:00 +01:00
Miek Gieben
6fdf130b67 pkg/log: remove timestamp (#3218)
journald timestamps, kubernetes timestamps, syslog timestamps. It seems
silly to add our own timestamps to the logging output as these external
ones *also* do it. Only when just running coredns this might be weird.

Remove the timestamping from pkg/log.

Remove test that tested for this.

Fixes: #3211

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-28 09:41:11 -04:00
AllenZMC
4fca3b0fb0 fix mis-spelling in pcap.go (#3222) 2019-08-28 09:34:48 -04:00
陈谭军
df6235995b fix the-the mistake (#3216) 2019-08-28 07:18:33 +01:00
Miek Gieben
efcc3758dd plugin/etcd: fully move to go.etcd.io (#3215)
This is needed as well to make it compile cleanly. Follow up to #3214.

Manually removed github.com/coreos/etcd/ from go.mod

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-27 16:58:35 +01:00
Miek Gieben
06b61a17c8 update etcd to 3.4.0rc2 (#3214)
This moves the entire etcd to go.etcd.io, so that it compiles cleanly
when using bazel.

Fixes: #3087

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-27 08:01:58 -07:00
Miek Gieben
87bd9dec85 plugin/file: less notify logging spam (#3212)
Say once that we've sent notifies, instead of for every upstream
primary.

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-27 13:54:23 +00:00
Miek Gieben
364478eb33 release: initial release notes (#3204)
* release: initial release notes

Core of the release notes.

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

* typo

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

* review

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

* spell check

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-27 13:12:53 +00:00
AllenZMC
55160492cd fix mis-spelling in request.go (#3213) 2019-08-27 09:01:17 -04:00
Chris O'Haver
f491880d68 plugin/kubernetes: Restore k8s.io/client-go to v12.0.0 (#3209)
* bump k8s.io/client-go and azure/go-autorest

* bump azure

* bump azure 2
2019-08-27 06:19:48 +00:00
Chris O'Haver
f189dba69d Update README.md (#3207) 2019-08-26 09:27:18 -07:00
Chris Aniszczyk
73391f639d SECURITY.md to take advantage of GitHub features (#3206)
https://help.github.com/en/articles/adding-a-security-policy-to-your-repository
https://help.github.com/en/articles/about-maintainer-security-advisories

Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
2019-08-26 09:13:07 -07:00
xieyanker
9fe7fb95c6 return standardized text for ready and health endpoint (#3195) 2019-08-26 10:31:24 +00:00
li mengyang
dd8238ba9b fix spelling mistakes (#3202)
Signed-off-by: hwdef <hwdef97@gmail.com>
2019-08-26 09:33:57 +00:00
Miek Gieben
2332467b87 Fuzz: fix forward build (#3200)
* Fuzz: fix forward build

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

* Flag not released yet, wget quiet

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-26 09:33:20 +00:00
dependabot-preview[bot]
295be732ac build(deps): bump github.com/coreos/etcd (#3199)
Bumps [github.com/coreos/etcd](https://github.com/coreos/etcd) from 3.3.13+incompatible to 3.3.15+incompatible.
- [Release notes](https://github.com/coreos/etcd/releases)
- [Changelog](https://github.com/etcd-io/etcd/blob/master/CHANGELOG-3.4.md)
- [Commits](https://github.com/coreos/etcd/compare/v3.3.13...v3.3.15)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-26 08:26:32 +00:00
dependabot-preview[bot]
934e3721fb build(deps): bump github.com/aws/aws-sdk-go from 1.23.3 to 1.23.8 (#3198)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.23.3 to 1.23.8.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.23.3...v1.23.8)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-26 08:26:12 +00:00
Miek Gieben
aeb27bdb5b plugin/file: close reader for reload (#3196)
This reloader didn't close the openened file handle. Add a close. Can't
use `defer` because this is in a endless loop.

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-26 08:25:02 +00:00
dependabot-preview[bot]
d4cef05d0f build(deps): bump google.golang.org/api from 0.8.0 to 0.9.0 (#3197)
Bumps [google.golang.org/api](https://github.com/google/google-api-go-client) from 0.8.0 to 0.9.0.
- [Release notes](https://github.com/google/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/master/CHANGES.md)
- [Commits](https://github.com/google/google-api-go-client/compare/v0.8.0...v0.9.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-26 08:19:35 +00:00
Miek Gieben
8bc4b85b1f fuzz: use new fuzzit (#3193)
Upgrade to new version and add if-not-exists to the cmdline

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-26 08:15:05 +00:00
Miek Gieben
d65cd709cd plugin/file: respond correctly to IXFR message (#3177)
* plugin/file: respond correctly to IXFR message

Respond with a sing SOA record to an IXFR request if the SOA serials
match.

The added test fails on the current code with:

~~~
=== RUN   TestIxfrResponse
--- FAIL: TestIxfrResponse (0.00s)
    secondary_test.go:122: Expected answer section with single RR
FAIL
exit status 1
~~~

And obviously passes with the new code. This should cut down on the
weird number of zone transfers that I was seeing. At some point IXFR
support might be cool.

Fixes: #3176

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

* reuse code

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

* Sligtht tweaks

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-26 08:14:43 +00:00
Miek Gieben
e08d3335b0 fuzz: revert setup function (#3189)
This can't be used in its current form; revert the entire PR.

Revert "fuzzing: allow setup function to be called (#3175)"

This reverts commit 62451fd3eb.
2019-08-25 19:01:35 +00:00
Miek Gieben
793bd32499 plugin/forward: add fuzzing (#3188)
* plugin/forward: add fuzzing

Add fuzz.go for forward

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

* Make it compile

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-25 19:00:59 +00:00
Muhammad Falak R Wani
01ccbbb12d fuzz: use gofuzz build tag instead of fuzz (#3185)
* fuzz: use gofuzz build tag instead of fuzz

Since go-fuzz does not support Go modules yet, vendor dependencies.

Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>

* fuzz: avoid vendoring code for go-fuzz

Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
2019-08-25 13:02:44 +00:00
Miek Gieben
7219bce285 testing: TCPServer was only used in secondary_test.go (#3186)
TCPServer was only used in secondary_test.go and even there it wasn't
needed. Remove the file.

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-25 12:59:44 +00:00
Miek Gieben
07748d0c34 go report card fixes (#3182)
Went over the list at https://goreportcard.com/report/github.com/coredns/coredns
and removed/fix some code to make it slightly happier.

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-24 18:14:25 +00:00
Miek Gieben
62451fd3eb fuzzing: allow setup function to be called (#3175)
This allows to fuzzing of more interesting targets that require setup.

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-24 18:13:47 +00:00
Chris O'Haver
59e74eb15d correct test and code (#3184) 2019-08-23 11:51:42 -07:00
Chris O'Haver
338d148c78 plugin/k8s_external/kubernetes: handle NS records (#3160)
* fix external ns records

* use k8s service name for ns record

* update test, add func comment

* expand nsAddrs() test cases

* support local ipv6 ip

* use less confusing pod ip in test
2019-08-23 16:54:06 +00:00
Sakura
84988ce2c2 fix typo in ADOPTERS.md (#3181)
Signed-off-by: Sakura <longfei.shang@daocloud.io>
2019-08-23 06:50:54 +00:00
Sakura
88faf63017 fix typo in coredns-1.0.1.md (#3179)
Signed-off-by: Sakura <longfei.shang@daocloud.io>
2019-08-23 06:29:39 +00:00
wwgfhf
1590320ff2 fix typo (#3180) 2019-08-23 06:29:17 +00:00
Miek Gieben
9f49d694e9 fuzz: fix rewrite crash by fixing fuzz/do.go (#3178)
Automatically submitted.
2019-08-22 18:49:22 +00:00
xieyanker
f8e0ae6330 fix typo "dnstop" >> "dnstap" (#3170) 2019-08-22 16:44:25 +00:00
Guangming Wang
7918190901 Cleanup: fix some typos in code comment (#3172)
Signed-off-by: Guangming Wang <guangming.wang@daocloud.io>
2019-08-22 14:35:55 +00:00
AllenZMC
434ac69a03 fix wrong spells in parse_test.go (#3173) 2019-08-22 09:59:12 -04:00
Chris O'Haver
3f47fc8ba4 typo fixes (#3169)
* spelling fixes

* its/it's
2019-08-21 16:08:55 -04:00
Sakura
6881d6d585 fix typo in coredns-006.md (#3168)
Signed-off-by: Sakura <longfei.shang@daocloud.io>
2019-08-21 12:15:11 -04:00
Yong Tang
1b3fb834da Revert "Validate zone during normalization (#3165)" (#3167)
This reverts commit f888c5f7f6.
2019-08-21 11:01:45 -04:00
Julien Garcia Gonzalez
f888c5f7f6 Validate zone during normalization (#3165) 2019-08-21 06:34:21 -07:00
AllenZMC
27f44f60ee fix mis-spelling in clouddns.go (#3166) 2019-08-21 06:16:00 -07:00
AllenZMC
25632d6a23 fix mis-spelling in owners_generate.go (#3159) 2019-08-20 13:00:19 +00:00
Yong Tang
eae97e84ae Update replace statement in go.mod: (#3157)
```
replace github.com/miekg/dns v1.1.3 => github.com/miekg/dns v1.1.16
```

so that we only end up with one version of github.com/miekg/dns
(caddy still use 1.1.3)

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2019-08-19 18:06:51 +00:00
dependabot-preview[bot]
297299e308 build(deps): bump github.com/miekg/dns from 1.1.15 to 1.1.16 (#3153)
Bumps [github.com/miekg/dns](https://github.com/miekg/dns) from 1.1.15 to 1.1.16.
- [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.15...v1.1.16)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-19 08:58:34 -07:00
dependabot-preview[bot]
960474aab9 build(deps): bump github.com/aws/aws-sdk-go from 1.22.3 to 1.23.3 (#3151)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.22.3 to 1.23.3.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.22.3...v1.23.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-19 08:58:16 -07:00
dependabot-preview[bot]
9f950d8bac build(deps): bump github.com/Azure/go-autorest/autorest/azure/auth (#3150)
Bumps [github.com/Azure/go-autorest/autorest/azure/auth](https://github.com/Azure/go-autorest) from 0.1.0 to 0.3.0.
- [Release notes](https://github.com/Azure/go-autorest/releases)
- [Changelog](https://github.com/Azure/go-autorest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Azure/go-autorest/compare/logger/v0.1.0...tracing/v0.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-19 08:25:10 -07:00
dependabot-preview[bot]
66a9c7b82a build(deps): bump google.golang.org/grpc from 1.22.0 to 1.23.0 (#3155)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.22.0 to 1.23.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.22.0...v1.23.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-19 07:54:18 -07:00
dependabot-preview[bot]
95f412a5be build(deps): bump google.golang.org/api from 0.7.0 to 0.8.0 (#3154)
Bumps [google.golang.org/api](https://github.com/google/google-api-go-client) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/google/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/master/CHANGES.md)
- [Commits](https://github.com/google/google-api-go-client/compare/v0.7.0...v0.8.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-19 07:54:07 -07:00