├── .drone.yml ├── .golangci.yml ├── .revive.toml ├── LICENSE ├── README.md ├── go.mod ├── go.sum ├── https.go ├── https_test.go ├── metrics.go ├── policy.go ├── policy_test.go ├── proxy.go ├── proxy_test.go ├── setup.go └── setup_test.go /.drone.yml: -------------------------------------------------------------------------------- 1 | --- 2 | kind: pipeline 3 | type: docker 4 | name: coredns-https-ci 5 | 6 | trigger: 7 | ref: 8 | - refs/heads/main 9 | - refs/pull/*/head 10 | - refs/tags/* 11 | event: 12 | - push 13 | - tag 14 | - pull_request 15 | 16 | clone: 17 | depth: 1 18 | 19 | steps: 20 | - name: lint 21 | image: golangci/golangci-lint:v1.48-alpine 22 | volumes: 23 | - name: deps 24 | path: /go 25 | commands: 26 | - golangci-lint run -v 27 | - go install github.com/mgechev/revive@v1.2.3 28 | - revive -config .revive.toml -formatter friendly ./... 29 | 30 | - name: test 31 | image: golang:1.19-alpine 32 | environment: 33 | CGO_ENABLED: "0" 34 | volumes: 35 | - name: deps 36 | path: /go 37 | commands: 38 | - go test ./... -v -cover 39 | 40 | volumes: 41 | - name: deps 42 | temp: {} -------------------------------------------------------------------------------- /.golangci.yml: -------------------------------------------------------------------------------- 1 | linters: 2 | enable: 3 | - dogsled 4 | - errname 5 | - errorlint 6 | - exportloopref 7 | - funlen 8 | - gocognit 9 | - goconst 10 | - gocritic 11 | - gocyclo 12 | - gofmt 13 | - goimports 14 | - staticcheck 15 | - gosec 16 | - govet 17 | - misspell 18 | - nestif 19 | - prealloc 20 | - unconvert 21 | - unparam 22 | 23 | run: 24 | timeout: 5m 25 | 26 | issues: 27 | exclude-rules: 28 | - linters: 29 | - funlen 30 | - gosec 31 | path: _test\.go -------------------------------------------------------------------------------- /.revive.toml: -------------------------------------------------------------------------------- 1 | ignoreGeneratedHeader = false 2 | severity = "warning" 3 | confidence = 0.8 4 | errorCode = 1 5 | warningCode = 1 6 | 7 | #Recommended rules 8 | [rule.blank-imports] 9 | [rule.context-as-argument] 10 | [rule.context-keys-type] 11 | [rule.dot-imports] 12 | [rule.error-return] 13 | [rule.error-strings] 14 | [rule.error-naming] 15 | [rule.if-return] 16 | [rule.increment-decrement] 17 | [rule.var-naming] 18 | [rule.var-declaration] 19 | [rule.package-comments] 20 | [rule.range] 21 | [rule.receiver-naming] 22 | [rule.time-naming] 23 | [rule.unexported-return] 24 | [rule.indent-error-flow] 25 | [rule.errorf] 26 | [rule.empty-block] 27 | [rule.superfluous-else] 28 | [rule.unused-parameter] 29 | [rule.unreachable-code] 30 | [rule.redefines-builtin-id] 31 | 32 | #Custom rules 33 | [rule.modifies-parameter] 34 | [rule.unnecessary-stmt] 35 | [rule.modifies-value-receiver] 36 | [rule.range-val-in-closure] 37 | [rule.range-val-address] 38 | [rule.waitgroup-by-value] 39 | [rule.atomic] 40 | [rule.unused-receiver] 41 | [rule.early-return] 42 | [rule.unconditional-recursion] 43 | [rule.identical-branches] 44 | [rule.defer] -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # https 2 | 3 | [![Build Status](https://cloud.drone.io/api/badges/v-byte-cpu/coredns-https/status.svg)](https://cloud.drone.io/v-byte-cpu/coredns-https) 4 | [![GoReportCard Status](https://goreportcard.com/badge/github.com/v-byte-cpu/coredns-https)](https://goreportcard.com/report/github.com/v-byte-cpu/coredns-https) 5 | [![GitHub release](https://img.shields.io/github/v/release/v-byte-cpu/coredns-https)](https://github.com/v-byte-cpu/coredns-https/releases/latest) 6 | 7 | **https** is a [CoreDNS](https://github.com/coredns/coredns) plugin that proxies DNS messages to upstream resolvers using DNS-over-HTTPS protocol. See [RFC 8484](https://tools.ietf.org/html/rfc8484). 8 | 9 | ## Installation 10 | 11 | External CoreDNS plugins can be enabled in one of two ways: 12 | 1. [Build with compile-time configuration file](https://coredns.io/2017/07/25/compile-time-enabling-or-disabling-plugins/#build-with-compile-time-configuration-file) 13 | 2. [Build with external golang source code](https://coredns.io/2017/07/25/compile-time-enabling-or-disabling-plugins/#build-with-external-golang-source-code) 14 | 15 | Method #1 can be quickly described using a sequence of the following commands: 16 | 17 | ``` 18 | git clone --depth 1 https://github.com/coredns/coredns.git 19 | cd coredns 20 | go get github.com/v-byte-cpu/coredns-https 21 | echo "https:github.com/v-byte-cpu/coredns-https" >> plugin.cfg 22 | go generate 23 | go mod tidy -compat=1.17 24 | go build 25 | ``` 26 | 27 | ## Syntax 28 | 29 | In its most basic form: 30 | 31 | ~~~ 32 | https FROM TO... 33 | ~~~ 34 | 35 | * **FROM** is the base domain to match for the request to be proxied. 36 | * **TO...** are the destination endpoints to proxy to. The number of upstreams is 37 | limited to 15. 38 | 39 | Multiple upstreams are randomized (see `policy`) on first use. When a proxy returns an error 40 | the next upstream in the list is tried. 41 | 42 | Extra knobs are available with an expanded syntax: 43 | 44 | ~~~ 45 | https FROM TO... { 46 | except IGNORED_NAMES... 47 | tls CERT KEY CA 48 | tls_servername NAME 49 | policy random|round_robin|sequential 50 | } 51 | ~~~ 52 | 53 | * **FROM** and **TO...** as above. 54 | * **IGNORED_NAMES** in `except` is a space-separated list of domains to exclude from proxying. 55 | Requests that match none of these names will be passed through. 56 | * `tls` **CERT** **KEY** **CA** define the TLS properties for TLS connection. From 0 to 3 arguments can be 57 | provided with the meaning as described below 58 | 59 | * `tls` - no client authentication is used, and the system CAs are used to verify the server certificate (by default) 60 | * `tls` **CA** - no client authentication is used, and the file CA is used to verify the server certificate 61 | * `tls` **CERT** **KEY** - client authentication is used with the specified cert/key pair. 62 | The server certificate is verified with the system CAs 63 | * `tls` **CERT** **KEY** **CA** - client authentication is used with the specified cert/key pair. 64 | The server certificate is verified using the specified CA file 65 | 66 | * `policy` specifies the policy to use for selecting upstream servers. The default is `random`. 67 | 68 | 69 | ## Metrics 70 | 71 | If monitoring is enabled (via the *prometheus* plugin) then the following metric are exported: 72 | 73 | * `coredns_https_request_duration_seconds{to}` - duration per upstream interaction. 74 | * `coredns_https_requests_total{to}` - query count per upstream. 75 | * `coredns_https_responses_total{to, rcode}` - count of RCODEs per upstream. 76 | and we are randomly (this always uses the `random` policy) spraying to an upstream. 77 | 78 | ## Examples 79 | 80 | Proxy all requests within `example.org.` to a DoH nameserver: 81 | 82 | ~~~ corefile 83 | example.org { 84 | https . cloudflare-dns.com/dns-query 85 | } 86 | ~~~ 87 | 88 | Forward everything except requests to `example.org` 89 | 90 | ~~~ corefile 91 | . { 92 | https . dns.quad9.net/dns-query { 93 | except example.org 94 | } 95 | } 96 | ~~~ 97 | 98 | Load balance all requests between multiple upstreams 99 | 100 | ~~~ corefile 101 | . { 102 | https . dns.quad9.net/dns-query cloudflare-dns.com:443/dns-query dns.google/dns-query 103 | } 104 | ~~~ 105 | 106 | Internal DoH server: 107 | 108 | ~~~ corefile 109 | . { 110 | https . 10.0.0.10:853/dns-query { 111 | tls ca.crt 112 | tls_servername internal.domain 113 | } 114 | } 115 | ~~~ -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/v-byte-cpu/coredns-https 2 | 3 | go 1.19 4 | 5 | require ( 6 | github.com/coredns/caddy v1.1.1 7 | github.com/coredns/coredns v1.9.3 8 | github.com/miekg/dns v1.1.50 9 | github.com/prometheus/client_golang v1.13.0 10 | github.com/stretchr/testify v1.8.0 11 | ) 12 | 13 | require ( 14 | github.com/apparentlymart/go-cidr v1.1.0 // indirect 15 | github.com/beorn7/perks v1.0.1 // indirect 16 | github.com/cespare/xxhash/v2 v2.1.2 // indirect 17 | github.com/davecgh/go-spew v1.1.1 // indirect 18 | github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568 // indirect 19 | github.com/golang/protobuf v1.5.2 // indirect 20 | github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 // indirect 21 | github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect 22 | github.com/opentracing/opentracing-go v1.2.0 // indirect 23 | github.com/pmezard/go-difflib v1.0.0 // indirect 24 | github.com/prometheus/client_model v0.2.0 // indirect 25 | github.com/prometheus/common v0.37.0 // indirect 26 | github.com/prometheus/procfs v0.8.0 // indirect 27 | golang.org/x/mod v0.4.2 // indirect 28 | golang.org/x/net v0.0.0-20220520000938-2e3eb7b945c2 // indirect 29 | golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect 30 | golang.org/x/text v0.3.7 // indirect 31 | golang.org/x/tools v0.1.6-0.20210726203631-07bc1bf47fb2 // indirect 32 | golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df // indirect 33 | google.golang.org/genproto v0.0.0-20220519153652-3a47de7e79bd // indirect 34 | google.golang.org/grpc v1.46.2 // indirect 35 | google.golang.org/protobuf v1.28.1 // indirect 36 | gopkg.in/yaml.v3 v3.0.1 // indirect 37 | ) 38 | -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- 1 | cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= 2 | cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= 3 | cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= 4 | cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= 5 | cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= 6 | cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= 7 | cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= 8 | cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= 9 | cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= 10 | cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= 11 | cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= 12 | cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= 13 | cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= 14 | cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= 15 | cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= 16 | cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= 17 | cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= 18 | cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= 19 | cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= 20 | cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= 21 | cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= 22 | cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= 23 | cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= 24 | cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= 25 | cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= 26 | cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= 27 | cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= 28 | cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= 29 | cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= 30 | cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= 31 | cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= 32 | cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= 33 | dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= 34 | github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= 35 | github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= 36 | github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= 37 | github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= 38 | github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= 39 | github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= 40 | github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= 41 | github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= 42 | github.com/apparentlymart/go-cidr v1.1.0 h1:2mAhrMoF+nhXqxTzSZMUzDHkLjmIHC+Zzn4tdgBZjnU= 43 | github.com/apparentlymart/go-cidr v1.1.0/go.mod h1:EBcsNrHc3zQeuaeCeCtQruQm+n9/YjEn/vI25Lg7Gwc= 44 | github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= 45 | github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= 46 | github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= 47 | github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= 48 | github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= 49 | github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= 50 | github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE= 51 | github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= 52 | github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= 53 | github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= 54 | github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= 55 | github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= 56 | github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= 57 | github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= 58 | github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= 59 | github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= 60 | github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= 61 | github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= 62 | github.com/coredns/caddy v1.1.1 h1:2eYKZT7i6yxIfGP3qLJoJ7HAsDJqYB+X68g4NYjSrE0= 63 | github.com/coredns/caddy v1.1.1/go.mod h1:A6ntJQlAWuQfFlsd9hvigKbo2WS0VUs2l1e2F+BawD4= 64 | github.com/coredns/coredns v1.9.3 h1:eYvVtY9n6qZhHGtQaiOu6ku87Mz9kkSP/6RvFZ48VtA= 65 | github.com/coredns/coredns v1.9.3/go.mod h1:AS3cwa8gzBsPEqNI6p6LAVNaF7/0SgjjlQQ9JSrzncQ= 66 | github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 67 | github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= 68 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 69 | github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= 70 | github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= 71 | github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= 72 | github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= 73 | github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= 74 | github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= 75 | github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568 h1:BHsljHzVlRcyQhjrss6TZTdY2VfCqZPbv5k3iBFa2ZQ= 76 | github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= 77 | github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= 78 | github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= 79 | github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= 80 | github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= 81 | github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= 82 | github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= 83 | github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= 84 | github.com/go-kit/log v0.2.0/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= 85 | github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= 86 | github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= 87 | github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= 88 | github.com/go-logfmt/logfmt v0.5.1/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= 89 | github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= 90 | github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= 91 | github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= 92 | github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 93 | github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 94 | github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 95 | github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 96 | github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 97 | github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= 98 | github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 99 | github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 100 | github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 101 | github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= 102 | github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 103 | github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 104 | github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 105 | github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= 106 | github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= 107 | github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= 108 | github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= 109 | github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= 110 | github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= 111 | github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= 112 | github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= 113 | github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= 114 | github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= 115 | github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= 116 | github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= 117 | github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= 118 | github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= 119 | github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 120 | github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 121 | github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= 122 | github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 123 | github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 124 | github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 125 | github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 126 | github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 127 | github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 128 | github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 129 | github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 130 | github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 131 | github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= 132 | github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= 133 | github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= 134 | github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= 135 | github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 136 | github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 137 | github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 138 | github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 139 | github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 140 | github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 141 | github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 142 | github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= 143 | github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 144 | github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 145 | github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= 146 | github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= 147 | github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= 148 | github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 h1:MJG/KsmcqMwFAkh8mTnAwhyKoB+sTAnY4CACC110tbU= 149 | github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645/go.mod h1:6iZfnjpejD4L/4DwD7NryNaJyCQdzwWwH2MWhCA90Kw= 150 | github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 151 | github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 152 | github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= 153 | github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= 154 | github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= 155 | github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= 156 | github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= 157 | github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= 158 | github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= 159 | github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= 160 | github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= 161 | github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= 162 | github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= 163 | github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= 164 | github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= 165 | github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= 166 | github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= 167 | github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= 168 | github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= 169 | github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= 170 | github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= 171 | github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU= 172 | github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= 173 | github.com/miekg/dns v1.1.50 h1:DQUfb9uc6smULcREF09Uc+/Gd46YWqJd5DbpPE9xkcA= 174 | github.com/miekg/dns v1.1.50/go.mod h1:e3IlAVfNqAllflbibAZEWOXOQ+Ynzk/dDozDxY7XnME= 175 | github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= 176 | github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= 177 | github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= 178 | github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= 179 | github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= 180 | github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= 181 | github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= 182 | github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs= 183 | github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= 184 | github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 185 | github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 186 | github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 187 | github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= 188 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 189 | github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= 190 | github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= 191 | github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= 192 | github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= 193 | github.com/prometheus/client_golang v1.12.1/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= 194 | github.com/prometheus/client_golang v1.13.0 h1:b71QUfeo5M8gq2+evJdTPfZhYMAU0uKPkyPJ7TPsloU= 195 | github.com/prometheus/client_golang v1.13.0/go.mod h1:vTeo+zgvILHsnnj/39Ou/1fPN5nJFOEMgftOUOmlvYQ= 196 | github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= 197 | github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 198 | github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 199 | github.com/prometheus/client_model v0.2.0 h1:uq5h0d+GuxiXLJLNABMgp2qUWDPiLvgCzz2dUR+/W/M= 200 | github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 201 | github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= 202 | github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= 203 | github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= 204 | github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= 205 | github.com/prometheus/common v0.37.0 h1:ccBbHCgIiT9uSoFY0vX8H3zsNR5eLt17/RQLUvn8pXE= 206 | github.com/prometheus/common v0.37.0/go.mod h1:phzohg0JFMnBEFGxTDbfu3QyL5GI8gTQJFhYO5B3mfA= 207 | github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= 208 | github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= 209 | github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= 210 | github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= 211 | github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= 212 | github.com/prometheus/procfs v0.8.0 h1:ODq8ZFEaYeCaZOJlZZdJA2AbQR98dSHSM1KW/You5mo= 213 | github.com/prometheus/procfs v0.8.0/go.mod h1:z7EfXMXOkbkqb9IINtpCn86r/to3BnA0uaxHdg830/4= 214 | github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= 215 | github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= 216 | github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= 217 | github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= 218 | github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= 219 | github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 220 | github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 221 | github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= 222 | github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= 223 | github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= 224 | github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= 225 | github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= 226 | github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 227 | github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 228 | github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk= 229 | github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= 230 | github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 231 | github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 232 | github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 233 | github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= 234 | go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= 235 | go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= 236 | go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 237 | go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 238 | go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 239 | go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= 240 | golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= 241 | golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= 242 | golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 243 | golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 244 | golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 245 | golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= 246 | golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 247 | golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 248 | golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= 249 | golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= 250 | golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= 251 | golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 252 | golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 253 | golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 254 | golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= 255 | golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= 256 | golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= 257 | golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= 258 | golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 259 | golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= 260 | golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 261 | golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 262 | golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 263 | golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 264 | golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 265 | golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= 266 | golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 267 | golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 268 | golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= 269 | golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= 270 | golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= 271 | golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= 272 | golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= 273 | golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= 274 | golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 275 | golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 276 | golang.org/x/mod v0.4.2 h1:Gz96sIWK3OalVv/I/qNygP42zyoKp3xptRVCWRFEBvo= 277 | golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 278 | golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 279 | golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 280 | golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 281 | golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 282 | golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 283 | golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 284 | golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 285 | golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 286 | golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 287 | golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= 288 | golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 289 | golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 290 | golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 291 | golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 292 | golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 293 | golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 294 | golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 295 | golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 296 | golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 297 | golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 298 | golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 299 | golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 300 | golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 301 | golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 302 | golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 303 | golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 304 | golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 305 | golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 306 | golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= 307 | golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= 308 | golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= 309 | golang.org/x/net v0.0.0-20210726213435-c6fcb2dbf985/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= 310 | golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= 311 | golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= 312 | golang.org/x/net v0.0.0-20220520000938-2e3eb7b945c2 h1:NWy5+hlRbC7HK+PmcXVUmW1IMyFce7to56IUvhUFm7Y= 313 | golang.org/x/net v0.0.0-20220520000938-2e3eb7b945c2/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= 314 | golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= 315 | golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 316 | golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 317 | golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 318 | golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 319 | golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= 320 | golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= 321 | golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 322 | golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 323 | golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 324 | golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 325 | golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 326 | golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 327 | golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 328 | golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 329 | golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 330 | golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 331 | golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f h1:Ax0t5p6N38Ga0dThY21weqDEyz2oklo4IvDkpigvkD8= 332 | golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 333 | golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 334 | golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 335 | golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 336 | golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 337 | golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 338 | golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 339 | golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 340 | golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 341 | golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 342 | golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 343 | golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 344 | golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 345 | golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 346 | golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 347 | golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 348 | golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 349 | golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 350 | golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 351 | golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 352 | golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 353 | golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 354 | golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 355 | golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 356 | golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 357 | golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 358 | golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 359 | golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 360 | golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 361 | golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 362 | golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 363 | golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 364 | golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 365 | golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 366 | golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 367 | golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 368 | golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 369 | golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 370 | golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 371 | golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 372 | golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 373 | golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 374 | golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 375 | golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a h1:dGzPydgVsqGcTRVwiLJ1jVbufYwmzD3LfVPLKsKg+0k= 376 | golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 377 | golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= 378 | golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= 379 | golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 380 | golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 381 | golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 382 | golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= 383 | golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 384 | golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 385 | golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 386 | golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= 387 | golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= 388 | golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 389 | golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 390 | golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 391 | golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 392 | golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 393 | golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= 394 | golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 395 | golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 396 | golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 397 | golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 398 | golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 399 | golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 400 | golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 401 | golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 402 | golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 403 | golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 404 | golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 405 | golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 406 | golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 407 | golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 408 | golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 409 | golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 410 | golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 411 | golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 412 | golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 413 | golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 414 | golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 415 | golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 416 | golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 417 | golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 418 | golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 419 | golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 420 | golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 421 | golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= 422 | golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= 423 | golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= 424 | golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 425 | golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 426 | golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 427 | golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 428 | golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= 429 | golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= 430 | golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= 431 | golang.org/x/tools v0.1.6-0.20210726203631-07bc1bf47fb2 h1:BonxutuHCTL0rBDnZlKjpGIQFTjyUVTexFOdWkB6Fg0= 432 | golang.org/x/tools v0.1.6-0.20210726203631-07bc1bf47fb2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= 433 | golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 434 | golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 435 | golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 436 | golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 437 | golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df h1:5Pf6pFKu98ODmgnpvkJ3kFUOQGGLIzLIkbzUHp47618= 438 | golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= 439 | google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= 440 | google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= 441 | google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= 442 | google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= 443 | google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 444 | google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 445 | google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 446 | google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 447 | google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 448 | google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 449 | google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 450 | google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 451 | google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= 452 | google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= 453 | google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= 454 | google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= 455 | google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= 456 | google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 457 | google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 458 | google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= 459 | google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= 460 | google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= 461 | google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= 462 | google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 463 | google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 464 | google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 465 | google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 466 | google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 467 | google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 468 | google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= 469 | google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 470 | google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 471 | google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 472 | google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 473 | google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 474 | google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 475 | google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= 476 | google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 477 | google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 478 | google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 479 | google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 480 | google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 481 | google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 482 | google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 483 | google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 484 | google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 485 | google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= 486 | google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= 487 | google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= 488 | google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 489 | google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 490 | google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 491 | google.golang.org/genproto v0.0.0-20220519153652-3a47de7e79bd h1:e0TwkXOdbnH/1x5rc5MZ/VYyiZ4v+RdVfrGMqEwT68I= 492 | google.golang.org/genproto v0.0.0-20220519153652-3a47de7e79bd/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= 493 | google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= 494 | google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= 495 | google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= 496 | google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= 497 | google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= 498 | google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 499 | google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 500 | google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 501 | google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= 502 | google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= 503 | google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= 504 | google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= 505 | google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= 506 | google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= 507 | google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= 508 | google.golang.org/grpc v1.46.2 h1:u+MLGgVf7vRdjEYZ8wDFhAVNmhkbJ5hmrA1LMWK1CAQ= 509 | google.golang.org/grpc v1.46.2/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= 510 | google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= 511 | google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= 512 | google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= 513 | google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= 514 | google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= 515 | google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 516 | google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 517 | google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 518 | google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= 519 | google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= 520 | google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= 521 | google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= 522 | google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= 523 | google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= 524 | google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w= 525 | google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= 526 | gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= 527 | gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 528 | gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 529 | gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo= 530 | gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 531 | gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= 532 | gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 533 | gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 534 | gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 535 | gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 536 | gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 537 | gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 538 | gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= 539 | gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 540 | gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= 541 | gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 542 | honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 543 | honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 544 | honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 545 | honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 546 | honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= 547 | honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= 548 | honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= 549 | rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= 550 | rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= 551 | rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= 552 | -------------------------------------------------------------------------------- /https.go: -------------------------------------------------------------------------------- 1 | // Package https implements a plugin that performs DNS-over-HTTPS proxying. 2 | // 3 | // See: RFC 8484 (https://tools.ietf.org/html/rfc8484) 4 | package https 5 | 6 | import ( 7 | "context" 8 | 9 | "github.com/coredns/coredns/plugin" 10 | "github.com/coredns/coredns/plugin/debug" 11 | "github.com/coredns/coredns/request" 12 | "github.com/miekg/dns" 13 | ) 14 | 15 | // HTTPS represents a plugin instance that can proxy requests to another (DNS) server via DoH protocol. 16 | // It has a list of proxies each representing one upstream proxy 17 | type HTTPS struct { 18 | from string 19 | except []string 20 | client dnsClient 21 | Next plugin.Handler 22 | } 23 | 24 | type httpsOption func(h *HTTPS) 25 | 26 | func withExcept(except []string) httpsOption { 27 | return func(h *HTTPS) { 28 | h.except = except 29 | } 30 | } 31 | 32 | // newHTTPS returns a new HTTPS. 33 | func newHTTPS(from string, client dnsClient, opts ...httpsOption) *HTTPS { 34 | h := &HTTPS{from: from, client: client} 35 | for _, o := range opts { 36 | o(h) 37 | } 38 | return h 39 | } 40 | 41 | // Assert that HTTPS struct conforms to the plugin.Handler interface 42 | var _ plugin.Handler = (*HTTPS)(nil) 43 | 44 | // Name implements plugin.Handler. 45 | func (*HTTPS) Name() string { return "https" } 46 | 47 | // ServeDNS implements plugin.Handler. 48 | func (h *HTTPS) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (status int, err error) { 49 | state := request.Request{W: w, Req: r} 50 | if !h.match(state) { 51 | return plugin.NextOrFailure(h.Name(), h.Next, ctx, w, r) 52 | } 53 | 54 | dnsreq, err := r.Pack() 55 | if err != nil { 56 | return dns.RcodeServerFailure, err 57 | } 58 | result, err := h.client.Query(ctx, dnsreq) 59 | if err != nil { 60 | return dns.RcodeServerFailure, err 61 | } 62 | 63 | // Check if the reply is correct; if not return FormErr. 64 | // maybe useful to extract this logic from forward, grpc and https plugins to common place 65 | if !state.Match(result) { 66 | debug.Hexdumpf(result, "Wrong reply for id: %d, %s %d", result.Id, state.QName(), state.QType()) 67 | 68 | formerr := new(dns.Msg) 69 | formerr.SetRcode(state.Req, dns.RcodeFormatError) 70 | err = w.WriteMsg(formerr) 71 | return 72 | } 73 | 74 | err = w.WriteMsg(result) 75 | return 76 | } 77 | 78 | // TODO extract this logic from forward, grpc and https plugins to common place 79 | func (h *HTTPS) match(state request.Request) bool { 80 | if !plugin.Name(h.from).Matches(state.Name()) || !h.isAllowedDomain(state.Name()) { 81 | return false 82 | } 83 | 84 | return true 85 | } 86 | 87 | func (h *HTTPS) isAllowedDomain(name string) bool { 88 | if dns.Name(name) == dns.Name(h.from) { 89 | return true 90 | } 91 | 92 | for _, ignore := range h.except { 93 | if plugin.Name(ignore).Matches(name) { 94 | return false 95 | } 96 | } 97 | return true 98 | } 99 | -------------------------------------------------------------------------------- /https_test.go: -------------------------------------------------------------------------------- 1 | package https 2 | 3 | import ( 4 | "context" 5 | "errors" 6 | "testing" 7 | 8 | "github.com/coredns/coredns/plugin/pkg/dnstest" 9 | "github.com/coredns/coredns/plugin/test" 10 | "github.com/miekg/dns" 11 | "github.com/stretchr/testify/require" 12 | ) 13 | 14 | func newRequestDNSMsg() *dns.Msg { 15 | return &dns.Msg{Question: []dns.Question{ 16 | { 17 | Name: "example.com.", 18 | Qtype: dns.TypeA, 19 | Qclass: dns.ClassINET, 20 | }, 21 | }} 22 | } 23 | 24 | func TestHTTPS(t *testing.T) { 25 | dnsMsg := newRequestDNSMsg() 26 | dnsdata, err := dnsMsg.Pack() 27 | require.NoError(t, err) 28 | dnsClient := &mockDNSClient{reqBody: dnsdata, t: t} 29 | h := newHTTPS(".", dnsClient) 30 | rec := dnstest.NewRecorder(&test.ResponseWriter{}) 31 | 32 | status, err := h.ServeDNS(context.Background(), rec, dnsMsg) 33 | require.NoError(t, err) 34 | require.Equal(t, dns.RcodeSuccess, status) 35 | require.Equal(t, 1, dnsClient.callCount, "dnsClient call count is wrong") 36 | require.Equal(t, newExpectedDNSMsg(), rec.Msg) 37 | } 38 | 39 | type mockDNSClientFunc func(ctx context.Context, dnsreq []byte) (*dns.Msg, error) 40 | 41 | func (f mockDNSClientFunc) Query(ctx context.Context, dnsreq []byte) (*dns.Msg, error) { 42 | return f(ctx, dnsreq) 43 | } 44 | 45 | type mockDNSResponseWriter struct { 46 | dns.ResponseWriter 47 | writeFunc func(*dns.Msg) error 48 | } 49 | 50 | func (w *mockDNSResponseWriter) WriteMsg(msg *dns.Msg) error { 51 | return w.writeFunc(msg) 52 | } 53 | 54 | func TestHTTPSMsgPackError(t *testing.T) { 55 | dnsMsg := &dns.Msg{MsgHdr: dns.MsgHdr{Rcode: 0xFFFFF}} 56 | dnsClient := mockDNSClientFunc(func(_ context.Context, _ []byte) (result *dns.Msg, err error) { 57 | t.Fatal("dns client must not be called") 58 | return 59 | }) 60 | h := newHTTPS(".", dnsClient) 61 | w := &mockDNSResponseWriter{ 62 | ResponseWriter: &test.ResponseWriter{}, 63 | writeFunc: func(*dns.Msg) (err error) { 64 | t.Fatal("dns response writer must not be called") 65 | return 66 | }, 67 | } 68 | 69 | status, err := h.ServeDNS(context.Background(), w, dnsMsg) 70 | require.Error(t, err) 71 | require.Equal(t, dns.RcodeServerFailure, status) 72 | } 73 | 74 | func TestHTTPSDNSClientError(t *testing.T) { 75 | dnsMsg := newRequestDNSMsg() 76 | dnsClient := mockDNSClientFunc(func(_ context.Context, _ []byte) (*dns.Msg, error) { 77 | return newExpectedDNSMsg(), errors.New("dns client error") 78 | }) 79 | h := newHTTPS(".", dnsClient) 80 | w := &mockDNSResponseWriter{ 81 | ResponseWriter: &test.ResponseWriter{}, 82 | writeFunc: func(*dns.Msg) (err error) { 83 | t.Fatal("dns response writer must not be called") 84 | return 85 | }, 86 | } 87 | 88 | status, err := h.ServeDNS(context.Background(), w, dnsMsg) 89 | require.Error(t, err) 90 | require.Equal(t, dns.RcodeServerFailure, status) 91 | } 92 | 93 | func TestHTTPSResponseWriterError(t *testing.T) { 94 | dnsMsg := newRequestDNSMsg() 95 | dnsClient := mockDNSClientFunc(func(_ context.Context, _ []byte) (*dns.Msg, error) { 96 | return newExpectedDNSMsg(), nil 97 | }) 98 | h := newHTTPS(".", dnsClient) 99 | w := &mockDNSResponseWriter{ 100 | ResponseWriter: &test.ResponseWriter{}, 101 | writeFunc: func(*dns.Msg) (err error) { 102 | return errors.New("response writer error") 103 | }, 104 | } 105 | 106 | _, err := h.ServeDNS(context.Background(), w, dnsMsg) 107 | require.Error(t, err) 108 | } 109 | 110 | func TestHTTPSDNSResponseStateNotMatch(t *testing.T) { 111 | dnsMsg := newRequestDNSMsg() 112 | dnsClient := mockDNSClientFunc(func(_ context.Context, _ []byte) (*dns.Msg, error) { 113 | result := newExpectedDNSMsg() 114 | result.Question[0].Name = "other.domain." 115 | return result, nil 116 | }) 117 | h := newHTTPS(".", dnsClient) 118 | rec := dnstest.NewRecorder(&test.ResponseWriter{}) 119 | 120 | _, err := h.ServeDNS(context.Background(), rec, dnsMsg) 121 | require.NoError(t, err) 122 | require.Equal(t, dns.RcodeFormatError, rec.Rcode) 123 | } 124 | -------------------------------------------------------------------------------- /metrics.go: -------------------------------------------------------------------------------- 1 | package https 2 | 3 | import ( 4 | "github.com/coredns/coredns/plugin" 5 | 6 | "github.com/prometheus/client_golang/prometheus" 7 | "github.com/prometheus/client_golang/prometheus/promauto" 8 | ) 9 | 10 | // Variables declared for monitoring. 11 | var ( 12 | RequestCount = promauto.NewCounterVec(prometheus.CounterOpts{ 13 | Namespace: plugin.Namespace, 14 | Subsystem: "https", 15 | Name: "requests_total", 16 | Help: "Counter of requests made per upstream.", 17 | }, []string{"to"}) 18 | RcodeCount = promauto.NewCounterVec(prometheus.CounterOpts{ 19 | Namespace: plugin.Namespace, 20 | Subsystem: "https", 21 | Name: "responses_total", 22 | Help: "Counter of requests made per upstream.", 23 | }, []string{"rcode", "to"}) 24 | RequestDuration = promauto.NewHistogramVec(prometheus.HistogramOpts{ 25 | Namespace: plugin.Namespace, 26 | Subsystem: "https", 27 | Name: "request_duration_seconds", 28 | Buckets: plugin.TimeBuckets, 29 | Help: "Histogram of the time each request took.", 30 | }, []string{"to"}) 31 | ) 32 | -------------------------------------------------------------------------------- /policy.go: -------------------------------------------------------------------------------- 1 | package https 2 | 3 | import ( 4 | "math" 5 | "math/rand" 6 | "sync/atomic" 7 | ) 8 | 9 | // policy defines a policy we use for selecting upstreams. 10 | type policy interface { 11 | List(poolLen int) []int 12 | } 13 | 14 | // randomPolicy is a policy that implements random upstream selection. 15 | type randomPolicy struct{} 16 | 17 | func newRandomPolicy() *randomPolicy { 18 | return &randomPolicy{} 19 | } 20 | 21 | func (*randomPolicy) List(poolLen int) []int { 22 | if poolLen <= 0 { 23 | return nil 24 | } 25 | return rand.Perm(poolLen) 26 | } 27 | 28 | // roundRobinPolicy is a policy that selects hosts based on round robin ordering. 29 | type roundRobinPolicy struct { 30 | robin uint32 31 | } 32 | 33 | func newRoundRobinPolicy() *roundRobinPolicy { 34 | return &roundRobinPolicy{robin: math.MaxUint32} 35 | } 36 | 37 | func (p *roundRobinPolicy) List(poolLen int) (result []int) { 38 | if poolLen <= 0 { 39 | return 40 | } 41 | result = make([]int, 0, poolLen) 42 | i := int(atomic.AddUint32(&p.robin, 1) % uint32(poolLen)) 43 | for j := i; j < poolLen; j++ { 44 | result = append(result, j) 45 | } 46 | for j := 0; j < i; j++ { 47 | result = append(result, j) 48 | } 49 | return 50 | } 51 | 52 | // sequentialPolicy is a policy that selects hosts based on sequential ordering. 53 | type sequentialPolicy struct{} 54 | 55 | func newSequentialPolicy() *sequentialPolicy { 56 | return &sequentialPolicy{} 57 | } 58 | 59 | func (*sequentialPolicy) List(poolLen int) (result []int) { 60 | if poolLen <= 0 { 61 | return 62 | } 63 | result = make([]int, poolLen) 64 | for i := 0; i < poolLen; i++ { 65 | result[i] = i 66 | } 67 | return 68 | } 69 | -------------------------------------------------------------------------------- /policy_test.go: -------------------------------------------------------------------------------- 1 | package https 2 | 3 | import ( 4 | "testing" 5 | 6 | "github.com/stretchr/testify/require" 7 | ) 8 | 9 | func TestRandomPolicy(t *testing.T) { 10 | tests := []struct { 11 | name string 12 | poolLen int 13 | expected [][]int 14 | }{ 15 | { 16 | name: "NegativeLength", 17 | poolLen: -1, 18 | expected: [][]int{ 19 | nil, 20 | }, 21 | }, 22 | { 23 | name: "ZeroElements", 24 | poolLen: 0, 25 | expected: [][]int{ 26 | nil, 27 | nil, 28 | }, 29 | }, 30 | { 31 | name: "OneElement", 32 | poolLen: 1, 33 | expected: [][]int{ 34 | {0}, 35 | {0}, 36 | }, 37 | }, 38 | { 39 | name: "TwoElements", 40 | poolLen: 2, 41 | }, 42 | { 43 | name: "ThreeElements", 44 | poolLen: 3, 45 | }, 46 | } 47 | for _, tt := range tests { 48 | t.Run(tt.name, func(t *testing.T) { 49 | r := newRandomPolicy() 50 | if tt.poolLen < 2 { 51 | for i, expected := range tt.expected { 52 | result := r.List(len(expected)) 53 | require.Equal(t, expected, result, "iteration %d", i) 54 | } 55 | } else { 56 | result := r.List(tt.poolLen) 57 | require.Equal(t, tt.poolLen, len(result)) 58 | // verify all elements 59 | visited := make([]bool, tt.poolLen) 60 | for i := 0; i < tt.poolLen; i++ { 61 | require.Less(t, result[i], tt.poolLen) 62 | require.False(t, visited[result[i]], "element %d is duplicated", result[i]) 63 | visited[result[i]] = true 64 | } 65 | } 66 | }) 67 | } 68 | } 69 | 70 | func TestRoundRobinPolicy(t *testing.T) { 71 | tests := []struct { 72 | name string 73 | poolLen int 74 | expected [][]int 75 | }{ 76 | { 77 | name: "NegativeLength", 78 | poolLen: -1, 79 | expected: [][]int{ 80 | nil, 81 | }, 82 | }, 83 | { 84 | name: "ZeroElements", 85 | poolLen: 0, 86 | expected: [][]int{ 87 | nil, 88 | nil, 89 | }, 90 | }, 91 | { 92 | name: "OneElement", 93 | poolLen: 1, 94 | expected: [][]int{ 95 | {0}, 96 | {0}, 97 | }, 98 | }, 99 | { 100 | name: "TwoElements", 101 | poolLen: 2, 102 | expected: [][]int{ 103 | {0, 1}, 104 | {1, 0}, 105 | {0, 1}, 106 | }, 107 | }, 108 | { 109 | name: "ThreeElements", 110 | poolLen: 3, 111 | expected: [][]int{ 112 | {0, 1, 2}, 113 | {1, 2, 0}, 114 | {2, 0, 1}, 115 | {0, 1, 2}, 116 | }, 117 | }, 118 | } 119 | for _, tt := range tests { 120 | t.Run(tt.name, func(t *testing.T) { 121 | r := newRoundRobinPolicy() 122 | for i, expected := range tt.expected { 123 | result := r.List(len(expected)) 124 | require.Equal(t, expected, result, "iteration %d", i) 125 | } 126 | }) 127 | } 128 | } 129 | 130 | func TestSequentialPolicy(t *testing.T) { 131 | tests := []struct { 132 | name string 133 | poolLen int 134 | expected [][]int 135 | }{ 136 | { 137 | name: "NegativeLength", 138 | poolLen: -1, 139 | expected: [][]int{ 140 | nil, 141 | }, 142 | }, 143 | { 144 | name: "ZeroElements", 145 | poolLen: 0, 146 | expected: [][]int{ 147 | nil, 148 | nil, 149 | }, 150 | }, 151 | { 152 | name: "OneElement", 153 | poolLen: 1, 154 | expected: [][]int{ 155 | {0}, 156 | {0}, 157 | }, 158 | }, 159 | { 160 | name: "TwoElements", 161 | poolLen: 2, 162 | expected: [][]int{ 163 | {0, 1}, 164 | {0, 1}, 165 | }, 166 | }, 167 | { 168 | name: "ThreeElements", 169 | poolLen: 3, 170 | expected: [][]int{ 171 | {0, 1, 2}, 172 | {0, 1, 2}, 173 | }, 174 | }, 175 | } 176 | for _, tt := range tests { 177 | t.Run(tt.name, func(t *testing.T) { 178 | p := newSequentialPolicy() 179 | for i, expected := range tt.expected { 180 | result := p.List(len(expected)) 181 | require.Equal(t, expected, result, "iteration %d", i) 182 | } 183 | }) 184 | } 185 | } 186 | -------------------------------------------------------------------------------- /proxy.go: -------------------------------------------------------------------------------- 1 | package https 2 | 3 | import ( 4 | "bytes" 5 | "context" 6 | "errors" 7 | "io" 8 | "net/http" 9 | "strconv" 10 | "time" 11 | 12 | "github.com/miekg/dns" 13 | ) 14 | 15 | const ( 16 | dnsMessageMimeType = "application/dns-message" 17 | 18 | // typical Ethernet MTU (1500 bytes) - min IP header size (20 bytes) - UDP header (8 bytes). 19 | // It seems like a reasonable limitation for DoH protocol. 20 | // However, if you know RFCs that specify this limit, update it. 21 | maxDNSMessageSize = 1472 22 | defaultRequestTimeout = 2 * time.Second 23 | ) 24 | 25 | var ( 26 | dnsMessageMimeTypeHeader = []string{dnsMessageMimeType} 27 | 28 | errResponseTooLarge = errors.New("dns response size is too large") 29 | errResponseStatus = errors.New("invalid http response status code") 30 | ) 31 | 32 | // dnsClient is the client API for DNS service 33 | type dnsClient interface { 34 | Query(ctx context.Context, dnsreq []byte) (result *dns.Msg, err error) 35 | } 36 | 37 | // newDoHDNSClient creates a new instance of dohDNSClient service. 38 | // url must be a full URL to send DoH requests to like "https://example.com/dns-query" 39 | func newDoHDNSClient(client httpRequestDoer, url string) *dohDNSClient { 40 | return &dohDNSClient{client, url} 41 | } 42 | 43 | type httpRequestDoer interface { 44 | Do(req *http.Request) (*http.Response, error) 45 | } 46 | 47 | // dohDNSClient is a DNS client that proxies requests to the upstream server using DoH protocol. 48 | type dohDNSClient struct { 49 | client httpRequestDoer 50 | url string 51 | } 52 | 53 | func (c *dohDNSClient) Query(ctx context.Context, dnsreq []byte) (r *dns.Msg, err error) { 54 | var req *http.Request 55 | if req, err = http.NewRequestWithContext(ctx, "POST", c.url, bytes.NewReader(dnsreq)); err != nil { 56 | return 57 | } 58 | req.Header["Accept"] = dnsMessageMimeTypeHeader 59 | req.Header["Content-Type"] = dnsMessageMimeTypeHeader 60 | 61 | var resp *http.Response 62 | if resp, err = c.client.Do(req); err != nil { 63 | return 64 | } 65 | defer resp.Body.Close() 66 | 67 | // RFC8484 Section 4.2.1: 68 | // A successful HTTP response with a 2xx status code is used for any valid DNS response, 69 | // regardless of the DNS response code. 70 | // HTTP responses with non-successful HTTP status codes do not contain 71 | // replies to the original DNS question in the HTTP request. 72 | if resp.StatusCode < 200 || resp.StatusCode >= 300 { 73 | return nil, errResponseStatus 74 | } 75 | 76 | // limit the number of bytes read to avoid potential DoS attacks. 77 | // it would be better to add (*dns.Msg) Unpack(io.Reader) method to avoid byte slice allocation 78 | var body []byte 79 | if body, err = io.ReadAll(io.LimitReader(resp.Body, maxDNSMessageSize+1)); err != nil { 80 | return 81 | } 82 | if len(body) > maxDNSMessageSize { 83 | return nil, errResponseTooLarge 84 | } 85 | r = new(dns.Msg) 86 | err = r.Unpack(body) 87 | return 88 | } 89 | 90 | type metricDNSClient struct { 91 | client dnsClient 92 | addr string 93 | } 94 | 95 | func newMetricDNSClient(client dnsClient, addr string) *metricDNSClient { 96 | return &metricDNSClient{client, addr} 97 | } 98 | 99 | func (c *metricDNSClient) Query(ctx context.Context, dnsreq []byte) (r *dns.Msg, err error) { 100 | start := time.Now() 101 | 102 | // decorator pattern 103 | if r, err = c.client.Query(ctx, dnsreq); err != nil { 104 | return 105 | } 106 | 107 | rc, ok := dns.RcodeToString[r.Rcode] 108 | if !ok { 109 | rc = strconv.Itoa(r.Rcode) 110 | } 111 | 112 | RequestCount.WithLabelValues(c.addr).Add(1) 113 | RcodeCount.WithLabelValues(rc, c.addr).Add(1) 114 | RequestDuration.WithLabelValues(c.addr).Observe(time.Since(start).Seconds()) 115 | return 116 | } 117 | 118 | func newLoadBalanceDNSClient(clients []dnsClient, opts ...lbDNSClientOption) *lbDNSClient { 119 | c := &lbDNSClient{ 120 | p: newRandomPolicy(), 121 | maxFails: len(clients), 122 | timeout: defaultRequestTimeout, 123 | clients: clients, 124 | } 125 | // option pattern 126 | for _, o := range opts { 127 | o(c) 128 | } 129 | if len(clients) < c.maxFails { 130 | c.maxFails = len(clients) 131 | } 132 | return c 133 | } 134 | 135 | // lbDNSClient is a DNS client that load balances DNS requests between the list of DNS clients. 136 | type lbDNSClient struct { 137 | p policy 138 | timeout time.Duration 139 | maxFails int 140 | clients []dnsClient 141 | } 142 | 143 | type lbDNSClientOption func(c *lbDNSClient) 144 | 145 | func withLbPolicy(p policy) lbDNSClientOption { 146 | return func(c *lbDNSClient) { 147 | c.p = p 148 | } 149 | } 150 | 151 | func withLbRequestTimeout(timeout time.Duration) lbDNSClientOption { 152 | return func(c *lbDNSClient) { 153 | c.timeout = timeout 154 | } 155 | } 156 | 157 | func withLbMaxFails(maxFails int) lbDNSClientOption { 158 | return func(c *lbDNSClient) { 159 | c.maxFails = maxFails 160 | } 161 | } 162 | 163 | func (c *lbDNSClient) Query(ctx context.Context, dnsreq []byte) (r *dns.Msg, err error) { 164 | ids := c.p.List(len(c.clients)) 165 | for i := 0; i < c.maxFails; i++ { 166 | if r, err = c.query(ctx, dnsreq, ids[i]); err == nil { 167 | return 168 | } 169 | } 170 | return 171 | } 172 | 173 | func (c *lbDNSClient) query(ctx context.Context, dnsreq []byte, clientID int) (*dns.Msg, error) { 174 | ctx, cancel := context.WithTimeout(ctx, c.timeout) 175 | defer cancel() 176 | return c.clients[clientID].Query(ctx, dnsreq) 177 | } 178 | -------------------------------------------------------------------------------- /proxy_test.go: -------------------------------------------------------------------------------- 1 | package https 2 | 3 | import ( 4 | "bytes" 5 | "context" 6 | "errors" 7 | "io" 8 | "net" 9 | "net/http" 10 | "strings" 11 | "testing" 12 | 13 | "github.com/miekg/dns" 14 | "github.com/stretchr/testify/require" 15 | ) 16 | 17 | const upstreamURL = "https://example.com/dns-query" 18 | 19 | type mockHTTPClientFunc func(*http.Request) (*http.Response, error) 20 | 21 | func (f mockHTTPClientFunc) Do(req *http.Request) (*http.Response, error) { 22 | return f(req) 23 | } 24 | 25 | func newExpectedDNSMsg() *dns.Msg { 26 | return &dns.Msg{ 27 | MsgHdr: dns.MsgHdr{Response: true}, 28 | Question: []dns.Question{ 29 | { 30 | Name: "example.com.", 31 | Qtype: dns.TypeA, 32 | Qclass: dns.ClassINET, 33 | }, 34 | }, 35 | Answer: []dns.RR{ 36 | &dns.A{ 37 | Hdr: dns.RR_Header{Name: "example.com.", Rrtype: dns.TypeA, Class: dns.ClassINET, Ttl: 30}, 38 | A: net.IPv4(1, 1, 1, 1), 39 | }, 40 | }, 41 | } 42 | } 43 | 44 | func packMsg(t *testing.T, msg *dns.Msg) []byte { 45 | t.Helper() 46 | data, err := msg.Pack() 47 | require.NoError(t, err) 48 | return data 49 | } 50 | 51 | func TestDNSClient(t *testing.T) { 52 | callCount := 0 53 | expectedMsg := newExpectedDNSMsg() 54 | httpClient := mockHTTPClientFunc(func(req *http.Request) (resp *http.Response, err error) { 55 | callCount++ 56 | acceptHdrs := req.Header["Accept"] 57 | require.NotEmpty(t, acceptHdrs, "Accept header is empty") 58 | require.Equal(t, dnsMessageMimeType, acceptHdrs[0], "invalid accept header") 59 | 60 | contentTypeHdrs := req.Header["Content-Type"] 61 | require.NotEmpty(t, contentTypeHdrs, "Content-Type header is empty") 62 | require.Equal(t, dnsMessageMimeType, contentTypeHdrs[0], "invalid Content-Type header") 63 | 64 | require.Equal(t, upstreamURL, req.URL.String(), "invalid request URL") 65 | require.Equal(t, "POST", req.Method, "invalid request method") 66 | 67 | buf, err := io.ReadAll(req.Body) 68 | require.NoError(t, err) 69 | require.Equal(t, []byte("abc"), buf, "invalid request body") 70 | 71 | resp = &http.Response{ 72 | Body: io.NopCloser(bytes.NewReader(packMsg(t, expectedMsg))), 73 | StatusCode: http.StatusOK, 74 | } 75 | return 76 | }) 77 | dnsClient := newDoHDNSClient(httpClient, upstreamURL) 78 | 79 | result, err := dnsClient.Query(context.Background(), []byte("abc")) 80 | require.NoError(t, err) 81 | require.Equal(t, 1, callCount, "invalid http client call count") 82 | require.True(t, result.MsgHdr.Response) 83 | require.Equal(t, len(expectedMsg.Answer), len(result.Answer)) 84 | require.Equal(t, expectedMsg.Answer[0].String(), result.Answer[0].String()) 85 | } 86 | 87 | func TestDNSClientNewRequestError(t *testing.T) { 88 | invalidURL := "https://example.com/\t\n" 89 | httpClient := mockHTTPClientFunc(func(req *http.Request) (resp *http.Response, err error) { 90 | t.Fatal("http client must not be called") 91 | return 92 | }) 93 | dnsClient := newDoHDNSClient(httpClient, invalidURL) 94 | 95 | _, err := dnsClient.Query(context.Background(), []byte("abc")) 96 | require.Error(t, err) 97 | } 98 | 99 | func TestDNSClientHttpClientError(t *testing.T) { 100 | httpClient := mockHTTPClientFunc(func(req *http.Request) (resp *http.Response, err error) { 101 | err = errors.New("http error") 102 | resp = &http.Response{ 103 | Body: io.NopCloser(bytes.NewReader(packMsg(t, newExpectedDNSMsg()))), 104 | StatusCode: http.StatusOK, 105 | } 106 | return 107 | }) 108 | dnsClient := newDoHDNSClient(httpClient, upstreamURL) 109 | 110 | _, err := dnsClient.Query(context.Background(), []byte("abc")) 111 | require.Error(t, err) 112 | } 113 | 114 | func TestDNSClientHttpStatusError(t *testing.T) { 115 | httpClient := mockHTTPClientFunc(func(req *http.Request) (resp *http.Response, err error) { 116 | resp = &http.Response{ 117 | Body: io.NopCloser(bytes.NewReader(packMsg(t, newExpectedDNSMsg()))), 118 | StatusCode: http.StatusInternalServerError, 119 | } 120 | return 121 | }) 122 | dnsClient := newDoHDNSClient(httpClient, upstreamURL) 123 | 124 | _, err := dnsClient.Query(context.Background(), []byte("abc")) 125 | require.Error(t, err) 126 | } 127 | 128 | type errReader struct { 129 | delegate io.Reader 130 | err error 131 | } 132 | 133 | // return err instead of io.EOF after the last piece of data is read 134 | func (r *errReader) Read(p []byte) (n int, err error) { 135 | n, err = r.delegate.Read(p) 136 | if err == io.EOF { 137 | err = r.err 138 | } 139 | return 140 | } 141 | 142 | func TestDNSClientResponseReadError(t *testing.T) { 143 | httpClient := mockHTTPClientFunc(func(req *http.Request) (resp *http.Response, err error) { 144 | reader := &errReader{ 145 | delegate: bytes.NewReader(packMsg(t, newExpectedDNSMsg())), 146 | err: errors.New("io error"), 147 | } 148 | resp = &http.Response{ 149 | Body: io.NopCloser(reader), 150 | StatusCode: http.StatusOK, 151 | } 152 | return 153 | }) 154 | dnsClient := newDoHDNSClient(httpClient, upstreamURL) 155 | 156 | _, err := dnsClient.Query(context.Background(), []byte("abc")) 157 | require.Error(t, err) 158 | } 159 | 160 | func TestDNSClientMsgUnpackError(t *testing.T) { 161 | httpClient := mockHTTPClientFunc(func(req *http.Request) (resp *http.Response, err error) { 162 | resp = &http.Response{ 163 | Body: io.NopCloser(strings.NewReader("def")), 164 | StatusCode: http.StatusOK, 165 | } 166 | return 167 | }) 168 | dnsClient := newDoHDNSClient(httpClient, upstreamURL) 169 | 170 | _, err := dnsClient.Query(context.Background(), []byte("abc")) 171 | require.Error(t, err) 172 | } 173 | 174 | func TestDNSClientLargeResponseError(t *testing.T) { 175 | // create large buffer with the correct DNS message at the beginning 176 | var buf bytes.Buffer 177 | dnsMsg := packMsg(t, newExpectedDNSMsg()) 178 | buf.Write(dnsMsg) 179 | buf.WriteString(strings.Repeat("a", maxDNSMessageSize)) 180 | 181 | httpClient := mockHTTPClientFunc(func(req *http.Request) (resp *http.Response, err error) { 182 | resp = &http.Response{ 183 | Body: io.NopCloser(&buf), 184 | StatusCode: http.StatusOK, 185 | } 186 | return 187 | }) 188 | dnsClient := newDoHDNSClient(httpClient, upstreamURL) 189 | 190 | _, err := dnsClient.Query(context.Background(), []byte("abc")) 191 | require.Error(t, err) 192 | } 193 | 194 | type mockDNSClient struct { 195 | callCount int 196 | reqBody []byte 197 | t *testing.T 198 | err error 199 | } 200 | 201 | func (c *mockDNSClient) Query(ctx context.Context, dnsreq []byte) (result *dns.Msg, err error) { 202 | c.t.Helper() 203 | c.callCount++ 204 | require.NotNil(c.t, ctx) 205 | require.Equal(c.t, c.reqBody, dnsreq, "invalid request body") 206 | return newExpectedDNSMsg(), c.err 207 | } 208 | 209 | func TestLoadBalanceDNSClient(t *testing.T) { 210 | client1 := &mockDNSClient{reqBody: []byte("abc"), t: t} 211 | clients := []dnsClient{client1} 212 | lbClient := newLoadBalanceDNSClient(clients) 213 | 214 | result, err := lbClient.Query(context.Background(), []byte("abc")) 215 | require.NoError(t, err) 216 | require.Equal(t, 1, client1.callCount) 217 | require.Equal(t, newExpectedDNSMsg(), result) 218 | } 219 | 220 | func TestLoadBalanceDNSClientError(t *testing.T) { 221 | client1 := &mockDNSClient{reqBody: []byte("abc"), t: t, err: errors.New("client error")} 222 | clients := []dnsClient{client1} 223 | lbClient := newLoadBalanceDNSClient(clients) 224 | 225 | _, err := lbClient.Query(context.Background(), []byte("abc")) 226 | require.Error(t, err) 227 | require.Equal(t, 1, client1.callCount) 228 | } 229 | 230 | func TestLoadBalanceDNSClientRetry(t *testing.T) { 231 | client1 := &mockDNSClient{reqBody: []byte("abc"), t: t, err: errors.New("client error")} 232 | client2 := &mockDNSClient{reqBody: []byte("abc"), t: t} 233 | clients := []dnsClient{client1, client2} 234 | lbClient := newLoadBalanceDNSClient(clients, withLbPolicy(newSequentialPolicy())) 235 | 236 | result, err := lbClient.Query(context.Background(), []byte("abc")) 237 | require.NoError(t, err) 238 | require.Equal(t, 1, client1.callCount) 239 | require.Equal(t, 1, client2.callCount) 240 | require.Equal(t, newExpectedDNSMsg(), result) 241 | } 242 | 243 | func TestLoadBalanceDNSClientPolicy(t *testing.T) { 244 | client1 := &mockDNSClient{reqBody: []byte("abc"), t: t} 245 | client2 := &mockDNSClient{reqBody: []byte("abc"), t: t} 246 | clients := []dnsClient{client1, client2} 247 | lbClient := newLoadBalanceDNSClient(clients, withLbPolicy(newRoundRobinPolicy())) 248 | 249 | result, err := lbClient.Query(context.Background(), []byte("abc")) 250 | require.NoError(t, err) 251 | require.Equal(t, 1, client1.callCount) 252 | require.Equal(t, 0, client2.callCount) 253 | require.Equal(t, newExpectedDNSMsg(), result) 254 | 255 | result, err = lbClient.Query(context.Background(), []byte("abc")) 256 | require.NoError(t, err) 257 | require.Equal(t, 1, client1.callCount) 258 | require.Equal(t, 1, client2.callCount) 259 | require.Equal(t, newExpectedDNSMsg(), result) 260 | } 261 | 262 | func TestLoadBalanceDNSClientMaxFails(t *testing.T) { 263 | tests := []struct { 264 | name string 265 | maxFails int 266 | callCountClient1 int 267 | callCountClient2 int 268 | }{ 269 | { 270 | name: "OneMaxFail", 271 | maxFails: 1, 272 | callCountClient1: 1, 273 | callCountClient2: 0, 274 | }, 275 | { 276 | name: "TenMaxFails", 277 | maxFails: 10, 278 | callCountClient1: 1, 279 | callCountClient2: 1, 280 | }, 281 | } 282 | 283 | for _, tt := range tests { 284 | t.Run(tt.name, func(t *testing.T) { 285 | client1 := &mockDNSClient{reqBody: []byte("abc"), t: t, err: errors.New("client error")} 286 | client2 := &mockDNSClient{reqBody: []byte("abc"), t: t, err: errors.New("client error")} 287 | clients := []dnsClient{client1, client2} 288 | 289 | lbClient := newLoadBalanceDNSClient(clients, 290 | withLbPolicy(newSequentialPolicy()), 291 | withLbRequestTimeout(defaultRequestTimeout), 292 | withLbMaxFails(tt.maxFails)) 293 | 294 | result, err := lbClient.Query(context.Background(), []byte("abc")) 295 | require.Error(t, err) 296 | require.Equal(t, tt.callCountClient1, client1.callCount) 297 | require.Equal(t, tt.callCountClient2, client2.callCount) 298 | require.Equal(t, newExpectedDNSMsg(), result) 299 | }) 300 | } 301 | } 302 | 303 | func TestDefaultNewLoadBalanceDNSClient(t *testing.T) { 304 | client1 := &mockDNSClient{reqBody: []byte("abc"), t: t} 305 | client2 := &mockDNSClient{reqBody: []byte("abc"), t: t} 306 | clients := []dnsClient{client1, client2} 307 | 308 | lbClient := newLoadBalanceDNSClient(clients) 309 | require.Equal(t, 2, lbClient.maxFails) 310 | require.Equal(t, defaultRequestTimeout, lbClient.timeout) 311 | } 312 | -------------------------------------------------------------------------------- /setup.go: -------------------------------------------------------------------------------- 1 | package https 2 | 3 | import ( 4 | "crypto/tls" 5 | "fmt" 6 | "net/http" 7 | "net/url" 8 | 9 | "github.com/coredns/caddy" 10 | "github.com/coredns/coredns/core/dnsserver" 11 | "github.com/coredns/coredns/plugin" 12 | pkgtls "github.com/coredns/coredns/plugin/pkg/tls" 13 | ) 14 | 15 | const maxUpstreams = 15 16 | 17 | func init() { plugin.Register("https", setup) } 18 | 19 | func setup(c *caddy.Controller) error { 20 | conf, err := parseConfig(c) 21 | if err != nil { 22 | return plugin.Error("https", err) 23 | } 24 | 25 | dnsClient := setupDNSClient(conf) 26 | h := newHTTPS(conf.from, dnsClient, withExcept(conf.except)) 27 | dnsserver.GetConfig(c).AddPlugin(func(next plugin.Handler) plugin.Handler { 28 | h.Next = next 29 | return h 30 | }) 31 | 32 | return nil 33 | } 34 | 35 | func setupDNSClient(conf *httpsConfig) dnsClient { 36 | tr := &http.Transport{ 37 | TLSClientConfig: conf.tlsConfig, 38 | ForceAttemptHTTP2: true, 39 | } 40 | httpClient := &http.Client{ 41 | Transport: tr, 42 | } 43 | 44 | clients := make([]dnsClient, len(conf.toURLs)) 45 | for i, toURL := range conf.toURLs { 46 | clients[i] = newMetricDNSClient(newDoHDNSClient(httpClient, toURL), toURL) 47 | } 48 | 49 | var opts []lbDNSClientOption 50 | if conf.policy != nil { 51 | opts = append(opts, withLbPolicy(conf.policy)) 52 | } 53 | 54 | // TODO request timeout, max_fail options 55 | return newLoadBalanceDNSClient(clients, opts...) 56 | } 57 | 58 | type httpsConfig struct { 59 | from string 60 | toURLs []string 61 | except []string 62 | tlsConfig *tls.Config 63 | tlsServerName string 64 | policy policy 65 | } 66 | 67 | func parseConfig(c *caddy.Controller) (conf *httpsConfig, err error) { 68 | conf = &httpsConfig{} 69 | if !c.Next() { 70 | return conf, c.ArgErr() 71 | } 72 | if !c.Args(&conf.from) { 73 | return conf, c.ArgErr() 74 | } 75 | conf.from, err = parseHost(conf.from) 76 | if err != nil { 77 | return conf, err 78 | } 79 | 80 | toURLs := c.RemainingArgs() 81 | if len(toURLs) == 0 { 82 | return conf, c.ArgErr() 83 | } 84 | if len(toURLs) > maxUpstreams { 85 | return conf, fmt.Errorf("more than %d TOs configured: %d", maxUpstreams, len(toURLs)) 86 | } 87 | conf.toURLs = make([]string, 0, len(toURLs)) 88 | for _, to := range toURLs { 89 | toURL := "https://" + to 90 | if _, err := url.ParseRequestURI(toURL); err != nil { 91 | return conf, err 92 | } 93 | conf.toURLs = append(conf.toURLs, toURL) 94 | } 95 | 96 | for c.NextBlock() { 97 | if err := parseBlock(c, conf); err != nil { 98 | return conf, err 99 | } 100 | } 101 | 102 | if conf.tlsServerName != "" { 103 | if conf.tlsConfig == nil { 104 | conf.tlsConfig = new(tls.Config) 105 | } 106 | conf.tlsConfig.ServerName = conf.tlsServerName 107 | } 108 | 109 | return conf, nil 110 | } 111 | 112 | func parseBlock(c *caddy.Controller, conf *httpsConfig) (err error) { 113 | f, ok := parseBlockMap[c.Val()] 114 | if !ok { 115 | return c.Errf("unknown property '%s'", c.Val()) 116 | } 117 | return f(c, conf) 118 | } 119 | 120 | type parseBlockFunc func(*caddy.Controller, *httpsConfig) error 121 | 122 | var parseBlockMap = map[string]parseBlockFunc{ 123 | "except": parseExcept, 124 | "tls": parseTLS, 125 | "tls_servername": parseTLSServerName, 126 | "policy": parsePolicy, 127 | } 128 | 129 | func parseExcept(c *caddy.Controller, conf *httpsConfig) (err error) { 130 | except := c.RemainingArgs() 131 | if len(except) == 0 { 132 | return c.ArgErr() 133 | } 134 | for i := 0; i < len(except); i++ { 135 | if except[i], err = parseHost(except[i]); err != nil { 136 | return 137 | } 138 | } 139 | conf.except = except 140 | return 141 | } 142 | 143 | func parseHost(hostAddr string) (string, error) { 144 | hosts := plugin.Host(hostAddr).NormalizeExact() 145 | if len(hosts) == 0 { 146 | return "", fmt.Errorf("unable to normalize '%s'", hostAddr) 147 | } 148 | return plugin.Name(hosts[0]).Normalize(), nil 149 | } 150 | 151 | func parseTLS(c *caddy.Controller, conf *httpsConfig) error { 152 | args := c.RemainingArgs() 153 | tlsConfig, err := pkgtls.NewTLSConfigFromArgs(args...) 154 | if err != nil { 155 | return err 156 | } 157 | conf.tlsConfig = tlsConfig 158 | return nil 159 | } 160 | 161 | func parseTLSServerName(c *caddy.Controller, conf *httpsConfig) error { 162 | args := c.RemainingArgs() 163 | if len(args) != 1 { 164 | return c.ArgErr() 165 | } 166 | conf.tlsServerName = args[0] 167 | return nil 168 | } 169 | 170 | func parsePolicy(c *caddy.Controller, conf *httpsConfig) error { 171 | args := c.RemainingArgs() 172 | if len(args) != 1 { 173 | return c.ArgErr() 174 | } 175 | switch args[0] { 176 | case "random": 177 | conf.policy = newRandomPolicy() 178 | case "round_robin": 179 | conf.policy = newRoundRobinPolicy() 180 | case "sequential": 181 | conf.policy = newSequentialPolicy() 182 | default: 183 | return c.Errf("unknown policy '%s'", args[0]) 184 | } 185 | return nil 186 | } 187 | -------------------------------------------------------------------------------- /setup_test.go: -------------------------------------------------------------------------------- 1 | package https 2 | 3 | import ( 4 | "crypto/tls" 5 | "strings" 6 | "testing" 7 | 8 | "github.com/coredns/caddy" 9 | "github.com/stretchr/testify/require" 10 | ) 11 | 12 | func TestParseConfig(t *testing.T) { 13 | tests := []struct { 14 | name string 15 | input string 16 | expectedConfig *httpsConfig 17 | }{ 18 | { 19 | name: "FromAndOneToURL", 20 | input: "https . example.com/dns-query", 21 | expectedConfig: &httpsConfig{ 22 | from: ".", 23 | toURLs: []string{"https://example.com/dns-query"}, 24 | }, 25 | }, 26 | { 27 | name: "FromAndTwoToURLs", 28 | input: "https . example.com/dns-query example.org/dns-query", 29 | expectedConfig: &httpsConfig{ 30 | from: ".", 31 | toURLs: []string{"https://example.com/dns-query", "https://example.org/dns-query"}, 32 | }, 33 | }, 34 | { 35 | name: "ExceptProperty", 36 | input: "https . example.com/dns-query {\nexcept domain.com\n}\n", 37 | expectedConfig: &httpsConfig{ 38 | from: ".", 39 | toURLs: []string{"https://example.com/dns-query"}, 40 | except: []string{"domain.com."}, 41 | }, 42 | }, 43 | { 44 | name: "ExceptPropertyURL", 45 | input: "https . example.com/dns-query {\nexcept https://domain.com\n}\n", 46 | expectedConfig: &httpsConfig{ 47 | from: ".", 48 | toURLs: []string{"https://example.com/dns-query"}, 49 | except: []string{"domain.com."}, 50 | }, 51 | }, 52 | { 53 | name: "ExceptPropertyTwoDomains", 54 | input: "https . example.com/dns-query {\nexcept domain1.com domain2.com\n}\n", 55 | expectedConfig: &httpsConfig{ 56 | from: ".", 57 | toURLs: []string{"https://example.com/dns-query"}, 58 | except: []string{"domain1.com.", "domain2.com."}, 59 | }, 60 | }, 61 | { 62 | name: "TLSServerNameProperty", 63 | input: "https . 10.1.1.1:853/dns-query {\ntls_servername internal.domain\n}\n", 64 | expectedConfig: &httpsConfig{ 65 | from: ".", 66 | toURLs: []string{"https://10.1.1.1:853/dns-query"}, 67 | tlsConfig: &tls.Config{ServerName: "internal.domain"}, 68 | tlsServerName: "internal.domain", 69 | }, 70 | }, 71 | { 72 | name: "PolicyPropertyRandom", 73 | input: "https . example.com/dns-query {\npolicy random\n}\n", 74 | expectedConfig: &httpsConfig{ 75 | from: ".", 76 | toURLs: []string{"https://example.com/dns-query"}, 77 | policy: newRandomPolicy(), 78 | }, 79 | }, 80 | { 81 | name: "PolicyPropertyRoundRobin", 82 | input: "https . example.com/dns-query {\npolicy round_robin\n}\n", 83 | expectedConfig: &httpsConfig{ 84 | from: ".", 85 | toURLs: []string{"https://example.com/dns-query"}, 86 | policy: newRoundRobinPolicy(), 87 | }, 88 | }, 89 | { 90 | name: "PolicyPropertySequential", 91 | input: "https . example.com/dns-query {\npolicy sequential\n}\n", 92 | expectedConfig: &httpsConfig{ 93 | from: ".", 94 | toURLs: []string{"https://example.com/dns-query"}, 95 | policy: newSequentialPolicy(), 96 | }, 97 | }, 98 | } 99 | for _, tt := range tests { 100 | t.Run(tt.name, func(t *testing.T) { 101 | c := caddy.NewTestController("https", tt.input) 102 | conf, err := parseConfig(c) 103 | require.NoError(t, err) 104 | require.Equal(t, tt.expectedConfig, conf) 105 | }) 106 | } 107 | } 108 | 109 | func TestParseConfigTLSProperty(t *testing.T) { 110 | input := "https . example.com/dns-query {\ntls\n}\n" 111 | c := caddy.NewTestController("https", input) 112 | conf, err := parseConfig(c) 113 | require.NoError(t, err) 114 | require.Equal(t, ".", conf.from) 115 | require.Equal(t, []string{"https://example.com/dns-query"}, conf.toURLs) 116 | require.NotNil(t, conf.tlsConfig) 117 | } 118 | 119 | func TestParseConfigError(t *testing.T) { 120 | tests := []struct { 121 | name string 122 | input string 123 | }{ 124 | { 125 | name: "EmptyLine", 126 | input: "", 127 | }, 128 | { 129 | name: "EmptyFrom", 130 | input: "https", 131 | }, 132 | { 133 | name: "EmptyToURLs", 134 | input: "https .", 135 | }, 136 | { 137 | name: "InvalidToURL", 138 | input: "https . abc:&", 139 | }, 140 | { 141 | name: "TooManyToURLs", 142 | input: "https . " + strings.Repeat("example.com/dns-query ", maxUpstreams+1), 143 | }, 144 | { 145 | name: "UnknownProperty", 146 | input: "https . example.com/dns-query {\nabc\n}\n", 147 | }, 148 | { 149 | name: "ExceptPropertyZeroArgs", 150 | input: "https . example.com/dns-query {\nexcept\n}\n", 151 | }, 152 | { 153 | name: "TLSPropertyTooManyArgs", 154 | input: "https . example.com/dns-query {\ntls abc def ghi qwe\n}\n", 155 | }, 156 | { 157 | name: "TLSServerNamePropertyZeroArgs", 158 | input: "https . example.com/dns-query {\ntls_servername\n}\n", 159 | }, 160 | { 161 | name: "TLSServerNamePropertyTooManyArgs", 162 | input: "https . example.com/dns-query {\ntls_servername abc.com def.com\n}\n", 163 | }, 164 | { 165 | name: "PolicyPropertyZeroArgs", 166 | input: "https . example.com/dns-query {\npolicy\n}\n", 167 | }, 168 | { 169 | name: "PolicyPropertyTooManyArgs", 170 | input: "https . example.com/dns-query {\npolicy random round_robin\n}\n", 171 | }, 172 | { 173 | name: "PolicyPropertyUnknownArg", 174 | input: "https . example.com/dns-query {\npolicy abc\n}\n", 175 | }, 176 | } 177 | for _, tt := range tests { 178 | t.Run(tt.name, func(t *testing.T) { 179 | c := caddy.NewTestController("https", tt.input) 180 | _, err := parseConfig(c) 181 | require.Error(t, err) 182 | }) 183 | } 184 | } 185 | --------------------------------------------------------------------------------