]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
17 months agoauth-4.5.x: remove spell checker 13885/head
Peter van Dijk [Mon, 11 Mar 2024 08:37:23 +0000 (09:37 +0100)] 
auth-4.5.x: remove spell checker

2 years agoMerge pull request #12642 from romeroalx/update-gh-actions-auth-to-4.5
Peter van Dijk [Fri, 24 Mar 2023 08:52:34 +0000 (09:52 +0100)] 
Merge pull request #12642 from romeroalx/update-gh-actions-auth-to-4.5

Backport GH Actions updates from master to auth-4.5.x

2 years agoUse actions/checkout@v3 12642/head
Josh Soref [Thu, 9 Mar 2023 15:47:03 +0000 (10:47 -0500)] 
Use actions/checkout@v3

2 years agobuild(deps): bump actions/setup-python from 2 to 4
dependabot[bot] [Wed, 19 Oct 2022 14:28:07 +0000 (14:28 +0000)] 
build(deps): bump actions/setup-python from 2 to 4

Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 4.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agoRestrict permissions for GITHUB_TOKEN in our workflows
Remi Gacogne [Thu, 1 Dec 2022 13:34:19 +0000 (14:34 +0100)] 
Restrict permissions for GITHUB_TOKEN in our workflows

Added using https://github.com/step-security/secure-workflows
For more information see:
- https://github.com/ossf/scorecard/blob/d8fefc9b246db3600c777e9d60d441d7c386ce1d/docs/checks.md#token-permissions
- https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token/

2 years agobuild(deps): bump actions/upload-artifact from 1 to 3
dependabot[bot] [Wed, 19 Oct 2022 14:28:01 +0000 (14:28 +0000)] 
build(deps): bump actions/upload-artifact from 1 to 3

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 1 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v1...v3)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agobuild(deps): bump actions/checkout from 2.3.4 to 3.1.0
dependabot[bot] [Wed, 19 Oct 2022 14:44:55 +0000 (14:44 +0000)] 
build(deps): bump actions/checkout from 2.3.4 to 3.1.0

Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.4 to 3.1.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2.3.4...v3.1.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agoMerge pull request #11757 from Habbie/backport-11641-to-auth-4.5.x auth-4.5.5
Peter van Dijk [Tue, 6 Dec 2022 10:51:00 +0000 (11:51 +0100)] 
Merge pull request #11757 from Habbie/backport-11641-to-auth-4.5.x

auth-4.5.x: Move to v2 for CodeQL action, v1 will be deprecated dec 2022

2 years agoMerge pull request #12032 from Habbie/backport-11953-to-auth-4.5.x
Peter van Dijk [Tue, 6 Dec 2022 10:50:48 +0000 (11:50 +0100)] 
Merge pull request #12032 from Habbie/backport-11953-to-auth-4.5.x

auth-4.5: axfr-retriever: abort on chunk with TC set

2 years agoaxfr-retriever: abort on chunk with TC set 12032/head
Peter van Dijk [Wed, 14 Sep 2022 11:22:09 +0000 (13:22 +0200)] 
axfr-retriever: abort on chunk with TC set

(cherry picked from commit 0923e5df06e10e7afb19dc5ce534b07450792ab1)

2 years agoMove to v2 for CodeQL action, v1 will be deprecated dec 2022 11757/head
Otto Moerbeek [Tue, 24 May 2022 10:36:28 +0000 (12:36 +0200)] 
Move to v2 for CodeQL action, v1 will be deprecated dec 2022

(cherry picked from commit a0c99342e7aa22e16a75d9e7daa4de69d087bc38)

2 years agoMerge pull request #12268 from Habbie/backport-11592-to-auth-4.5.x
Peter van Dijk [Tue, 6 Dec 2022 10:02:38 +0000 (11:02 +0100)] 
Merge pull request #12268 from Habbie/backport-11592-to-auth-4.5.x

auth 4.5: fix race in incomplete xfr test

2 years agoSo the race is between setting the new serial to return and the message coming in 12268/head
Otto Moerbeek [Fri, 29 Apr 2022 13:44:52 +0000 (13:44 +0000)] 
So the race is between setting the new serial to return and the message coming in
Make sure we set the new serial asap

(cherry picked from commit 41c76595618291f9b69d7e03f3e7d1239cbfe1e9)

2 years agoAdd debug print lines to the new test_XFRIncomplete that fails occasionally on GH...
Otto Moerbeek [Fri, 29 Apr 2022 13:14:00 +0000 (13:14 +0000)] 
Add debug print lines to the new test_XFRIncomplete that fails occasionally on GH Actions.

Using a slow loaded VM I could reproduce these failures once in a while.
Adding the print statements made the failures go away. Maybe some form
of synchronization is going on with the extra debug I/O?  Committing this
to see what happens on GH Actions.

(cherry picked from commit c8e8ec462c7c858fe28bf6e88525e099e414b477)

2 years agoMerge pull request #12034 from Habbie/backport-11929-to-auth-4.5.x
Peter van Dijk [Thu, 20 Oct 2022 16:28:38 +0000 (18:28 +0200)] 
Merge pull request #12034 from Habbie/backport-11929-to-auth-4.5.x

auth-4.5: auth LUA records: we only need one IsUpOracle checker thread

2 years agoauth LUA: fix "braces around scalar initializer" warning 12034/head
Peter van Dijk [Mon, 12 Sep 2022 07:36:56 +0000 (09:36 +0200)] 
auth LUA: fix "braces around scalar initializer" warning

inspired by #6188

(cherry picked from commit d27a2d307e4a0dcf0671046910994a2bf3ba945e)

2 years agoauth LUA records: we only need one IsUpOracle checker thread
Peter van Dijk [Sun, 11 Sep 2022 11:31:02 +0000 (13:31 +0200)] 
auth LUA records: we only need one IsUpOracle checker thread

(cherry picked from commit 37f625b0af0b5e818de97b83dd96709df118ad6b)

2 years agoMerge pull request #12036 from Habbie/auth-4.5-authpy-circleci
Peter van Dijk [Tue, 27 Sep 2022 14:27:12 +0000 (16:27 +0200)] 
Merge pull request #12036 from Habbie/auth-4.5-authpy-circleci

auth-4.5.x: circleci auth-py: set pdns_control path

2 years agocircleci auth-py: set pdns_control path 12036/head
Peter van Dijk [Tue, 27 Sep 2022 11:58:28 +0000 (13:58 +0200)] 
circleci auth-py: set pdns_control path

2 years agoMerge pull request #11979 from Habbie/backport-11961-to-auth-4.5.x
Peter van Dijk [Tue, 20 Sep 2022 07:18:26 +0000 (09:18 +0200)] 
Merge pull request #11979 from Habbie/backport-11961-to-auth-4.5.x

auth 4.5.x docker: upgrade to bullseye

2 years agodocker: upgrade to bullseye 11979/head
Peter van Dijk [Thu, 15 Sep 2022 13:14:34 +0000 (15:14 +0200)] 
docker: upgrade to bullseye

(cherry picked from commit a0d3acff25a92627186ee43bead110aef416f59a)

3 years agoMerge pull request #11454 from Habbie/auth-4.5.x-xfr
Peter van Dijk [Mon, 28 Mar 2022 09:51:32 +0000 (11:51 +0200)] 
Merge pull request #11454 from Habbie/auth-4.5.x-xfr

auth 4.5.x IXFR-in: Fix a case where an incomplete read caused by netw…

3 years agoMerge pull request #11460 from Habbie/backport-11449-to-auth-4.5.x
Otto Moerbeek [Fri, 25 Mar 2022 15:33:32 +0000 (16:33 +0100)] 
Merge pull request #11460 from Habbie/backport-11449-to-auth-4.5.x

auth-4.5.x docs: Pin jinja2 to < 3.1.0

3 years agodocs: Pin jinja2 to < 3.1.0 11460/head
Remi Gacogne [Fri, 25 Mar 2022 08:45:55 +0000 (09:45 +0100)] 
docs: Pin jinja2 to < 3.1.0

Jinja2 3.1.0 removed deprecated code that is still used by sphinx
1.8.x, and it looks like our custom sphinx extensions are not working
with more recent versions of sphinx..

See:
- https://github.com/pallets/jinja/issues/1631
- https://github.com/readthedocs/readthedocs.org/issues/9037

and

- https://github.com/PowerDNS/pdns/pull/7712

The exact error is:
```
Extension error:
Could not import extension sphinx.builders.latex (exception: cannot import name 'contextfunction' from 'jinja2' (/dnsdist/pdns/dnsdistdist/.venv/lib/python3.7/site-packages/jinja2/__init__.py))
```

(cherry picked from commit 92ad29702011ac7cbd0d7d118ba612e7e07cedbe)

3 years agoauth, rec IXFR-in: Fix a case where an incomplete read caused by network error might... 11454/head auth-4.5.4
Otto Moerbeek [Tue, 8 Mar 2022 14:36:48 +0000 (15:36 +0100)] 
auth, rec IXFR-in: Fix a case where an incomplete read caused by network error might result in a truncated zone.

As we might break from the loop early, we need to check if the end SOA was seen after the loop.
Also make sure we detect end conditions for both AXFR and IXFR style properly, to avoid processing
data after the end marker.

3 years agoMerge pull request #11273 from Habbie/backport-11262-to-auth-4.5.x
Peter van Dijk [Thu, 3 Feb 2022 10:20:51 +0000 (11:20 +0100)] 
Merge pull request #11273 from Habbie/backport-11262-to-auth-4.5.x

auth-4.5.x: builder: migrate EL8 builds to oraclelinux, rename centos8 to el8 where possible

3 years agobuilder: add el-7 alias for centos-7 11273/head
Peter van Dijk [Mon, 31 Jan 2022 17:15:14 +0000 (18:15 +0100)] 
builder: add el-7 alias for centos-7

(cherry picked from commit 6bd3c9bb23f5dfc385a66647ab175ec2812d6617)

3 years agotake centos 8-stream from quay
Peter van Dijk [Mon, 31 Jan 2022 15:43:54 +0000 (16:43 +0100)] 
take centos 8-stream from quay

(cherry picked from commit 2f9edddc0c9c1f8a68e154f6c12e3fd214420563)

3 years agobuilder CI: switch oraclelinux-8 to el-8
Peter van Dijk [Mon, 31 Jan 2022 15:28:34 +0000 (16:28 +0100)] 
builder CI: switch oraclelinux-8 to el-8

cleanup

(cherry picked from commit 1b27721782ad3dc547ed448a257c59829ff0bd94)

3 years agobuilder: archs for oraclelinux-8; el-8 symlinks
Peter van Dijk [Mon, 31 Jan 2022 15:28:04 +0000 (16:28 +0100)] 
builder: archs for oraclelinux-8; el-8 symlinks

(cherry picked from commit dee53cf16161a6c45560475b647de420842532ef)

3 years agoMerge pull request #11214 from Habbie/backport-11182-to-auth-4.5.x
Peter van Dijk [Wed, 19 Jan 2022 11:07:44 +0000 (12:07 +0100)] 
Merge pull request #11214 from Habbie/backport-11182-to-auth-4.5.x

auth-4.5.x: update copyright years to 2022

3 years agofix copyright year in README.md 11214/head
Peter van Dijk [Wed, 19 Jan 2022 10:52:26 +0000 (11:52 +0100)] 
fix copyright year in README.md

3 years agoalso bump ws-auth.cc copyright year
Peter van Dijk [Thu, 13 Jan 2022 15:14:56 +0000 (16:14 +0100)] 
also bump ws-auth.cc copyright year

(cherry picked from commit 0ced10325d9baefd0f9eafa914d03dde0dbd2905)

3 years agoBump copyright year
Otto Moerbeek [Fri, 7 Jan 2022 08:00:30 +0000 (09:00 +0100)] 
Bump copyright year

(cherry picked from commit 2d0db0d9655eb1474367cf0dc565ad8710dda507)
(cherry picked from commit 87fd4e74ece862a7265e58dbd90af4b6f4ffd192)

3 years agoMerge pull request #11211 from Habbie/backport-11208-to-auth-4.5.x auth-4.5.3
Peter van Dijk [Tue, 18 Jan 2022 21:41:37 +0000 (22:41 +0100)] 
Merge pull request #11211 from Habbie/backport-11208-to-auth-4.5.x

auth-4.5.x: CI: dnspython 2.2.0 breaks auth and ixfrdist testing, pin to 2.1.0

3 years agoCI: dnspython 2.2.0 breaks auth and ixfrdist testing, pin to 2.1.0 11211/head
Peter van Dijk [Tue, 18 Jan 2022 15:40:52 +0000 (16:40 +0100)] 
CI: dnspython 2.2.0 breaks auth and ixfrdist testing, pin to 2.1.0

(cherry picked from commit 46a40ed033d64f58aa30013d7e68daa5b5e8d615)

3 years agoMerge pull request #11146 from Habbie/backport-11144-to-auth-4.5.x
Peter van Dijk [Tue, 11 Jan 2022 14:30:31 +0000 (15:30 +0100)] 
Merge pull request #11146 from Habbie/backport-11144-to-auth-4.5.x

auth-4.5.x: pdnsutil edit-zone: fix n and e behaviour on increase-serial prompt, fixes #11142

3 years agoMerge pull request #11158 from mind04/pdns-bp-lmdb-lookup
Peter van Dijk [Tue, 11 Jan 2022 13:28:10 +0000 (14:28 +0100)] 
Merge pull request #11158 from mind04/pdns-bp-lmdb-lookup

auth-4.5.x: lmdb, check if the lookup name is part of the zone

3 years agoauth: lmdb, check if the lookup name is part of the zone 11158/head
Kees Monshouwer [Fri, 7 Jan 2022 23:29:38 +0000 (00:29 +0100)] 
auth: lmdb, check if the lookup name is part of the zone

3 years agopdnsutil edit-zone: fix n and e behaviour on increase-serial prompt, fixes #11142 11146/head
Peter van Dijk [Wed, 5 Jan 2022 19:04:13 +0000 (20:04 +0100)] 
pdnsutil edit-zone: fix n and e behaviour on increase-serial prompt, fixes #11142

(cherry picked from commit fef0fbfc86aaeee03acf62c9d13af70f373679eb)

3 years agoMerge pull request #11123 from mind04/auth-4.5.3-bp
Peter van Dijk [Tue, 28 Dec 2021 15:43:26 +0000 (16:43 +0100)] 
Merge pull request #11123 from mind04/auth-4.5.3-bp

Auth-4.5.x: backports

3 years agoauth: improve tcp exception handling 11123/head
Kees Monshouwer [Wed, 22 Dec 2021 12:18:57 +0000 (13:18 +0100)] 
auth: improve tcp exception handling

3 years agoauth: lmdb: fix records removal in deleteDomain()
Kees Monshouwer [Mon, 20 Dec 2021 15:57:40 +0000 (16:57 +0100)] 
auth: lmdb: fix records removal in deleteDomain()

3 years agoMerge pull request #11002 from Habbie/backport-10981-to-auth-4.5.x
Peter van Dijk [Tue, 23 Nov 2021 09:46:26 +0000 (10:46 +0100)] 
Merge pull request #11002 from Habbie/backport-10981-to-auth-4.5.x

auth-4.5.x: apply new TTL to whole RRset, not only to the added record

3 years agoauth 2136: apply new TTL to whole RRset, not only to the added record 11002/head
Peter van Dijk [Mon, 15 Nov 2021 15:28:58 +0000 (16:28 +0100)] 
auth 2136: apply new TTL to whole RRset, not only to the added record

fixes #10921

(cherry picked from commit a725879238540d73c8e782f7bb3101de8a90459d)

3 years agoauth 2136: improve some log messages
Peter van Dijk [Mon, 15 Nov 2021 15:28:47 +0000 (16:28 +0100)] 
auth 2136: improve some log messages

(cherry picked from commit c712ec020fb6c4e62a23ea4667f09a6bf6d2306a)

3 years agoMerge pull request #10968 from Habbie/backport-10941-to-auth-4.5.x auth-4.5.2
Peter van Dijk [Tue, 9 Nov 2021 15:56:43 +0000 (16:56 +0100)] 
Merge pull request #10968 from Habbie/backport-10941-to-auth-4.5.x

auth-4.x. bindbackend: skip rejected zones during list and search, fixes #10885

3 years agoauth bindbackend: skip rejected zones during list and search, fixes #10885 10968/head
Peter van Dijk [Wed, 3 Nov 2021 13:00:30 +0000 (14:00 +0100)] 
auth bindbackend: skip rejected zones during list and search, fixes #10885

(cherry picked from commit 3d9c1aabb30c95a621d9f5343398980a1b416d51)

3 years agoMerge pull request #10964 from mind04/pdns-soa-backend-bp
Peter van Dijk [Tue, 9 Nov 2021 10:52:22 +0000 (11:52 +0100)] 
Merge pull request #10964 from mind04/pdns-soa-backend-bp

auth-4.5.x: make the zonecache more robust for bad data and save some SOA q…

3 years agoMerge pull request #10962 from mind04/pdns-napex-soa-bp
Peter van Dijk [Tue, 9 Nov 2021 10:52:05 +0000 (11:52 +0100)] 
Merge pull request #10962 from mind04/pdns-napex-soa-bp

auth-4.5.x: api, check SOA location

3 years agoMerge pull request #10952 from mind04/pdns-catch-more-bp
Peter van Dijk [Tue, 9 Nov 2021 10:51:05 +0000 (11:51 +0100)] 
Merge pull request #10952 from mind04/pdns-catch-more-bp

auth-4.5.x: improve dnsname exception handling for SOA records

3 years agoauth: api, check qtype location. Some types only live apex and some are not allowed... 10962/head
Kees Monshouwer [Sun, 7 Nov 2021 15:07:10 +0000 (16:07 +0100)] 
auth: api, check qtype location. Some types only live apex and some are not allowed (or useful) there.

3 years agoauth: improve SOA dnsname exception handling 10952/head
Kees Monshouwer [Fri, 5 Nov 2021 10:53:36 +0000 (11:53 +0100)] 
auth: improve SOA dnsname exception handling

3 years agoauth: make the zonecache more robust for bad data and save some SOA queries 10964/head
Kees Monshouwer [Mon, 8 Nov 2021 11:22:31 +0000 (12:22 +0100)] 
auth: make the zonecache more robust for bad data and save some SOA queries
for dnssec zones

3 years agoMerge pull request #10961 from Habbie/backport-10902-to-auth-4.5.x
Peter van Dijk [Mon, 8 Nov 2021 12:30:48 +0000 (13:30 +0100)] 
Merge pull request #10961 from Habbie/backport-10902-to-auth-4.5.x

auth-4.5.x: Pin docutils to < 0.18 for now, remove rec/dnsdist from CI

3 years agoremove rec&dnsdist from GH and CircleCI config 10961/head
Peter van Dijk [Mon, 8 Nov 2021 10:54:21 +0000 (11:54 +0100)] 
remove rec&dnsdist from GH and CircleCI config

3 years agoPin docutils to < 0.18 for now
Remi Gacogne [Tue, 26 Oct 2021 14:07:03 +0000 (16:07 +0200)] 
Pin docutils to < 0.18 for now

We will have to deal with that pain later, but let's unbreak our
CI first.

(cherry picked from commit 2503af018b72112a2422ce895d9e7418155cbc9f)

3 years agoMerge pull request #10792 from mind04/pdns-getalldomains-bp
Peter van Dijk [Fri, 8 Oct 2021 12:28:14 +0000 (14:28 +0200)] 
Merge pull request #10792 from mind04/pdns-getalldomains-bp

auth-4.5.x: improve SOA parse exception handling

3 years agoauth: fix the SOA check in pdnsutil 10792/head
Kees Monshouwer [Fri, 1 Oct 2021 08:33:27 +0000 (10:33 +0200)] 
auth: fix the SOA check in pdnsutil

3 years agoauth: ignore broken SOA content in getAllDomains()
Kees Monshouwer [Fri, 1 Oct 2021 21:39:13 +0000 (23:39 +0200)] 
auth: ignore broken SOA content in getAllDomains()

3 years agoMerge pull request #10778 from mind04/pdns-bind-reload-bp
Peter van Dijk [Thu, 30 Sep 2021 06:52:41 +0000 (08:52 +0200)] 
Merge pull request #10778 from mind04/pdns-bind-reload-bp

auth-4.5.x: try to reload rejected zones in bind-backend once every b…

3 years agoauth-4.5.x: try to reload rejected zones in bind-backend once every bind-check-interval 10778/head
Kees Monshouwer [Tue, 21 Sep 2021 18:25:35 +0000 (20:25 +0200)] 
auth-4.5.x: try to reload rejected zones in bind-backend once every bind-check-interval

4 years agoMerge pull request #10611 from Habbie/auth-45x-type65535
Peter van Dijk [Mon, 26 Jul 2021 12:27:18 +0000 (14:27 +0200)] 
Merge pull request #10611 from Habbie/auth-45x-type65535

auth-4.5.x: correct upper bounds on d_qtypecounters

4 years agocorrect upper bounds on d_qtypecounters 10611/head auth-4.5.1
Peter van Dijk [Thu, 15 Jul 2021 13:47:18 +0000 (15:47 +0200)] 
correct upper bounds on d_qtypecounters

(cherry picked from commit 9949e87aad7968d929cd110a8a9bcfa86b9a9d48)

4 years agoMerge pull request #10579 from Habbie/backport-10568-to-auth-4.5.x auth-4.5.0
Peter van Dijk [Mon, 12 Jul 2021 11:47:54 +0000 (13:47 +0200)] 
Merge pull request #10579 from Habbie/backport-10568-to-auth-4.5.x

auth-4.5.x: allow building bindbackend without sqlite3

4 years agoauth: allow building bindbackend without sqlite3 10579/head
Peter van Dijk [Tue, 6 Jul 2021 11:16:19 +0000 (13:16 +0200)] 
auth: allow building bindbackend without sqlite3

I broke this in #10549

reported by Ralf van der Enden

(cherry picked from commit 96c9ea2833debe84b1471afb824ab2991a4be855)

4 years agoMerge pull request #10551 from Habbie/backport-10535-to-auth-4.5.x auth-4.5.0-rc2
Peter van Dijk [Thu, 1 Jul 2021 19:44:31 +0000 (21:44 +0200)] 
Merge pull request #10551 from Habbie/backport-10535-to-auth-4.5.x

auth-4.5.x: make UeberBackend::addCache pick the correct ttl

4 years agoMerge pull request #10552 from Habbie/backport-10549-to-auth-4.5.x
Peter van Dijk [Thu, 1 Jul 2021 19:23:24 +0000 (21:23 +0200)] 
Merge pull request #10552 from Habbie/backport-10549-to-auth-4.5.x

auth 4.5.x bindbackend: NSEC(3) setting consistency, reload improvements

4 years agobindbackend: purge caches on zone reload 10552/head
Peter van Dijk [Thu, 1 Jul 2021 10:45:10 +0000 (12:45 +0200)] 
bindbackend: purge caches on zone reload

(cherry picked from commit a2b419621734f3c72681d23ba24d12edd44b5d0a)

4 years agopdnsutil: add reload notes for bindbackend
Peter van Dijk [Thu, 1 Jul 2021 10:15:25 +0000 (12:15 +0200)] 
pdnsutil: add reload notes for bindbackend

(cherry picked from commit a4471afb43612740a558470730663166a647e1a1)

4 years agoauth bindbackend: store nsec3 settings at zone load
Peter van Dijk [Sat, 8 May 2021 19:18:20 +0000 (21:18 +0200)] 
auth bindbackend: store nsec3 settings at zone load

This keeps, inside the bindbackend, the nsec(3) settings consistent
with the 'rectification' applied on zone load. This avoids crashes
when nsec3 is enabled or disabled without reloading the zone in the
bindbackend.

reported by Matt Nordhoff

(cherry picked from commit ccb6405fffaf3b13133ca6fbb4159369c3aed169)

4 years agoCompletely remove lowering the TTL, just use d_cache_ttl 10551/head
Robin Geuze [Tue, 29 Jun 2021 12:57:30 +0000 (14:57 +0200)] 
Completely remove lowering the TTL, just use d_cache_ttl

(cherry picked from commit 184bf1434a1ef92fa2d5b94e4dc774cf54233edb)

4 years agoFix it so addCache actually picks the minimal ttl rather than the last one < d_cache_ttl
Robin Geuze [Tue, 29 Jun 2021 12:37:31 +0000 (14:37 +0200)] 
Fix it so addCache actually picks the minimal ttl rather than the last one < d_cache_ttl

(cherry picked from commit f5089f3a3598a27fe0be5695554c14a4f6a45c93)

4 years agoMerge pull request #10524 from Habbie/auth-4.5.0-rc1-backports auth-4.5.0-rc1
Peter van Dijk [Thu, 24 Jun 2021 15:07:00 +0000 (17:07 +0200)] 
Merge pull request #10524 from Habbie/auth-4.5.0-rc1-backports

auth-4.5.0-rc1: backports

4 years agoauth SVCB additional processing: delay inserts to avoid invalidating iterator 10524/head
Peter van Dijk [Wed, 23 Jun 2021 10:42:20 +0000 (12:42 +0200)] 
auth SVCB additional processing: delay inserts to avoid invalidating iterator

(cherry picked from commit ee2163cdb1e0de07afa48d1f652285e3a61ebcd5)

auth SVCB additional processing: do not chase chains outside of zone

fixes #10521

(cherry picked from commit 669004579aa873e34c6acbc61e6d84b6bc57d37b)

Only perform AdditionalServiceProcessing for aliasform records.

Co-authored-by: Kees Monshouwer <mind04@monshouwer.org>
(cherry picked from commit 210b625ac6626f72609bc5cdb4252262f40e786d)

4 years agoauth: fix missing rename of QType.getName() to QType.toString()
Charles-Henri Bruyand [Wed, 9 Jun 2021 10:21:04 +0000 (12:21 +0200)] 
auth: fix missing rename of QType.getName() to QType.toString()

(cherry picked from commit 1dd49ac614ca44798b2851923f529ad0830cc604)

4 years agoauth 2136: allow placing DNSKEY/CDS/CDNSKEY regardless of direct-dnskey setting....
Peter van Dijk [Mon, 21 Jun 2021 11:55:10 +0000 (13:55 +0200)] 
auth 2136: allow placing DNSKEY/CDS/CDNSKEY regardless of direct-dnskey setting. Fixes #10321

(cherry picked from commit 959e72e3a4df1620ea5ddaa1d5754aa45e712dfa)

auth: correctly respect direct-dnskey when putting DNSKEY/CDS/CDNSKEY in NSEC(3) bitmaps. Thanks @mind04. Fixes #10516

(cherry picked from commit 597e49e2db272064888df16eeadaa5b91e175595)

4 years agopdnsutil edit-zone: correctly reask inc-serial question. Fixes #10328
Peter van Dijk [Mon, 21 Jun 2021 11:40:02 +0000 (13:40 +0200)] 
pdnsutil edit-zone: correctly reask inc-serial question. Fixes #10328

(cherry picked from commit be6484af481af470ff568dc1455dcb300ebfaafc)

4 years agopdnsutil add-autoprimary: print error when exiting with 1. Fixes #10435.
Peter van Dijk [Mon, 21 Jun 2021 10:38:10 +0000 (12:38 +0200)] 
pdnsutil add-autoprimary: print error when exiting with 1. Fixes #10435.

(cherry picked from commit 390124a02530cd084a2a8b9ea4705c776af7c9ee)

4 years agoSVCB: on parse error, throw instead of truncate. Fixes #10442
Peter van Dijk [Mon, 21 Jun 2021 10:18:04 +0000 (12:18 +0200)] 
SVCB: on parse error, throw instead of truncate. Fixes #10442

(cherry picked from commit dda5e23439e91c6a2d9bb31a38d61da7f8948598)

4 years agoSVCB: Fix auto hints removing non-auto hints
Pieter Lexis [Fri, 18 Jun 2021 14:58:59 +0000 (16:58 +0200)] 
SVCB: Fix auto hints removing non-auto hints

Closes #10258

(cherry picked from commit 607d1296b284309cb5e8c71966f2db070a2a5c06)

4 years agopdnsutil create-zone: better error if default-soa-content is broken
Peter van Dijk [Sat, 19 Jun 2021 11:33:55 +0000 (13:33 +0200)] 
pdnsutil create-zone: better error if default-soa-content is broken

(cherry picked from commit 9b2ff836e0fb0cc82fff29577bfcf8e45e0c60ed)

4 years agoauth: remove pubsuffix
Peter van Dijk [Fri, 18 Jun 2021 13:50:29 +0000 (15:50 +0200)] 
auth: remove pubsuffix

(cherry picked from commit 20e341708156c320d8ce0db74d1b8770188a1742)

4 years agoin secpoll testing, do not start the auth
Peter van Dijk [Mon, 14 Jun 2021 11:33:56 +0000 (13:33 +0200)] 
in secpoll testing, do not start the auth

(cherry picked from commit 540fddabae630281f9bc54a84c969a969dbc24a0)

4 years agopdnsutil add-zone-key: clarify ZSK default
Peter van Dijk [Mon, 21 Jun 2021 11:30:06 +0000 (13:30 +0200)] 
pdnsutil add-zone-key: clarify ZSK default

(cherry picked from commit 9dc140be253237921c2fb391abf6ce195f4a7fa1)

4 years agonewCAFromRaw(): create ComboAddress from raw 4/16 byte strings, plus test
Peter van Dijk [Wed, 16 Sep 2020 08:21:24 +0000 (10:21 +0200)] 
newCAFromRaw(): create ComboAddress from raw 4/16 byte strings, plus test

(code copied from dnsdist)

(cherry picked from commit aec9c9074c9485bd6ac36e258b6ea3260a9131fb)

4 years agoMerge pull request #10469 from Habbie/dnsdist-no-dnsdist-table auth-4.5.0-beta1
Remi Gacogne [Mon, 7 Jun 2021 08:43:39 +0000 (10:43 +0200)] 
Merge pull request #10469 from Habbie/dnsdist-no-dnsdist-table

dnsdist: remove dnsdist.* lookup fallback

4 years agoMerge pull request #10463 from Habbie/lua-forward-reverse
Peter van Dijk [Sun, 6 Jun 2021 18:32:30 +0000 (20:32 +0200)] 
Merge pull request #10463 from Habbie/lua-forward-reverse

auth LUA: add filterForward function, to limit the scope of createForward[6]

4 years agoadd filterForward function, plus initialiser helper in newNMG 10463/head
Peter van Dijk [Tue, 1 Jun 2021 13:54:02 +0000 (15:54 +0200)] 
add filterForward function, plus initialiser helper in newNMG

4 years agoauth LUA testing: test the exception feature
Peter van Dijk [Mon, 31 May 2021 15:15:14 +0000 (17:15 +0200)] 
auth LUA testing: test the exception feature

4 years agoexpand LUA createForward/Reverse testing
Peter van Dijk [Mon, 31 May 2021 10:51:18 +0000 (12:51 +0200)] 
expand LUA createForward/Reverse testing

4 years agoauthtests.py: fix rcode comparison and reporting
Peter van Dijk [Mon, 31 May 2021 14:46:22 +0000 (16:46 +0200)] 
authtests.py: fix rcode comparison and reporting

4 years agorename suffix to format
Peter van Dijk [Fri, 28 May 2021 21:14:21 +0000 (23:14 +0200)] 
rename suffix to format

4 years agoMerge pull request #10470 from mind04/pdns-auth-py
Peter van Dijk [Sun, 6 Jun 2021 15:03:21 +0000 (17:03 +0200)] 
Merge pull request #10470 from mind04/pdns-auth-py

auth: disable zone-cache for the regression.auth-py tests

4 years agoauth: fix the nobackend tests 10470/head
Kees Monshouwer [Sun, 6 Jun 2021 11:01:12 +0000 (13:01 +0200)] 
auth: fix the nobackend tests

4 years agoauth: disable zone-cache for the regression.auth-py tests
Kees Monshouwer [Sat, 5 Jun 2021 23:33:03 +0000 (01:33 +0200)] 
auth: disable zone-cache for the regression.auth-py tests

4 years agodnsdist: remove dnsdist.* lookup fallback 10469/head
Peter van Dijk [Sat, 5 Jun 2021 16:57:56 +0000 (18:57 +0200)] 
dnsdist: remove dnsdist.* lookup fallback

4 years agoMerge pull request #10426 from omoerbeek/rec-refresh-ns-and-addr-fix
Otto Moerbeek [Fri, 4 Jun 2021 14:34:49 +0000 (16:34 +0200)] 
Merge pull request #10426 from omoerbeek/rec-refresh-ns-and-addr-fix

rec: When refreshing, do not consider root almost expired

4 years agomake ttl value's origin clear 10426/head
Otto Moerbeek [Fri, 4 Jun 2021 12:58:50 +0000 (14:58 +0200)] 
make ttl value's origin clear

Co-authored-by: Remi Gacogne <github@coredump.fr>
4 years agoAdd testcase for "almost expired".
Otto [Fri, 4 Jun 2021 11:27:44 +0000 (13:27 +0200)] 
Add testcase for "almost expired".