]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
2 months agorec: Fix serialization of cached authority records
Remi Gacogne [Tue, 17 Mar 2026 11:31:26 +0000 (12:31 +0100)] 
rec: Fix serialization of cached authority records

The type needs to be present in the protobuf output before
the content, otherwise we cannot decode the content properly
when deserializing.

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
2 months agorec: estimate size and refuse to cache big negcache entries 17197/head
Otto Moerbeek [Mon, 2 Mar 2026 10:29:47 +0000 (11:29 +0100)] 
rec: estimate size and refuse to cache big negcache entries

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
2 months agorec: limit size of incoming web request.
Otto Moerbeek [Wed, 25 Feb 2026 09:30:50 +0000 (10:30 +0100)] 
rec: limit size of incoming web request.

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
2 months agoMerge pull request #16991 from pieterlexis/dnsdist-http11-505
Remi Gacogne [Tue, 17 Mar 2026 09:25:41 +0000 (10:25 +0100)] 
Merge pull request #16991 from pieterlexis/dnsdist-http11-505

fix(dnsdist): respond 505 to DoH HTTP/1.1 reqs

2 months agofix(dnsdist): respond 505 to DoH HTTP/1.1 reqs 16991/head
Pieter Lexis [Tue, 17 Mar 2026 08:25:11 +0000 (09:25 +0100)] 
fix(dnsdist): respond 505 to DoH HTTP/1.1 reqs

Closes: #16990
2 months agorec: only check cookie if we sent one out (YWH-PGM6095-134) 17202/head
Otto Moerbeek [Tue, 17 Mar 2026 08:34:55 +0000 (09:34 +0100)] 
rec: only check cookie if we sent one out (YWH-PGM6095-134)

A server might sent us a cookie when we diod not sent out one, leading
to a dereference of an absent optional value.

This is YWH-PGM6095-134

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
2 months agoMerge pull request #16989 from PowerDNS/dependabot/pip/regression-tests.dnsdist/pyope...
Remi Gacogne [Tue, 17 Mar 2026 08:06:58 +0000 (09:06 +0100)] 
Merge pull request #16989 from PowerDNS/dependabot/pip/regression-tests.dnsdist/pyopenssl-26.0.0

build(deps): bump pyopenssl from 25.3.0 to 26.0.0 in /regression-tests.dnsdist

2 months agoMerge pull request #16987 from miodvallat/tkeybored
Miod Vallat [Mon, 16 Mar 2026 16:57:18 +0000 (17:57 +0100)] 
Merge pull request #16987 from miodvallat/tkeybored

[boring] Remove explicit constructor duplicating default initialization.

2 months agobuild(deps): bump pyopenssl in /regression-tests.dnsdist 16989/head
dependabot[bot] [Mon, 16 Mar 2026 16:46:45 +0000 (16:46 +0000)] 
build(deps): bump pyopenssl in /regression-tests.dnsdist

Bumps [pyopenssl](https://github.com/pyca/pyopenssl) from 25.3.0 to 26.0.0.
- [Changelog](https://github.com/pyca/pyopenssl/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/pyopenssl/compare/25.3.0...26.0.0)

---
updated-dependencies:
- dependency-name: pyopenssl
  dependency-version: 26.0.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2 months agoRemove explicit constructor duplicating default initialization. 16987/head
Miod Vallat [Mon, 16 Mar 2026 15:54:25 +0000 (16:54 +0100)] 
Remove explicit constructor duplicating default initialization.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
2 months agoMerge pull request #16978 from jsoref/index-semicolon
Pieter Lexis [Mon, 16 Mar 2026 15:53:43 +0000 (16:53 +0100)] 
Merge pull request #16978 from jsoref/index-semicolon

Add semicolon

2 months agoClean `EDNSSubnetOpts::getFromString` up as well 16992/head
Remi Gacogne [Mon, 16 Mar 2026 14:37:09 +0000 (15:37 +0100)] 
Clean `EDNSSubnetOpts::getFromString` up as well

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
2 months agoSmall cleanup `EDNSSubnetOpts::makeOptString()`
Remi Gacogne [Mon, 16 Mar 2026 14:18:10 +0000 (15:18 +0100)] 
Small cleanup `EDNSSubnetOpts::makeOptString()`

The existing code was relying on implicit integer conversion rules,
which was correct but brittle, so let's explicitely check that the
source is non-zero.

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
2 months agoMerge pull request #16984 from miodvallat/doc510
Miod Vallat [Mon, 16 Mar 2026 13:40:47 +0000 (14:40 +0100)] 
Merge pull request #16984 from miodvallat/doc510

auth: 5.1.0-alpha1 documentation and secpoll updates

2 months agoMake upgrade title less confusing for alpha1. 16984/head
Miod Vallat [Mon, 16 Mar 2026 12:50:38 +0000 (13:50 +0100)] 
Make upgrade title less confusing for alpha1.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
2 months agoDocumentation and secpoll updates for 5.1.0-alpha1
Miod Vallat [Mon, 16 Mar 2026 10:05:20 +0000 (11:05 +0100)] 
Documentation and secpoll updates for 5.1.0-alpha1

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
2 months agoPut Pieter Lexis back in the developer gang member names.
Miod Vallat [Mon, 16 Mar 2026 08:44:17 +0000 (09:44 +0100)] 
Put Pieter Lexis back in the developer gang member names.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
2 months agofeat(dnsdist): Allow cache expunging by more names 16933/head
Pieter Lexis [Thu, 26 Feb 2026 09:56:07 +0000 (10:56 +0100)] 
feat(dnsdist): Allow cache expunging by more names

Now one can pass a list of DNSNames or strings to `expungeByName`.

Closes: #7157
2 months agoMerge pull request #16977 from miodvallat/wallet-rrtype auth-5.1.0-alpha1
Miod Vallat [Fri, 13 Mar 2026 15:40:37 +0000 (16:40 +0100)] 
Merge pull request #16977 from miodvallat/wallet-rrtype

auth: Add support to the new WALLET RRType

2 months agoMerge pull request #16477 from pieterlexis/ci-python-black
Pieter Lexis [Fri, 13 Mar 2026 15:38:05 +0000 (16:38 +0100)] 
Merge pull request #16477 from pieterlexis/ci-python-black

ci: Force python formatting with ruff

2 months agorec: Prevent null-pointer dereference in aggressive NSEC cache 17201/head
Remi Gacogne [Fri, 13 Mar 2026 14:40:22 +0000 (15:40 +0100)] 
rec: Prevent null-pointer dereference in aggressive NSEC cache

This might happen if the zone is transitioning from NSEC to
NSEC3 just in the middle of the `getDenial` processing.

Reported in #YWH-PGM6095-135.

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
2 months agochore: reformat all Python files with ruff 16477/head
Pieter Lexis [Fri, 13 Mar 2026 14:06:43 +0000 (15:06 +0100)] 
chore: reformat all Python files with ruff

2 months agoci: Force python formatting with ruff
Pieter Lexis [Wed, 12 Nov 2025 12:46:51 +0000 (13:46 +0100)] 
ci: Force python formatting with ruff

2 months agodnsdist: Rename a JS variable 17065/head
Remi Gacogne [Thu, 15 Jan 2026 15:41:58 +0000 (16:41 +0100)] 
dnsdist: Rename a JS variable

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
2 months agodnsdist: Fix HTML injection in the Web dashboard
Remi Gacogne [Thu, 15 Jan 2026 09:27:09 +0000 (10:27 +0100)] 
dnsdist: Fix HTML injection in the Web dashboard

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
2 months agodnsdist: Clean up our JavaScript code
Remi Gacogne [Thu, 15 Jan 2026 09:24:54 +0000 (10:24 +0100)] 
dnsdist: Clean up our JavaScript code

- Remove unused code
- Remove railing whitespaces
- Be more consistent

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
2 months agoMerge pull request #16979 from rgacogne/ddist-fix-downstream-timeout-msg-verbosity
Remi Gacogne [Fri, 13 Mar 2026 12:30:19 +0000 (13:30 +0100)] 
Merge pull request #16979 from rgacogne/ddist-fix-downstream-timeout-msg-verbosity

dnsdist: Downstream timeouts should be logged at verbose level

2 months agoMerge pull request #16980 from rgacogne/ddist-update-quiche-0.26.1
Remi Gacogne [Fri, 13 Mar 2026 12:29:57 +0000 (13:29 +0100)] 
Merge pull request #16980 from rgacogne/ddist-update-quiche-0.26.1

dnsdist: Update Quiche to 0.26.1

2 months agodnsdist: Downstream timeouts should be logged at verbose level 16979/head
Remi Gacogne [Fri, 13 Mar 2026 08:56:49 +0000 (09:56 +0100)] 
dnsdist: Downstream timeouts should be logged at verbose level

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
2 months agoMerge pull request #16973 from pieterlexis/dnsdist-ot-config
Pieter Lexis [Fri, 13 Mar 2026 08:48:18 +0000 (09:48 +0100)] 
Merge pull request #16973 from pieterlexis/dnsdist-ot-config

feat(dnsdist): Change OT Trace YAML config to a struct

2 months agoMerge pull request #16741 from pieterlexis/dnsdist-ot-serverid-instance
Pieter Lexis [Fri, 13 Mar 2026 08:48:07 +0000 (09:48 +0100)] 
Merge pull request #16741 from pieterlexis/dnsdist-ot-serverid-instance

feat(dnsdist): Add instance field to OT Trace messages

2 months agoMerge pull request #16951 from pieterlexis/decryptus/master
Pieter Lexis [Fri, 13 Mar 2026 08:20:35 +0000 (09:20 +0100)] 
Merge pull request #16951 from pieterlexis/decryptus/master

auth: SortA API RRs by content if name and type are equal

2 months agofeat(dnsdist): Change OT Trace YAML config to a struct 16973/head
Pieter Lexis [Thu, 12 Mar 2026 19:34:09 +0000 (20:34 +0100)] 
feat(dnsdist): Change OT Trace YAML config to a struct

This'll allow us to add more trace feature configuration in the future
and it mirrors the `structured_logging` config.

2 months agoAdd semicolon 16978/head
Josh Soref [Thu, 12 Mar 2026 16:38:20 +0000 (12:38 -0400)] 
Add semicolon

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2 months agoMerge pull request #16974 from omoerbeek/rec-web-docs
Otto Moerbeek [Thu, 12 Mar 2026 15:49:06 +0000 (16:49 +0100)] 
Merge pull request #16974 from omoerbeek/rec-web-docs

docs: only expose web server on a as-needed basis

2 months agoDocument WALLET record type. 16977/head
Miod Vallat [Thu, 12 Mar 2026 14:15:37 +0000 (15:15 +0100)] 
Document WALLET record type.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
2 months agoAdd support to the new WALLET RRType.
Renato Alencar [Thu, 12 Mar 2026 10:03:59 +0000 (11:03 +0100)] 
Add support to the new WALLET RRType.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
2 months agodnsdist: Update Quiche to 0.26.1 16980/head
Remi Gacogne [Thu, 12 Mar 2026 14:54:34 +0000 (15:54 +0100)] 
dnsdist: Update Quiche to 0.26.1

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
2 months agoMake this meson-build compatible
Miod Vallat [Thu, 12 Mar 2026 13:45:14 +0000 (14:45 +0100)] 
Make this meson-build compatible

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
2 months agoMerge pull request #16975 from omoerbeek/rel-workflows-update
Otto Moerbeek [Thu, 12 Mar 2026 13:49:25 +0000 (14:49 +0100)] 
Merge pull request #16975 from omoerbeek/rel-workflows-update

GH workflows: Update to current release branch status

2 months agoAlso include auth and dnsdist 16974/head
Otto Moerbeek [Thu, 12 Mar 2026 13:47:50 +0000 (14:47 +0100)] 
Also include auth and dnsdist

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
2 months agoChange default of new wipe flag to true
Otto Moerbeek [Thu, 12 Mar 2026 13:23:35 +0000 (14:23 +0100)] 
Change default of new wipe flag to true

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
2 months agoMake the clearing of the packet cache configurable, defaulting to false
Otto Moerbeek [Tue, 10 Mar 2026 14:28:42 +0000 (15:28 +0100)] 
Make the clearing of the packet cache configurable, defaulting to false

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
2 months agoEnable packet cache in test
Otto Moerbeek [Thu, 5 Mar 2026 15:41:06 +0000 (16:41 +0100)] 
Enable packet cache in test

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
2 months agoWipe relevent packet cache entries on rpz (re)load
Otto Moerbeek [Thu, 5 Mar 2026 12:22:50 +0000 (13:22 +0100)] 
Wipe relevent packet cache entries on rpz (re)load

Only for qname matches!

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
2 months agoClient IP RPZ match should not result in packetcache insert
Otto Moerbeek [Thu, 5 Mar 2026 11:46:37 +0000 (12:46 +0100)] 
Client IP RPZ match should not result in packetcache insert

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
2 months agoUpdate to current release branch status 16975/head
Otto Moerbeek [Thu, 12 Mar 2026 13:13:27 +0000 (14:13 +0100)] 
Update to current release branch status

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
2 months agoTypo
Otto Moerbeek [Thu, 12 Mar 2026 12:56:55 +0000 (13:56 +0100)] 
Typo

Co-authored-by: Miod Vallat <miod.vallat@powerdns.com>
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
2 months agoSome advice: only expose web server on a as-needed basis
Otto Moerbeek [Thu, 12 Mar 2026 12:31:53 +0000 (13:31 +0100)] 
Some advice: only expose web server on a as-needed basis

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
2 months agoMerge pull request #16966 from rgacogne/ddist210-beta2
Remi Gacogne [Thu, 12 Mar 2026 09:24:36 +0000 (10:24 +0100)] 
Merge pull request #16966 from rgacogne/ddist210-beta2

dnsdist: Update ChangeLog and security polling zone for 2.1.0-beta2

2 months agoMerge pull request #16944 from pieterlexis/dev-tasks
Pieter Lexis [Thu, 12 Mar 2026 09:12:19 +0000 (10:12 +0100)] 
Merge pull request #16944 from pieterlexis/dev-tasks

chore: Add invoke tasks to configure with meson for development

2 months agoMerge pull request #16956 from miodvallat/neper
Miod Vallat [Thu, 12 Mar 2026 08:50:00 +0000 (09:50 +0100)] 
Merge pull request #16956 from miodvallat/neper

Remove error-prone logger interfaces

2 months agoMerge pull request #16965 from rgacogne/auth-pp-buffer-size
Remi Gacogne [Thu, 12 Mar 2026 08:49:06 +0000 (09:49 +0100)] 
Merge pull request #16965 from rgacogne/auth-pp-buffer-size

auth: Use the proper size after processing a proxy protocol payload

2 months agoMerge pull request #14057 from mind04/auth-catalog-cleanup
Miod Vallat [Wed, 11 Mar 2026 15:51:36 +0000 (16:51 +0100)] 
Merge pull request #14057 from mind04/auth-catalog-cleanup

Auth: fix a crash and some cleanup in the auth-catalogzone.cc

2 months agoBe less scary in logs 16956/head
Miod Vallat [Wed, 11 Mar 2026 14:35:52 +0000 (15:35 +0100)] 
Be less scary in logs

Co-authored-by: Remi Gacogne <github@coredump.fr>
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
2 months agoauth: improve changed catalog detection 14057/head
Kees Monshouwer [Fri, 12 Apr 2024 08:50:16 +0000 (10:50 +0200)] 
auth: improve changed catalog detection

Signed-off-by: Kees Monshouwer <mind04@monshouwer.org>
2 months agoauth: don't crash when a catalog SOA is invalid
Kees Monshouwer [Tue, 9 Apr 2024 23:09:57 +0000 (01:09 +0200)] 
auth: don't crash when a catalog SOA is invalid

Signed-off-by: Kees Monshouwer <mind04@monshouwer.org>
2 months agoauth: cleanup auth-catalogzone.cc a bit
Kees Monshouwer [Tue, 9 Apr 2024 20:35:24 +0000 (22:35 +0200)] 
auth: cleanup auth-catalogzone.cc a bit

Signed-off-by: Kees Monshouwer <mind04@monshouwer.org>
2 months agoFix two cases of lacking/wrong max size compares (YWH-PGM6095-90) 17200/head
Otto Moerbeek [Tue, 10 Mar 2026 09:36:27 +0000 (10:36 +0100)] 
Fix two cases of lacking/wrong max size compares (YWH-PGM6095-90)

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
2 months agochore(auth): add task to configure auth for dev 16944/head
Pieter Lexis [Wed, 4 Mar 2026 13:33:40 +0000 (14:33 +0100)] 
chore(auth): add task to configure auth for dev

2 months agochore(rec): add task to configure recursor for dev
Pieter Lexis [Wed, 4 Mar 2026 13:23:56 +0000 (14:23 +0100)] 
chore(rec): add task to configure recursor for dev

2 months agoRemove unused "verbosity" part of the Logger.
Miod Vallat [Wed, 11 Mar 2026 06:45:09 +0000 (07:45 +0100)] 
Remove unused "verbosity" part of the Logger.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
2 months agoRemove no longer useful Logger::enabled().
Miod Vallat [Wed, 11 Mar 2026 06:39:31 +0000 (07:39 +0100)] 
Remove no longer useful Logger::enabled().

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
2 months agoRemove no longer used Logr::Absent.
Miod Vallat [Wed, 11 Mar 2026 06:38:46 +0000 (07:38 +0100)] 
Remove no longer used Logr::Absent.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
2 months agochore(dndist): add task to configure dnsdist for dev
Pieter Lexis [Wed, 4 Mar 2026 12:53:09 +0000 (13:53 +0100)] 
chore(dndist): add task to configure dnsdist for dev

2 months agoMerge pull request #16968 from rgacogne/ddist-fix-compression-dname-srv
Remi Gacogne [Tue, 10 Mar 2026 15:07:56 +0000 (16:07 +0100)] 
Merge pull request #16968 from rgacogne/ddist-fix-compression-dname-srv

dnsdist: Fix the use of compression for SRV and DNAME targets

2 months agodnsdist: Fix the use of compression for SRV and DNAME targets 16968/head
Remi Gacogne [Tue, 10 Mar 2026 14:12:36 +0000 (15:12 +0100)] 
dnsdist: Fix the use of compression for SRV and DNAME targets

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
2 months agoMerge pull request #16967 from rgacogne/ddist-compress-when-changing-name
Remi Gacogne [Tue, 10 Mar 2026 14:04:33 +0000 (15:04 +0100)] 
Merge pull request #16967 from rgacogne/ddist-compress-when-changing-name

dnsdist: Compress DNS names when changing the name in a packet

2 months agodnsdist: Compress DNS names when changing the name in a packet 16967/head
Remi Gacogne [Tue, 10 Mar 2026 12:01:48 +0000 (13:01 +0100)] 
dnsdist: Compress DNS names when changing the name in a packet

Otherwise the resulting packet might be bigger than needed.

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
2 months agodnsdist: Update ChangeLog and security polling zone for 2.1.0-beta2 16966/head
Remi Gacogne [Tue, 10 Mar 2026 11:47:01 +0000 (12:47 +0100)] 
dnsdist: Update ChangeLog and security polling zone for 2.1.0-beta2

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
2 months agoauth: Use the proper size after processing a proxy protocol payload 16965/head
Remi Gacogne [Tue, 10 Mar 2026 09:48:08 +0000 (10:48 +0100)] 
auth: Use the proper size after processing a proxy protocol payload

Reported in #YWH-PGM6095-116. While it is a bug, I don't believe it
is a security issue because I'm not aware of any implementation
actually releasing the memory unless `shrink_to_fit()` is called,
and even then it's not always the case. The content of the memory
contains part of the existing query and it is still owned by this
buffer so there is no information disclosure.

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
3 months agoMerge pull request #16946 from omoerbeek/rec-rpz-defpol-test
Otto Moerbeek [Tue, 10 Mar 2026 06:17:20 +0000 (07:17 +0100)] 
Merge pull request #16946 from omoerbeek/rec-rpz-defpol-test

rec: add a regresion test for defpol handling

3 months agoDNSWriter: Prevent overflow when generating (too) large DNS packets 17071/head
Remi Gacogne [Mon, 9 Mar 2026 14:48:48 +0000 (15:48 +0100)] 
DNSWriter: Prevent overflow when generating (too) large DNS packets

The current API expects the caller to check if the current size
exceeds 65535 bytes before calling `commit()`, and potentially
triggers an out-of-bounds write otherwise when `d_sor` wraps around.
This commit adds an additional safety layer ensuring that we do not
write out of bounds even if the caller is not careful enough.

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
3 months agoMerge pull request #16955 from pieterlexis/lua-headers
Pieter Lexis [Mon, 9 Mar 2026 13:02:30 +0000 (14:02 +0100)] 
Merge pull request #16955 from pieterlexis/lua-headers

auth: Allow adding HTTP Headers in LUA Record ifurlup

3 months agofix(auth): Properly sort API RRSets by content 16951/head
Pieter Lexis [Thu, 5 Mar 2026 13:48:53 +0000 (14:48 +0100)] 
fix(auth): Properly sort API RRSets by content

For content, we need to lexographically sort. I would have preferred
canonical ordering of the content. But as this point we have strings we
don't need to roundtrip through the parser.

This also adds an RRSet ordering test.

3 months agoSort by content if name and type are equal
Adrien Delle Cave [Mon, 3 Jan 2022 11:10:12 +0000 (12:10 +0100)] 
Sort by content if name and type are equal

Signed-off-by: Adrien Delle Cave <adrien.delle.cave@commandersact.com>
3 months agoMerge pull request #16958 from miodvallat/cover_your_log
Miod Vallat [Mon, 9 Mar 2026 12:31:48 +0000 (13:31 +0100)] 
Merge pull request #16958 from miodvallat/cover_your_log

auth: coverity-induced fixes

3 months agoThere is no guarantee that the slog initializer is a compile-time constant. 16958/head
Miod Vallat [Mon, 9 Mar 2026 08:51:42 +0000 (09:51 +0100)] 
There is no guarantee that the slog initializer is a compile-time constant.

Therefore we can not safely assume it is safe to check its value in other
global constructors.

Reported by Coverity.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
3 months agoFix various inefficiencies pointed by Coverity.
Miod Vallat [Mon, 9 Mar 2026 08:48:15 +0000 (09:48 +0100)] 
Fix various inefficiencies pointed by Coverity.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
3 months agoMerge pull request #16959 from omoerbeek/prep-rec-5.4.0
Otto Moerbeek [Mon, 9 Mar 2026 10:48:43 +0000 (11:48 +0100)] 
Merge pull request #16959 from omoerbeek/prep-rec-5.4.0

rec: prep for rec-5.4.0 final release

3 months agorec: prep for rec-5.4.0 final release 16959/head
Otto Moerbeek [Thu, 5 Mar 2026 08:46:41 +0000 (09:46 +0100)] 
rec: prep for rec-5.4.0 final release

Code equal to rc1, one missed PR in changelog of rc1

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
3 months agoMerge pull request #16957 from jsoref/codeql-set-first-query-false-for-next-query
Miod Vallat [Mon, 9 Mar 2026 05:55:15 +0000 (06:55 +0100)] 
Merge pull request #16957 from jsoref/codeql-set-first-query-false-for-next-query

Set `firstQuery` to false for next query

3 months agoSet firstQuery to false for next query 16957/head
Josh Soref [Sun, 8 Mar 2026 00:52:07 +0000 (19:52 -0500)] 
Set firstQuery to false for next query

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
3 months agoMerge pull request #13360 from stasic/patch-5
Miod Vallat [Fri, 6 Mar 2026 16:30:37 +0000 (17:30 +0100)] 
Merge pull request #13360 from stasic/patch-5

Update alias.rst

3 months agofeat(dnsdist): Add instance field to OT Trace messages 16741/head
Pieter Lexis [Tue, 20 Jan 2026 09:28:16 +0000 (10:28 +0100)] 
feat(dnsdist): Add instance field to OT Trace messages

And drop hostname as a result.

3 months agodocs(auth): Add suggestions from @miodvallat 13360/head
Pieter Lexis [Fri, 6 Mar 2026 11:58:01 +0000 (12:58 +0100)] 
docs(auth): Add suggestions from @miodvallat

3 months agodocs(auth): address review comments
Pieter Lexis [Fri, 6 Mar 2026 11:27:47 +0000 (12:27 +0100)] 
docs(auth): address review comments

3 months agoUpdate alias.rst
Arsen Stasic [Thu, 12 Oct 2023 06:52:23 +0000 (06:52 +0000)] 
Update alias.rst

If a zone is operated with different nameserver software than PowerDNS and ALIAS is used it could result in an out-of-sync sencondary.

Signed-off-by: Arsen Stasic <arsen.stasic@gmail.com>
3 months agoRemove logging interfaces which lack a priority.
Miod Vallat [Fri, 6 Mar 2026 10:05:30 +0000 (11:05 +0100)] 
Remove logging interfaces which lack a priority.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
3 months agoMake sure not to use logging interfaces not taking priority by mistake.
Miod Vallat [Fri, 6 Mar 2026 10:23:19 +0000 (11:23 +0100)] 
Make sure not to use logging interfaces not taking priority by mistake.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
3 months agofeat(auth): Allow HTTP Headers in ifurlup requests 16955/head
Pieter Lexis [Fri, 6 Mar 2026 10:58:09 +0000 (11:58 +0100)] 
feat(auth): Allow HTTP Headers in ifurlup requests

Closes: #8295
Closes: #11610
3 months agofeat(auth): Allow arrays in LUA Record config
Pieter Lexis [Fri, 6 Mar 2026 10:57:39 +0000 (11:57 +0100)] 
feat(auth): Allow arrays in LUA Record config

3 months agofeat: Allow setting HTTP Headers in MiniCurl
Pieter Lexis [Fri, 6 Mar 2026 10:53:58 +0000 (11:53 +0100)] 
feat: Allow setting HTTP Headers in MiniCurl

3 months agoMerge pull request #16954 from miodvallat/slowapi
Miod Vallat [Fri, 6 Mar 2026 10:19:39 +0000 (11:19 +0100)] 
Merge pull request #16954 from miodvallat/slowapi

Remove dead code

3 months agoMerge pull request #16693 from miodvallat/log_at_first_sight
Miod Vallat [Fri, 6 Mar 2026 10:13:19 +0000 (11:13 +0100)] 
Merge pull request #16693 from miodvallat/log_at_first_sight

auth: structured logging

3 months agoRemove dead code. 16954/head
Miod Vallat [Fri, 6 Mar 2026 09:42:08 +0000 (10:42 +0100)] 
Remove dead code.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
3 months agoMerge pull request #16953 from jsoref/codeql-remove-duplicate-variable-assignment
Miod Vallat [Fri, 6 Mar 2026 06:14:09 +0000 (07:14 +0100)] 
Merge pull request #16953 from jsoref/codeql-remove-duplicate-variable-assignment

Remove double assignment

3 months agoMerge pull request #16952 from jsoref/codeql-remove-stray-udp-query
Otto Moerbeek [Thu, 5 Mar 2026 19:40:31 +0000 (20:40 +0100)] 
Merge pull request #16952 from jsoref/codeql-remove-stray-udp-query

Remove unnecessary udp query

3 months agoRemove double assignment 16953/head
Josh Soref [Thu, 5 Mar 2026 17:35:43 +0000 (12:35 -0500)] 
Remove double assignment

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
3 months agoRemove unnecessary udp query 16952/head
Josh Soref [Thu, 5 Mar 2026 17:30:26 +0000 (12:30 -0500)] 
Remove unnecessary udp query

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>