Commit Graph

486 Commits

Author SHA1 Message Date
Dimitri Herzog a4b89537db
update golangci-lint (#510)
* update golangci-lint

* enable gomnd linter

* enable asciicheck linter

* enable bidichk linter

* enable durationcheck linter

* enable errchkjson linter

* enable errorlint linter

* enable exhaustive linter

* enable gomoddirectives linter

* enable gomodguard guard

* enable grouper linter

* enable grouper and ifshort linters

* enable importas linter

* enable makezero linter

* enable nestif linter

* enable nilerr linter

* enable nilnil linter

* enable nlreturn linter

* enable nolintlint linter

* enable predeclared linter

* enable sqlclosecheck linter

* enable tenv linter

* enable wastedassign linter
2022-05-10 09:09:50 +02:00
Dimitri Herzog 41febafd41
chore: test cleanup and refactoring (#509)
test: added additional assertions, introduced channels for bus event tests, refactoring, eliminating race conditions in tests, enable race check in tests
2022-05-06 22:34:08 +02:00
Dimitri Herzog 53814a2208
chore: refactoring list cache, extracting download functionality (#508) 2022-05-06 17:57:33 +02:00
dependabot[bot] 8e472aa271
Bump gorm.io/driver/postgres from 1.3.4 to 1.3.5 (#503)
Bumps [gorm.io/driver/postgres](https://github.com/go-gorm/postgres) from 1.3.4 to 1.3.5.
- [Release notes](https://github.com/go-gorm/postgres/releases)
- [Commits](https://github.com/go-gorm/postgres/compare/v1.3.4...v1.3.5)

---
updated-dependencies:
- dependency-name: gorm.io/driver/postgres
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-27 10:51:26 +02:00
dependabot[bot] e34c6c7016
Bump gorm.io/gorm from 1.23.4 to 1.23.5 (#505)
Bumps [gorm.io/gorm](https://github.com/go-gorm/gorm) from 1.23.4 to 1.23.5.
- [Release notes](https://github.com/go-gorm/gorm/releases)
- [Commits](https://github.com/go-gorm/gorm/compare/v1.23.4...v1.23.5)

---
updated-dependencies:
- dependency-name: gorm.io/gorm
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-27 10:37:19 +02:00
dependabot[bot] 1197d6143d
Bump github.com/onsi/ginkgo/v2 from 2.1.3 to 2.1.4 (#506)
Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) from 2.1.3 to 2.1.4.
- [Release notes](https://github.com/onsi/ginkgo/releases)
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/ginkgo/compare/v2.1.3...v2.1.4)

---
updated-dependencies:
- dependency-name: github.com/onsi/ginkgo/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-27 10:37:08 +02:00
dependabot[bot] 8397c4426b
Bump gorm.io/driver/sqlite from 1.3.1 to 1.3.2 (#504)
Bumps [gorm.io/driver/sqlite](https://github.com/go-gorm/sqlite) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/go-gorm/sqlite/releases)
- [Commits](https://github.com/go-gorm/sqlite/compare/v1.3.1...v1.3.2)

---
updated-dependencies:
- dependency-name: gorm.io/driver/sqlite
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-26 10:44:24 +02:00
vimist 7285110f16
docs: Indent "Integration" sub-points on mkdocs index page (#502)
This rectifies the improperly aligned points on the mkdocs index page and normalises the formatting.
2022-04-26 10:44:14 +02:00
Dimitri Herzog 0a7e46a0d4
test: added additional assertions, introduced channels for bus event tests, refactoring (#501) 2022-04-26 10:43:23 +02:00
ThinkChaos 102d31e0f7
Change swagger URL to match blocky's version (#498) 2022-04-22 22:27:00 +02:00
dependabot[bot] 3774b8cfe0
Bump github.com/go-chi/cors from 1.2.0 to 1.2.1 (#499)
Bumps [github.com/go-chi/cors](https://github.com/go-chi/cors) from 1.2.0 to 1.2.1.
- [Release notes](https://github.com/go-chi/cors/releases)
- [Commits](https://github.com/go-chi/cors/compare/v1.2.0...v1.2.1)

---
updated-dependencies:
- dependency-name: github.com/go-chi/cors
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-22 22:13:29 +02:00
ThinkChaos 62c7816ab3
Support of DoH/DoT as bootstrap DNS (#485) 2022-04-22 22:12:35 +02:00
Dimitri Herzog b67df0b24f
Merge pull request #486 from 0xERR0R/dependabot/go_modules/gorm.io/driver/mysql-1.3.3
Bump gorm.io/driver/mysql from 1.3.2 to 1.3.3
2022-04-14 08:49:13 +02:00
Dimitri Herzog 002989951b
Merge pull request #496 from 0xERR0R/dependabot/go_modules/github.com/avast/retry-go/v4-4.0.4
Bump github.com/avast/retry-go/v4 from 4.0.3 to 4.0.4
2022-04-13 09:52:51 +02:00
Dimitri Herzog 3ae405002c
Merge pull request #497 from 0xERR0R/dependabot/go_modules/github.com/creasty/defaults-1.6.0
Bump github.com/creasty/defaults from 1.5.2 to 1.6.0
2022-04-13 09:52:38 +02:00
dependabot[bot] 9734eef2cb
Bump gorm.io/driver/mysql from 1.3.2 to 1.3.3
Bumps [gorm.io/driver/mysql](https://github.com/go-gorm/mysql) from 1.3.2 to 1.3.3.
- [Release notes](https://github.com/go-gorm/mysql/releases)
- [Commits](https://github.com/go-gorm/mysql/compare/v1.3.2...v1.3.3)

---
updated-dependencies:
- dependency-name: gorm.io/driver/mysql
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-13 07:24:28 +00:00
dependabot[bot] b503422dc6
Bump github.com/avast/retry-go/v4 from 4.0.3 to 4.0.4
Bumps [github.com/avast/retry-go/v4](https://github.com/avast/retry-go) from 4.0.3 to 4.0.4.
- [Release notes](https://github.com/avast/retry-go/releases)
- [Commits](https://github.com/avast/retry-go/compare/4.0.3...4.0.4)

---
updated-dependencies:
- dependency-name: github.com/avast/retry-go/v4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-13 07:24:25 +00:00
dependabot[bot] 568e2554a1
Bump github.com/creasty/defaults from 1.5.2 to 1.6.0
Bumps [github.com/creasty/defaults](https://github.com/creasty/defaults) from 1.5.2 to 1.6.0.
- [Release notes](https://github.com/creasty/defaults/releases)
- [Commits](https://github.com/creasty/defaults/compare/v1.5.2...v1.6.0)

---
updated-dependencies:
- dependency-name: github.com/creasty/defaults
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-13 07:24:01 +00:00
Dimitri Herzog 8d5c2b10b5
update setup-go action 2022-04-13 09:19:00 +02:00
Dimitri Herzog 828a706ee3
update golangci-lint-action 2022-04-13 09:12:08 +02:00
Dimitri Herzog e60b213a7d
Merge pull request #492 from 0xERR0R/dependabot/go_modules/gorm.io/driver/postgres-1.3.4
Bump gorm.io/driver/postgres from 1.3.3 to 1.3.4
2022-04-11 22:40:56 +02:00
dependabot[bot] 8fabd2c92d
Bump gorm.io/driver/postgres from 1.3.3 to 1.3.4
Bumps [gorm.io/driver/postgres](https://github.com/go-gorm/postgres) from 1.3.3 to 1.3.4.
- [Release notes](https://github.com/go-gorm/postgres/releases)
- [Commits](https://github.com/go-gorm/postgres/compare/v1.3.3...v1.3.4)

---
updated-dependencies:
- dependency-name: gorm.io/driver/postgres
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-08 04:06:06 +00:00
dependabot[bot] 79f982cf91
Bump gorm.io/driver/postgres from 1.3.1 to 1.3.3 (#487)
Bumps [gorm.io/driver/postgres](https://github.com/go-gorm/postgres) from 1.3.1 to 1.3.3.
- [Release notes](https://github.com/go-gorm/postgres/releases)
- [Commits](https://github.com/go-gorm/postgres/compare/v1.3.1...v1.3.3)

---
updated-dependencies:
- dependency-name: gorm.io/driver/postgres
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-06 16:32:38 +02:00
dependabot[bot] bc8a35e501
Bump gorm.io/gorm from 1.23.3 to 1.23.4 (#488)
Bumps [gorm.io/gorm](https://github.com/go-gorm/gorm) from 1.23.3 to 1.23.4.
- [Release notes](https://github.com/go-gorm/gorm/releases)
- [Commits](https://github.com/go-gorm/gorm/compare/v1.23.3...v1.23.4)

---
updated-dependencies:
- dependency-name: gorm.io/gorm
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-06 16:32:28 +02:00
dependabot[bot] b2c0535aed
Bump github.com/miekg/dns from 1.1.47 to 1.1.48 (#489)
Bumps [github.com/miekg/dns](https://github.com/miekg/dns) from 1.1.47 to 1.1.48.
- [Release notes](https://github.com/miekg/dns/releases)
- [Changelog](https://github.com/miekg/dns/blob/master/Makefile.release)
- [Commits](https://github.com/miekg/dns/compare/v1.1.47...v1.1.48)

---
updated-dependencies:
- dependency-name: github.com/miekg/dns
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-05 17:29:09 +02:00
Peter Dave Hello 3a7d52b546
Add default Block TTL information in the docs (#484) 2022-04-02 22:05:07 +02:00
Peter Dave Hello 45fae43b10
Fix the indent of yaml code block in docs/configuration.md (#481) 2022-04-02 22:04:26 +02:00
Peter Dave Hello bec973b4f3
Update reference configuration file in the docs (#480)
To prevent the warning:

> net prefix tcp is deprecated, using tcp+udp as default fallback
2022-04-02 21:54:20 +02:00
ohemmali 4d1f09f184
Fixing unexpanded CMD variable with correct defaulting behavior. (#478)
Co-authored-by: Omar <omar@hemmali.com>
2022-04-01 09:12:03 +02:00
dependabot[bot] c686ca0379
Bump github.com/swaggo/swag from 1.8.0 to 1.8.1 (#479)
Bumps [github.com/swaggo/swag](https://github.com/swaggo/swag) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/swaggo/swag/releases)
- [Changelog](https://github.com/swaggo/swag/blob/master/.goreleaser.yml)
- [Commits](https://github.com/swaggo/swag/compare/v1.8.0...v1.8.1)

---
updated-dependencies:
- dependency-name: github.com/swaggo/swag
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-01 09:11:41 +02:00
Dimitri Herzog 28789ee7fe
filtering of queries (#450) (#474) 2022-04-01 08:58:09 +02:00
Dimitri Herzog 5427c1697c docs: added container parameters description 2022-03-31 22:50:20 +02:00
ohemmali beb380edcb
Defining env var for configurable config file location (#473)
Co-authored-by: Omar <omar@hemmali.com>
2022-03-31 22:49:23 +02:00
Dimitri Herzog 27f9c8b9a0 chore: improved error logging 2022-03-31 22:29:36 +02:00
Dimitri Herzog 81b896a01d chore: increased test timeout 2022-03-31 22:27:45 +02:00
Dimitri Herzog c96802b546 go mod tidy 2022-03-28 21:49:26 +02:00
Dimitri Herzog d1289e8452 removed deprecated configuration parameters 2022-03-28 21:48:49 +02:00
Dimitri Herzog 476dd7d0eb update go-enum to v0.4.0 2022-03-28 21:35:48 +02:00
dependabot[bot] 56712ff1be
Bump github.com/onsi/gomega from 1.18.1 to 1.19.0 (#469)
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.18.1 to 1.19.0.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.18.1...v1.19.0)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-28 08:44:08 +02:00
Dimitri Herzog 78376058c2 test: added unmarshalling tests 2022-03-25 22:04:26 +01:00
dependabot[bot] 8acf47456f
Bump github.com/alicebob/miniredis/v2 from 2.19.0 to 2.20.0 (#468)
Bumps [github.com/alicebob/miniredis/v2](https://github.com/alicebob/miniredis) from 2.19.0 to 2.20.0.
- [Release notes](https://github.com/alicebob/miniredis/releases)
- [Changelog](https://github.com/alicebob/miniredis/blob/master/CHANGELOG.md)
- [Commits](https://github.com/alicebob/miniredis/compare/v2.19.0...v2.20.0)

---
updated-dependencies:
- dependency-name: github.com/alicebob/miniredis/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-24 08:26:02 +01:00
Dimitri Herzog 2bb2f97f8f
CustomDNS: parameter "filterUnmappedTypes" to allow/disable forwarding to the upstream resolver (#467) 2022-03-22 22:15:31 +01:00
Dimitri Herzog 108d5ba9f7 test: increased the timeout 2022-03-22 22:11:13 +01:00
dependabot[bot] 07f0d1f0f8
Bump gorm.io/gorm from 1.23.2 to 1.23.3 (#463)
Bumps [gorm.io/gorm](https://github.com/go-gorm/gorm) from 1.23.2 to 1.23.3.
- [Release notes](https://github.com/go-gorm/gorm/releases)
- [Commits](https://github.com/go-gorm/gorm/compare/v1.23.2...v1.23.3)

---
updated-dependencies:
- dependency-name: gorm.io/gorm
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-21 13:45:13 +01:00
Dimitri Herzog f44fc032f0 cache DNS queries in bootstrap DNS (#454) 2022-03-19 22:56:18 +01:00
dependabot[bot] dbd17303d6
Bump github.com/spf13/cobra from 1.3.0 to 1.4.0 (#451)
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.3.0 to 1.4.0.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Changelog](https://github.com/spf13/cobra/blob/master/CHANGELOG.md)
- [Commits](https://github.com/spf13/cobra/compare/v1.3.0...v1.4.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-18 07:35:02 +01:00
dependabot[bot] e0f2ba4e27
Bump github.com/go-redis/redis/v8 from 8.11.4 to 8.11.5 (#460)
Bumps [github.com/go-redis/redis/v8](https://github.com/go-redis/redis) from 8.11.4 to 8.11.5.
- [Release notes](https://github.com/go-redis/redis/releases)
- [Changelog](https://github.com/go-redis/redis/blob/master/CHANGELOG.md)
- [Commits](https://github.com/go-redis/redis/compare/v8.11.4...v8.11.5)

---
updated-dependencies:
- dependency-name: github.com/go-redis/redis/v8
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-18 07:34:06 +01:00
dependabot[bot] 7289db85c2
Bump github.com/stretchr/testify from 1.7.0 to 1.7.1 (#456)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.0 to 1.7.1.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.0...v1.7.1)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-17 22:31:53 +01:00
dependabot[bot] 81dd0c979a
Bump github.com/alicebob/miniredis/v2 from 2.18.0 to 2.19.0 (#458)
Bumps [github.com/alicebob/miniredis/v2](https://github.com/alicebob/miniredis) from 2.18.0 to 2.19.0.
- [Release notes](https://github.com/alicebob/miniredis/releases)
- [Changelog](https://github.com/alicebob/miniredis/blob/master/CHANGELOG.md)
- [Commits](https://github.com/alicebob/miniredis/compare/v2.18.0...v2.19.0)

---
updated-dependencies:
- dependency-name: github.com/alicebob/miniredis/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-17 22:31:28 +01:00
ThinkChaos f8b6e59ef4
Add rewrite support to custom DNS (#449)
This commit extracts rewriting logic from `ConditionalUpstreamResolver`
into the new `RewriterResolver`, and uses that to enable rewriting for
the `CustomDNSResolver`.
`RewriterResolver` wraps a resolver and applies the rewrite to the
request that is forwarded to the inner resolver.

It also introduces a new optional interface: `NamedResolver`.
This allows a `Resolver` to choose what its user friendly name is,
instead of always being its type name.
2022-03-17 22:30:21 +01:00