aboutsummaryrefslogtreecommitdiff
path: root/plugin (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-04-26dnstap: uses pointer receiver for small response writer (#6644)v1.11.3Gravatar Takeshi Yoneda 2-7/+7
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
2024-04-26[plugin/forward] Strip local zone from IPV6 nameservers (#6635)Gravatar Manuel Alejandro de Brito Fontes 2-1/+10
Signed-off-by: Alejandro de Brito Fontes <aledbf@gmail.com>
2024-04-09Return RcodeServerFailure when DNS64 has no next plugin (#6590)Gravatar Jared Baur 1-1/+1
If using a coredns config with only the dns64 plugin specified, the `Next` plugin that dns64 will attempt to call will be nil, resulting in a nil pointer dereference. We should return an error instead of crashing. Signed-off-by: Jared Baur <jaredbaur@fastmail.com>
2024-03-23chore: remove repetitive word (#6564)Gravatar James Kang 1-1/+1
2024-03-11Enable Prometheus native histograms (#6524)Gravatar Ben Kochie 7-42/+55
Add a NativeHistogramBucketFactor parameter to the use of `NewHistogramVec` in order to enable use of Prometheus Native Histograms. This will store automatically computed sparse buckets in CoreDNS. If a compatible Prometeus requests native histograms this data will returned instead of the static buckets. The default factor of 1.05 should provide high quality resolution data. Signed-off-by: SuperQ <superq@gmail.com>
2024-03-07forward: respect context (#6483)Gravatar Snawoot 1-1/+1
Signed-off-by: Vladislav Yarmak <vladislav-ex-src@vm-0.com>
2024-03-07add client labels to k8s plugin metadata (#6475)Gravatar miles-to-go 5-5/+24
Signed-off-by: Nolan Miles <nolanpmiles@gmail.com>
2024-03-07fix broken link in webpage (#6488)Gravatar Nakano Masaki 2-2/+2
Signed-off-by: Masaki Nakano <admin@namachan10777.dev>
2024-03-06removed the mutex locks with atomic bool (#6525)Gravatar jdamick 1-13/+5
Signed-off-by: Jeffrey Damick <jdamick@amazon.com> Co-authored-by: Jeffrey Damick <jdamick@amazon.com>
2024-01-09Fix typo in view plugin README.md (#6457)Gravatar Keita Kitamura 1-2/+2
Signed-off-by: keita <keitap@gmail.com>
2023-12-09rewrite: fix multi request concurrency issue in cname rewrite (#6407)Gravatar Amila Senadheera 2-11/+35
* fix concurrent issue with cname rewrite plugin Signed-off-by: amila <amila.15@cse.mrt.ac.lk> * add nil check before deref, add AAAA type test case Signed-off-by: amila <amila.15@cse.mrt.ac.lk> --------- Signed-off-by: amila <amila.15@cse.mrt.ac.lk>
2023-12-08plugin/tls: respect the path specified by root plugin (#6138)Gravatar Marius Kimmina 6-4/+84
* plugin/tls: respect the path specified by root plugin Signed-off-by: Marius Kimmina <mar.kimmina@gmail.com> * improve readme Signed-off-by: Marius Kimmina <mar.kimmina@gmail.com> --------- Signed-off-by: Marius Kimmina <mar.kimmina@gmail.com>
2023-12-04plugin/auto: warn when auto is unable to read elements of the directory tree ↵Gravatar Chris O'Haver 1-1/+4
(#6333) * warn when auto is unable to read elements of the directory tree Signed-off-by: Chris O'Haver <cohaver@infoblox.com> --------- Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2023-11-10plugin/etcd: the etcd client adds the DialKeepAliveTime parameter (#6351)Gravatar journey-c 1-2/+3
2023-11-10chore: use raw string () with regexp.MustCompile to avoid having to escape ↵Gravatar guangwu 1-1/+1
twice (#6396)
2023-11-10plugin/cache: key cache on Checking Disabled (CD) bit (#6354)Gravatar Grant Spence 5-276/+509
* plugin/cache: key cache on Checking Disabled (CD) bit Key the cache on CD bit, which effectively separates the entries for queries with CD disabled or enabled. Signed-off-by: Grant Spence <gspence@redhat.com>
2023-11-08Use the correct root domain name in the proxy plugin's TestHealthX tests (#6395)Gravatar Tom Thorogood 1-4/+4
When packing the empty domain name, miekg/dns can end up creating corrupt DNS messages. With some planned unpacking changes, this now trips an error condition and causes these tests to fail. Correct this by using the root domain explicitly as this gets correctly encoded on the wire. Signed-off-by: Tom Thorogood <me+github@tomthorogood.net>
2023-10-27Update expr from 1.13.0 to 1.15.3 (#6375)Gravatar Yong Tang 1-1/+1
Manually update expr to resolve test failures Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2023-09-07Handle UDP responses that overflow with TC bit with test case (#6277)Gravatar Sri Harsha 2-0/+133
Signed-off-by: SriHarshaBS001 <SriHarshaBS009@gmail.com>
2023-08-26plugin/rewrite: add rcode as a rewrite option (#6204)Gravatar pschou 4-0/+308
* plugin/forward add ignore_server_failure for masking upstream server faults Signed-off-by: schou <pschou@users.noreply.github.com> * Switch from a ignore_server_fail to a rewrite rcode type. Signed-off-by: schou <pschou@users.noreply.github.com> * trim down the tests Signed-off-by: schou <pschou@users.noreply.github.com> * fixing readme TTL and using map for rcode Signed-off-by: schou <pschou@users.noreply.github.com> * add newline Signed-off-by: schou <pschou@users.noreply.github.com> --------- Signed-off-by: schou <pschou@users.noreply.github.com>
2023-08-14Revert "plugin/forward: Continue waiting after receiving malformed responses ↵Gravatar Chris O'Haver 1-12/+2
(#6014)" (#6270) This reverts commit 604a902e2c7e0317aecaa3666124079c75a31573.
2023-08-14Plugin dnstap: add support for "extra" field in payload (#6226)Gravatar Yuheng 10-63/+195
* dnstap: add 'extra' field Signed-off-by: chenyuheng <chenyuheng99@qq.com> * dnstap: add setup_test for 'extra' field Signed-off-by: chenyuheng <chenyuheng99@qq.com> * udnstap: update document and test Signed-off-by: chenyuheng <chenyuheng99@qq.com> * dnstap: update setup_test for more coverage Signed-off-by: chenyuheng <chenyuheng99@qq.com> * dnstap: add TapMessageWithMetadata function to Dnstap Signed-off-by: chenyuheng <chenyuheng99@qq.com> * dnstap: adapt dnstap and forward plugins to use TapMessageWithMetadata Signed-off-by: chenyuheng <chenyuheng99@qq.com> * change TapMessageWithMetadata function Signed-off-by: chenyuheng <chenyuheng99@qq.com> * tab inconsistency fix Signed-off-by: chenyuheng <chenyuheng99@qq.com> * fix replacer to support empty state Signed-off-by: chenyuheng <chenyuheng99@qq.com> * add replacer test for empty status parameter Signed-off-by: chenyuheng <chenyuheng99@qq.com> * dnstap: update unit test for 'extra' field Signed-off-by: chenyuheng <chenyuheng99@qq.com> * clean up code Signed-off-by: chenyuheng <chenyuheng99@qq.com> * gofmt fix & static analysis fix Signed-off-by: chenyuheng <chenyuheng99@qq.com> * dnstap: refactor Signed-off-by: chenyuheng <chenyuheng99@qq.com> --------- Signed-off-by: chenyuheng <chenyuheng99@qq.com>
2023-08-14fix: remove unnecessary conversion (#6258)Gravatar Zhizhen He 14-19/+19
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
2023-08-10Fix typos (#6235)Gravatar Zhizhen He 11-14/+15
* Fix typos and add todo to fix spelling of dnsutil.MaximumDefaulTTL Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
2023-08-09fix keepttl parsing (#6250)Gravatar Chris O'Haver 1-0/+1
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2023-07-31[RFC-9250]: Add QUIC server support (#6182)Gravatar João Henri 5-0/+17
Add DNS-over-QUIC server Signed-off-by: jaehnri <joao.henri.cr@gmail.com> Signed-off-by: João Henri <joao.henri.cr@gmail.com>
2023-07-30implement Name function on secondary plugin (#6230)Gravatar Diogenes Pelisson 1-0/+3
Signed-off-by: Diogenes Pelisson <diogenes.pelisson@gmail.com>
2023-07-10Change default value to 1232 (#6183)Gravatar Petr Menšík 3-10/+16
* Change default value to 1232 As specified by DNS flag day 2020, good and decent default value avoiding fragmentation issues should be 1232. It is quite likely 1500 would work reliably on local ethernet networks. Value 512 is set implicitly and must be used for all clients, which did not include OPT RR with explicit value they support. Since MR #5368 it should work correctly. Signed-off-by: Petr Menšík <pemensik@redhat.com> * Adapt bufsize test to new default value Check also buffer size smaller than legacy value is not accepted. Signed-off-by: Petr Menšík <pemensik@redhat.com> * Update bufsize documentation Mention also increasing request size is not possible, it can only reduce the accepted size. Signed-off-by: Petr Menšík <pemensik@redhat.com> --------- Signed-off-by: Petr Menšík <pemensik@redhat.com>
2023-07-04Fix forward metrics for backwards compatibility (#6178)Gravatar Pat Downey 14-78/+87
2023-06-26fix ports panic (#6179)Gravatar rokkiter 1-2/+13
Signed-off-by: rokkiter <101091030+rokkiter@users.noreply.github.com>
2023-06-19plugin/kubernetes: filter ExternalName services from matching double ↵Gravatar Dan Wilson 2-2/+10
subdomain wildcard (#6162) remove double subdomain reference from review feedback not subdoman Signed-off-by: emaildanwilson <dan@controlplane.com> Co-authored-by: emaildanwilson <dan@controlplane.com>
2023-06-17test: use `t.TempDir` to create temporary test directory (#6164)Gravatar Eng Zer Jun 5-51/+24
2023-06-12plugin/kubernetes: Remove Endpoint and EndpointSlice v1beta Support (#6147)Gravatar Chris O'Haver 4-276/+1
* remove endpoint and endpointslicev1beta watch support Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * adjust readme Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * informer object changes Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * remove unused funcs Signed-off-by: Chris O'Haver <cohaver@infoblox.com> --------- Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2023-06-09replace reviewdog fully by golangci-lint (#6139)Gravatar Ondřej Benkovský 14-118/+119
Signed-off-by: Ondřej Benkovský <ondrej.benkovsky@jamf.com>
2023-06-07plugin/kubernetes: fix headless/endpoint query panics when endpoints are ↵Gravatar Chris O'Haver 2-50/+119
disabled (#6137) * always create listers, so we dont panic Signed-off-by: Chris O'Haver <cohaver@infoblox.com> --------- Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2023-06-01Revert "plugin/tls: respect the path specified by root plugin (#5944)" (#6136)Gravatar Chris O'Haver 4-26/+2
This reverts commit d0375bc0269eccb1966ccf38a9b43263d551dee4.
2023-06-01plugin/tls: respect the path specified by root plugin (#5944)Gravatar Marius Kimmina 4-2/+26
Signed-off-by: Marius Kimmina <mar.kimmina@gmail.com>
2023-05-29refactor: use standard library instead of `isIn` (#6125)Gravatar yyzxw 1-12/+3
Signed-off-by: yyzxw <1020938856@qq.com> Signed-off-by: xiaowu.zhu <xiaowu.zhu@daocloud.io>
2023-05-26plugin/forward: fix descriptions in README.md (#6123)Gravatar Justin 1-3/+3
Signed-off-by: Justin <cattyhouse@users.noreply.github.com>
2023-05-26add support unix socket for GRPC (#5943)Gravatar junhwong 7-1/+91
2023-05-25fuzz: fix forward plugin target (#6115)Gravatar Catena cyber 1-2/+3
Signed-off-by: Philippe Antoine <contact@catenacyber.fr>
2023-05-04Bump golang to 1.20.0 (#6070)Gravatar Ayato Tokubi 1-1/+1
Signed-off-by: Ayato Tokubi <atokubi@redhat.com>
2023-05-03Fix temp file close error (#6068)Gravatar Ben Kochie 1-7/+5
Avoid Go 1.20 test error by not attempting to close the testing temp file unless there was an error in Read(). * Use a CreateTemp() to create unique test files. * Defer the deletion of the temp file. Woarkaround for: https://github.com/golang/go/issues/59938 Signed-off-by: SuperQ <superq@gmail.com>
2023-04-29plugin/forward: Continue waiting after receiving malformed responses (#6014)Gravatar Chris O'Haver 1-2/+12
* forward: continue waiting after malformed responses Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * add test Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * fix test Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * clean up Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * clean up Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * move test to /test/. Add build tag. Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * install libpcap-dev for e2e tests Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * sudo the test Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * remove stray err check Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * disable the test Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * use -exec flag to run test binary as root Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * run new test by itself in a new workflow Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * fix test name Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * only for udp Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * remove libpcap test workflow action Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * remove test, since it cant run in ci Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * and remove gopacket package Signed-off-by: Chris O'Haver <cohaver@infoblox.com> --------- Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2023-04-25plugin/kubernetes: rename client-go metrics label "url" to "host" (#6040)Gravatar Yashpal 2-9/+9
2023-04-25fix some comments (#6052)Gravatar cui fliter 3-4/+4
Signed-off-by: cui fliter <imcusg@gmail.com>
2023-04-25Fix typo (#6053)Gravatar Dan Salmon 1-1/+1
2023-04-22plugin/dnssec: on delegation, sign DS or NSEC of no DS. (#5899)Gravatar jeremiejig 5-9/+365
* When returning NS for delegation point, we sign any DS Record or if not found we generate a NSEC proving absence of DS. This follow behaviour describe in rfc4035 (Section 3.1.4) * DS request at apex behave as before. * Fix edge case of requesting NSEC which prove that NSEC does not exist. Signed-off-by: Jeremiejig <me@jeremiejig.fr>
2023-04-22plugin/kubernetes: expose client-go internal request metrics (#5991)Gravatar Yashpal 2-0/+79
2023-04-20update informer for client-go 0.27 (#6038)Gravatar Chris O'Haver 3-7/+7
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>