Commit Graph

630 Commits

Author SHA1 Message Date
Kwitsch fadc39ef64
Merge pull request #16 from 0xERR0R/development
[pull] development from 0xERR0R:development
2022-08-22 21:43:43 +02:00
FileGo 7ce875f105 Filter loopback addresses from hosts file 2022-08-22 09:28:55 +01:00
FileGo 377f4764fe
Enable start as long as at least one upstream resolver in group is reachable (#608)
* Enable start if one upstream resolver fails

* Will now check if upstream actually works

* Fixed default upstream in some tests

* Increase timeouts in some tests

* change default value of "StartVerifyUpstream" to false

Co-authored-by: Dimitri Herzog <dimitri.herzog@gmail.com>
2022-08-21 17:21:08 +02:00
Dimitri Herzog 421807fc22
chore: update golangci-lint (#631) 2022-08-19 22:04:35 +02:00
Dimitri Herzog 8d0ef766a0 chore: update github.com/prometheus/client_golang 2022-08-16 22:29:37 +02:00
Dimitri Herzog 87086aa925 chore: update gorm.io/driver/mysql 2022-08-16 22:23:33 +02:00
Dimitri Herzog f9705f160a chore: update gorm.io/driver/postgres 2022-08-16 22:21:13 +02:00
Dimitri Herzog d796d91fdb chore: update github.com/alicebob/miniredis/v2 2022-08-16 22:18:46 +02:00
Dimitri Herzog 7a62187ed2 chore: update github.com/abice/go-enum 2022-08-16 22:17:51 +02:00
Kwitsch 8b1840be99
Merge branch 'development' into development 2022-08-07 02:04:07 +02:00
Kwitsch 9c80a5f9a9
test: use dynamic unit test data (#624) 2022-08-06 22:44:26 +02:00
Kwitsch 5e9eaa2965
delivery of blocking group as EDNS error(560) (#611) 2022-08-06 22:30:26 +02:00
Kwitsch 1633a5442f
Merge pull request #15 from 0xERR0R/development
[pull] development from 0xERR0R:development
2022-08-06 00:45:45 +02:00
Dimitri Herzog a9500bf06d
chore: add stale action (#623) 2022-08-04 11:56:30 +02:00
Dimitri Herzog 4792929326
chore: customize codecov project status, disable threshold for PRs (#622) 2022-08-04 08:42:38 +02:00
Dimitri Herzog dfd0aa8e7f
chore: switch to codecov GitHub Action (#620) 2022-08-03 22:41:09 +02:00
Dimitri Herzog 9550ff9983
chore: Define golang version only in go.mod (#618) (#619) 2022-08-03 22:32:02 +02:00
Dimitri Herzog 3c5b7a20dc
chore: Managing of external tools with go modules (#616) (#617) 2022-08-03 22:10:07 +02:00
Dimitri Herzog 0ce5002560 chore: use github changelog for release 2022-08-03 14:36:27 +00:00
Dimitri Herzog b1973702bd chore: update golangci-lint to v1.47.3 2022-08-01 23:19:35 +02:00
deso 6ddee221e4
Disable colors when not in interactive terminal (#602) (#603)
Forcing colors in logrus causes color escapes sequences when logging to file or pipe.
2022-08-01 22:36:54 +02:00
Kwitsch 51ef9ea77f
test: fix flaky test(537) - second hunt (#610)
* go test -> ginkgo

* removed flake-attempts as suggested

* added FlakeAttempts to flaky test definition

* as net.DNSError qualifies as net.Error check and correct the response

* fix in downloader.go resolves flaky tests

* unwrap maybe?

* excluede DownloadFile from funlen linter

* use eventually on io operations in file_writer_test

* file_writer_test flaky fixes

* fix linter errors

* Serve test reversed go routine

* matcher fix

* serve test rework 2

* DeferCleanup tmp files

* fixed some flakiness in resolver tests

* go mod tidy

* fixed linter errors

* JustAfterEach -> DeferCleanup

* changed close to defer

* moved unwrap from downloader to test

* fix linter error

* propper cleanup in "should return error"

Co-authored-by: Dimitri Herzog <dimitri.herzog@gmail.com>
2022-08-01 22:27:11 +02:00
Kwitsch a9ebb22914
Merge pull request #14 from 0xERR0R/development
[pull] development from 0xERR0R:development
2022-07-30 04:02:00 +02:00
Dimitri Herzog e4445f05f6
Add primary key to the query log table #585 (#609) 2022-07-28 23:08:37 +02:00
Kwitsch 35bd3796f0
Merge pull request #13 from 0xERR0R/development
[pull] development from 0xERR0R:development
2022-07-27 15:33:06 +02:00
dependabot[bot] 88991379cf
Bump github.com/sirupsen/logrus from 1.8.1 to 1.9.0 (#600)
Bumps [github.com/sirupsen/logrus](https://github.com/sirupsen/logrus) from 1.8.1 to 1.9.0.
- [Release notes](https://github.com/sirupsen/logrus/releases)
- [Changelog](https://github.com/sirupsen/logrus/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sirupsen/logrus/compare/v1.8.1...v1.9.0)

---
updated-dependencies:
- dependency-name: github.com/sirupsen/logrus
  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-07-23 22:14:13 +02:00
dependabot[bot] d0e2ff4aa1
Bump github.com/onsi/gomega from 1.19.0 to 1.20.0 (#604)
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.19.0 to 1.20.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.19.0...v1.20.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-07-23 21:54:26 +02:00
Kwitsch 2bf0206df1
Merge pull request #12 from 0xERR0R/development
[pull] development from 0xERR0R:development
2022-07-22 23:07:09 +02:00
dependabot[bot] 50ac5ce8fe
Bump gorm.io/driver/mysql from 1.3.4 to 1.3.5 (#598)
Bumps [gorm.io/driver/mysql](https://github.com/go-gorm/mysql) from 1.3.4 to 1.3.5.
- [Release notes](https://github.com/go-gorm/mysql/releases)
- [Commits](https://github.com/go-gorm/mysql/compare/v1.3.4...v1.3.5)

---
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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-11 08:18:14 +02:00
Adyanth H 31cf8c77d5
Add fallbackUpstream for conditional mapping (#593) 2022-07-11 08:06:42 +02:00
Kwitsch 9756ff8f7a
Merge pull request #11 from 0xERR0R/development
[pull] development from 0xERR0R:development
2022-07-09 14:51:50 +02:00
Peter Dave Hello d8c69b1f1d
Update golang.org/x/crypto to mitigate CVE (#595)
* Update golang.org/x/crypto to mitigate CVE

There are two high severity, and one medium severity CVE in current
crypto package.

Reference:

- https://www.cve.org/CVERecord?id=CVE-2020-9283
- https://www.cve.org/CVERecord?id=CVE-2020-29652
- https://www.cve.org/CVERecord?id=CVE-2022-27191

* go mod tidy

Co-authored-by: Dimitri Herzog <dimitri.herzog@gmail.com>
2022-07-08 12:32:07 +02:00
dependabot[bot] bfa46bf45b
Bump gorm.io/driver/sqlite from 1.3.5 to 1.3.6 (#592)
Bumps [gorm.io/driver/sqlite](https://github.com/go-gorm/sqlite) from 1.3.5 to 1.3.6.
- [Release notes](https://github.com/go-gorm/sqlite/releases)
- [Commits](https://github.com/go-gorm/sqlite/compare/v1.3.5...v1.3.6)

---
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-07-08 12:11:09 +02:00
dependabot[bot] f3a5bc5db1
Bump gorm.io/driver/postgres from 1.3.7 to 1.3.8 (#591)
Bumps [gorm.io/driver/postgres](https://github.com/go-gorm/postgres) from 1.3.7 to 1.3.8.
- [Release notes](https://github.com/go-gorm/postgres/releases)
- [Commits](https://github.com/go-gorm/postgres/compare/v1.3.7...v1.3.8)

---
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-07-08 11:08:13 +02:00
dependabot[bot] f56566ec6c
Bump github.com/stretchr/testify from 1.7.5 to 1.8.0 (#582)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.5 to 1.8.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.5...v1.8.0)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  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-07-08 10:30:24 +02:00
dependabot[bot] 3012204c0f
Bump gorm.io/gorm from 1.23.7 to 1.23.8 (#596)
Bumps [gorm.io/gorm](https://github.com/go-gorm/gorm) from 1.23.7 to 1.23.8.
- [Release notes](https://github.com/go-gorm/gorm/releases)
- [Commits](https://github.com/go-gorm/gorm/compare/v1.23.7...v1.23.8)

---
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-07-08 10:29:36 +02:00
Kwitsch 061419f68f
chore: use ginkgo for test executions (#537) (#562)
* go test -> ginkgo

* added FlakeAttempts to flaky test definition

Co-authored-by: Dimitri Herzog <dimitri.herzog@gmail.com>
2022-07-08 08:04:08 +02:00
dependabot[bot] 988556dc80
Bump github.com/alicebob/miniredis/v2 from 2.21.0 to 2.22.0 (#583)
Bumps [github.com/alicebob/miniredis/v2](https://github.com/alicebob/miniredis) from 2.21.0 to 2.22.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.21.0...v2.22.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-07-05 15:24:56 +02:00
dependabot[bot] 8d26c1b56c
Bump gorm.io/gorm from 1.23.6 to 1.23.7 (#590)
Bumps [gorm.io/gorm](https://github.com/go-gorm/gorm) from 1.23.6 to 1.23.7.
- [Release notes](https://github.com/go-gorm/gorm/releases)
- [Commits](https://github.com/go-gorm/gorm/compare/v1.23.6...v1.23.7)

---
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-07-05 15:24:45 +02:00
Kwitsch d9ff40e73e
Merge pull request #10 from 0xERR0R/development
[pull] development from 0xERR0R:development
2022-07-01 20:59:46 +02:00
Dimitri Herzog 01b7947ff2 Link blocky-frontend in the project documentation #570 2022-06-29 22:46:13 +02:00
Dimitri Herzog a903565cb0
set content-type header for HTTP endpoints (#581) 2022-06-29 22:36:54 +02:00
Dimitri Herzog 3b620102a7
set host header for DoH requests (#580) 2022-06-29 21:39:39 +02:00
dependabot[bot] 108b149959
Bump gorm.io/driver/sqlite from 1.3.4 to 1.3.5 (#579)
Bumps [gorm.io/driver/sqlite](https://github.com/go-gorm/sqlite) from 1.3.4 to 1.3.5.
- [Release notes](https://github.com/go-gorm/sqlite/releases)
- [Commits](https://github.com/go-gorm/sqlite/compare/v1.3.4...v1.3.5)

---
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-06-29 10:37:23 +02:00
dependabot[bot] 3009eecc1f
Bump github.com/miekg/dns from 1.1.49 to 1.1.50 (#572)
Bumps [github.com/miekg/dns](https://github.com/miekg/dns) from 1.1.49 to 1.1.50.
- [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.49...v1.1.50)

---
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-06-28 11:48:19 +02:00
Jordi Masip b02f138d4b
docs: fix `filterUnmappedTypes` example (#574) 2022-06-28 11:48:00 +02:00
dependabot[bot] fb7a4d99a8
Bump github.com/stretchr/testify from 1.7.4 to 1.7.5 (#573)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.4 to 1.7.5.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.4...v1.7.5)

---
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-06-24 08:11:35 +02:00
dependabot[bot] 24ace7e0de
Bump github.com/stretchr/testify from 1.7.2 to 1.7.4 (#568)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.2 to 1.7.4.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.2...v1.7.4)

---
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-06-21 11:31:42 +02:00
dependabot[bot] 68315a37b7
Bump github.com/spf13/cobra from 1.4.0 to 1.5.0 (#569)
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](https://github.com/spf13/cobra/compare/v1.4.0...v1.5.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>
Co-authored-by: Dimitri Herzog <dimitri.herzog@gmail.com>
2022-06-21 09:36:19 +02:00
dependabot[bot] a4dd170a31
Bump github.com/avast/retry-go/v4 from 4.0.5 to 4.1.0 (#563)
Bumps [github.com/avast/retry-go/v4](https://github.com/avast/retry-go) from 4.0.5 to 4.1.0.
- [Release notes](https://github.com/avast/retry-go/releases)
- [Commits](https://github.com/avast/retry-go/compare/4.0.5...4.1.0)

---
updated-dependencies:
- dependency-name: github.com/avast/retry-go/v4
  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-06-21 08:31:21 +02:00