]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
4 weeks agoaddress linter complaints. 17662/head
Miod Vallat [Wed, 1 Jul 2026 11:45:49 +0000 (13:45 +0200)] 
address linter complaints.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
4 weeks agoMerge pull request #17665 from miodvallat/donotarguewithme
Miod Vallat [Thu, 2 Jul 2026 09:15:59 +0000 (11:15 +0200)] 
Merge pull request #17665 from miodvallat/donotarguewithme

auth: missing html escaping in webserver

4 weeks agoMerge pull request #17663 from miodvallat/metadata_roulette
Miod Vallat [Thu, 2 Jul 2026 09:15:36 +0000 (11:15 +0200)] 
Merge pull request #17663 from miodvallat/metadata_roulette

auth: perform validation of metadata name before querying the backend.

4 weeks agoConfig stuff and more cases of binding
Otto Moerbeek [Mon, 22 Jun 2026 12:48:40 +0000 (14:48 +0200)] 
Config stuff and more cases of binding

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
4 weeks agoTrying to send with itf assignment.
Otto Moerbeek [Thu, 11 Jun 2026 13:37:16 +0000 (15:37 +0200)] 
Trying to send with itf assignment.

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
4 weeks agoMore plumbing
Otto Moerbeek [Thu, 11 Jun 2026 12:36:20 +0000 (14:36 +0200)] 
More plumbing

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
4 weeks agoInitial plumbing, untested but should be no-op
Otto Moerbeek [Thu, 11 Jun 2026 08:10:06 +0000 (10:10 +0200)] 
Initial plumbing, untested but should be no-op

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
4 weeks agoMerge pull request #17668 from rgacogne/ddist-210-changelog-secpoll
Remi Gacogne [Thu, 2 Jul 2026 08:51:04 +0000 (10:51 +0200)] 
Merge pull request #17668 from rgacogne/ddist-210-changelog-secpoll

dnsdist: Update ChangeLog and security polling for 2.1.0

4 weeks agodnsdist: Update EOL statement now that 2.1.0 has been released 17670/head
Remi Gacogne [Thu, 2 Jul 2026 08:40:40 +0000 (10:40 +0200)] 
dnsdist: Update EOL statement now that 2.1.0 has been released

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
4 weeks agospell-checker: Allow armhf, Cao (contributor) and RUSTFLAGS 17668/head
Remi Gacogne [Thu, 2 Jul 2026 07:38:35 +0000 (09:38 +0200)] 
spell-checker: Allow armhf, Cao (contributor) and RUSTFLAGS

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
4 weeks agoMake pattern2SQLPattern an internal implementation detail. NFC
Miod Vallat [Thu, 2 Jul 2026 07:26:38 +0000 (09:26 +0200)] 
Make pattern2SQLPattern an internal implementation detail. NFC

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
4 weeks agodnsdist: Update ChangeLog and security polling for 2.1.0
Remi Gacogne [Thu, 2 Jul 2026 07:25:27 +0000 (09:25 +0200)] 
dnsdist: Update ChangeLog and security polling for 2.1.0

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
4 weeks agoMerge pull request #17580 from PowerDNS/dependabot/github_actions/actions/checkout-7
Otto Moerbeek [Thu, 2 Jul 2026 07:19:40 +0000 (09:19 +0200)] 
Merge pull request #17580 from PowerDNS/dependabot/github_actions/actions/checkout-7

build(deps): bump actions/checkout from 6 to 7

4 weeks agoMerge pull request #17574 from PowerDNS/dependabot/pip/regression-tests.recursor...
Otto Moerbeek [Thu, 2 Jul 2026 07:19:13 +0000 (09:19 +0200)] 
Merge pull request #17574 from PowerDNS/dependabot/pip/regression-tests.recursor-dnssec/cryptography-48.0.1

build(deps): bump cryptography from 48.0.0 to 48.0.1 in /regression-tests.recursor-dnssec

4 weeks agoDe-inline {allocate,free}Statements. NFC
Miod Vallat [Thu, 2 Jul 2026 07:06:22 +0000 (09:06 +0200)] 
De-inline {allocate,free}Statements. NFC

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
4 weeks agoDo not compile list_directory() if dnsdist, too large a can of worms. 17666/head
Miod Vallat [Wed, 1 Jul 2026 15:06:55 +0000 (17:06 +0200)] 
Do not compile list_directory() if dnsdist, too large a can of worms.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
4 weeks agoProvide a more accurate error when stat() fails.
Miod Vallat [Mon, 16 Jun 2025 13:27:14 +0000 (15:27 +0200)] 
Provide a more accurate error when stat() fails.

Fixes: #9090
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
4 weeks agoFactor out code responsible for gathering files in a directory.
Miod Vallat [Mon, 16 Jun 2025 13:18:08 +0000 (15:18 +0200)] 
Factor out code responsible for gathering files in a directory.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
4 weeks agoBe sure to properly escape server parameters when displaying them as html. 17665/head
Miod Vallat [Wed, 1 Jul 2026 12:48:14 +0000 (14:48 +0200)] 
Be sure to properly escape server parameters when displaying them as html.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
4 weeks agoPerform validation of metadata name before querying the backend. 17663/head
Miod Vallat [Wed, 1 Jul 2026 12:18:01 +0000 (14:18 +0200)] 
Perform validation of metadata name before querying the backend.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
4 weeks agoMerge pull request #17654 from rgacogne/ddist-add-tests-for-dnsaction.pool
Remi Gacogne [Wed, 1 Jul 2026 11:31:49 +0000 (13:31 +0200)] 
Merge pull request #17654 from rgacogne/ddist-add-tests-for-dnsaction.pool

dnsdist: Add regression tests for the use of `DNSAction.Pool`

4 weeks agoMore input validation in Lua createreverse4.
Miod Vallat [Wed, 1 Jul 2026 11:04:32 +0000 (13:04 +0200)] 
More input validation in Lua createreverse4.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
4 weeks agoMore input validation in Lua createreverse.
Miod Vallat [Wed, 1 Jul 2026 10:46:00 +0000 (12:46 +0200)] 
More input validation in Lua createreverse.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
4 weeks agoMerge pull request #17661 from bluikko/patch-1
Miod Vallat [Wed, 1 Jul 2026 10:39:56 +0000 (12:39 +0200)] 
Merge pull request #17661 from bluikko/patch-1

docs: fix RST syntax in changelog/5.1.rst

4 weeks agodocs: fix RST syntax in changelog/5.1.rst 17661/head
Ville Ojamo [Wed, 1 Jul 2026 10:09:20 +0000 (17:09 +0700)] 
docs: fix RST syntax in changelog/5.1.rst

RST syntax is rendered verbatim in the document due to roles missing first colon.

Signed-off-by: Ville Ojamo <14869000+bluikko@users.noreply.github.com>
4 weeks agoIntroduce a symbolic constexpr for maximum label length. NFC
Miod Vallat [Wed, 1 Jul 2026 09:06:02 +0000 (11:06 +0200)] 
Introduce a symbolic constexpr for maximum label length. NFC

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
4 weeks agoMerge pull request #17659 from omoerbeek/rec-rust-lto
Otto Moerbeek [Wed, 1 Jul 2026 06:04:11 +0000 (08:04 +0200)] 
Merge pull request #17659 from omoerbeek/rec-rust-lto

rec: Set Rust LTO mode automatically, and allow setting RUSTFLAGS, rec edition

4 weeks agoMerge pull request #17656 from pieterlexis/auth-changelog-soa-spread
Peter van Dijk [Wed, 1 Jul 2026 00:47:37 +0000 (02:47 +0200)] 
Merge pull request #17656 from pieterlexis/auth-changelog-soa-spread

Auth: add SOA Edit Spread docs

4 weeks agoMerge pull request #17658 from omoerbeek/rec-coverity-20260630
Otto Moerbeek [Tue, 30 Jun 2026 14:04:16 +0000 (16:04 +0200)] 
Merge pull request #17658 from omoerbeek/rec-coverity-20260630

rec: two Coverity reports: Variable copied when it could be moved

4 weeks agoFix timing attack and broken unblock in external dynblock guide 17637/head
Jacob Masse [Mon, 29 Jun 2026 16:18:07 +0000 (12:18 -0400)] 
Fix timing attack and broken unblock in external dynblock guide

Replace naive ~= API key comparison with constant-time safeEquals().
Fix unblock handler: duration=0 is rejected by addOrRefreshBlock when
an active block has a later expiry. Use getDynamicBlocks + clearDynBlocks
+ re-add pattern instead.

Signed-off-by: Jacob Masse <jacob@traztech.ca>
4 weeks agodocs(dnsdist): fix spell check failures
Jacob Masse [Mon, 29 Jun 2026 13:00:17 +0000 (09:00 -0400)] 
docs(dnsdist): fix spell check failures

- Replace 'SIEM' with 'monitoring platform' to avoid unrecognized word
- Add 'cjson' and 'dynunblock' to spell check expect list

Signed-off-by: Jacob Masse <jacob@traztech.ca>
4 weeks agodocs(dnsdist): add webhook-triggered dynamic blocks guide
Jacob Masse [Mon, 29 Jun 2026 12:29:14 +0000 (08:29 -0400)] 
docs(dnsdist): add webhook-triggered dynamic blocks guide

Add a new section to the dynamic blocks guide showing how to use
registerWebHandler to expose HTTP endpoints that let an external
detection system insert and remove dynamic blocks via simple POST
requests. Includes working Lua handlers, curl examples, and a
security note about ACL and TLS.

Signed-off-by: Jacob Masse <jacob@traztech.ca>
4 weeks agorec: Set Rust LTO mode automatically, and allow setting RUSTFLAGS, rec edition 17659/head
Otto Moerbeek [Tue, 30 Jun 2026 13:57:54 +0000 (15:57 +0200)] 
rec: Set Rust LTO mode automatically, and allow setting RUSTFLAGS, rec edition

Copied from #17639

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
4 weeks agoApply suggestions from code review 17656/head
Pieter Lexis [Tue, 30 Jun 2026 13:30:57 +0000 (15:30 +0200)] 
Apply suggestions from code review

Co-authored-by: Peter van Dijk <peter.van.dijk@powerdns.com>
Signed-off-by: Pieter Lexis <pieter@plexis.eu>
4 weeks agorec: two Coverity reports: Variable copied when it could be moved 17658/head
Otto Moerbeek [Tue, 30 Jun 2026 13:27:40 +0000 (15:27 +0200)] 
rec: two Coverity reports: Variable copied when it could be moved

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
4 weeks agodnsdist: Implement missing connection metrics for QUIC frontends 17657/head
Remi Gacogne [Tue, 30 Jun 2026 13:22:09 +0000 (15:22 +0200)] 
dnsdist: Implement missing connection metrics for QUIC frontends

This commit adds the following metrics for QUIC frontends:

- average queries per connection
- average duration per connection
- average IOs per connection
- concurrent connections
- max concurrent connections
- new TLS sessions
- resumed TLS sessions

These metrics are currently reported as TCP metrics, which is not right and will
have to be refactored in the future.

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
4 weeks agodocs(auth): fix formatting of a security advisory
Pieter Lexis [Tue, 30 Jun 2026 13:07:21 +0000 (15:07 +0200)] 
docs(auth): fix formatting of a security advisory

4 weeks agodocs(auth): Add more info about SOA edit spreading
Pieter Lexis [Tue, 30 Jun 2026 12:45:33 +0000 (14:45 +0200)] 
docs(auth): Add more info about SOA edit spreading

4 weeks agodnsdist: Add regression tests for the use of `DNSAction.Pool` 17654/head
Remi Gacogne [Tue, 30 Jun 2026 10:37:51 +0000 (12:37 +0200)] 
dnsdist: Add regression tests for the use of `DNSAction.Pool`

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
4 weeks agoMerge pull request #17640 from rgacogne/coverity-fix-ninja-build
Remi Gacogne [Tue, 30 Jun 2026 10:07:15 +0000 (12:07 +0200)] 
Merge pull request #17640 from rgacogne/coverity-fix-ninja-build

coverity: Add missing argument to `ninja`

4 weeks agoMerge pull request #17639 from edmonds/rust-meson-options
Remi Gacogne [Tue, 30 Jun 2026 10:01:21 +0000 (12:01 +0200)] 
Merge pull request #17639 from edmonds/rust-meson-options

dnsdist: Set Rust LTO mode automatically, and allow setting RUSTFLAGS

4 weeks agoMerge pull request #17648 from pieterlexis/dnsdist-fix-copy
Pieter Lexis [Tue, 30 Jun 2026 09:55:31 +0000 (11:55 +0200)] 
Merge pull request #17648 from pieterlexis/dnsdist-fix-copy

fix: use reference in loop

4 weeks agofix: use reference in loop 17648/head
Pieter Lexis [Tue, 30 Jun 2026 09:01:34 +0000 (11:01 +0200)] 
fix: use reference in loop

4 weeks agoMerge pull request #17638 from Habbie/science-fiction
Peter van Dijk [Tue, 30 Jun 2026 08:51:02 +0000 (10:51 +0200)] 
Merge pull request #17638 from Habbie/science-fiction

auth-5.1.3 changelog and secpoll

4 weeks agocoverity: Add missing argument to `ninja` 17640/head
Remi Gacogne [Tue, 30 Jun 2026 06:40:39 +0000 (08:40 +0200)] 
coverity: Add missing argument to `ninja`

If the third time is the charm, what's the fourth?

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
4 weeks agobuild(deps): bump actions/checkout from 6 to 7 17580/head
dependabot[bot] [Tue, 30 Jun 2026 06:33:39 +0000 (06:33 +0000)] 
build(deps): bump actions/checkout from 6 to 7

Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7.
- [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/v6...v7)

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

Signed-off-by: dependabot[bot] <support@github.com>
4 weeks agoMerge pull request #17624 from hhoffstaette/dnsdist-ca-missing-lua-methods
Remi Gacogne [Tue, 30 Jun 2026 06:31:41 +0000 (08:31 +0200)] 
Merge pull request #17624 from hhoffstaette/dnsdist-ca-missing-lua-methods

dnsdist: add missing ComboAddress functions to Lua bindings

4 weeks agoMerge pull request #17636 from rgacogne/fix-rec-ddist-coverity-really
Remi Gacogne [Tue, 30 Jun 2026 06:30:45 +0000 (08:30 +0200)] 
Merge pull request #17636 from rgacogne/fix-rec-ddist-coverity-really

coverity: Fix dnsdist and rec builds (really, this time!)

4 weeks agodnsdist: meson: Add option to set RUSTFLAGS for Cargo build 17639/head
Robert Edmonds [Mon, 29 Jun 2026 21:08:36 +0000 (17:08 -0400)] 
dnsdist: meson: Add option to set RUSTFLAGS for Cargo build

meson appears to sanitize the environment variables that are passed
into `custom_target` command invocations, so it doesn't appear to be
possible to set the `RUSTFLAGS` environment variable in a `meson setup`
invocation and have it actually be passed to the Cargo build.

It would be nice to be able to set `RUSTFLAGS` to a custom value,
much as it is nice to be able to set `-Dc_args=` and `-Dcpp_args=` in
order to set specific optimization flags. For instance, I'd like to
set `-march=x86-64-v3` in `c_args` and `cpp_args` so that the C/C++
compilers target modern AMD64 CPUs, and also set `RUSTFLAGS` to `-C
target-cpu=x86-64-v3` so that the Rust compiler also targets modern
AMD64 CPUs. (According to `rustc --print target-cpus` the default target
CPU for rustc 1.96.0 is apparently the original baseline x86-64.)

There are other relevant settings that can be passed via `RUSTFLAGS`
such as `-C codegen-units=1` [0], which can optimize Rust LTO
builds further, as well as `-C linker-plugin-lto` [1] which can
perform LTO across the C/C++ and Rust language boundary, although
linker-plugin-based LTO requires the user to carefully ensure that
compatible versions of Clang/LLVM/LLD/Rustc are being used.

[0]: https://doc.rust-lang.org/rustc/codegen-options/index.html#codegen-units

[1]: https://doc.rust-lang.org/rustc/linker-plugin-lto.html

Signed-off-by: Robert Edmonds <edmonds@users.noreply.github.com>
4 weeks agodnsdist: meson: Automatically plumb LTO setting into Cargo build
Robert Edmonds [Mon, 29 Jun 2026 20:52:19 +0000 (16:52 -0400)] 
dnsdist: meson: Automatically plumb LTO setting into Cargo build

meson has built-in options that control whether an LTO build is
performed [0], but these settings only affect the C/C++ code that is
compiled by meson, and not the Rust code compiled by the external Cargo
invocation.

Cargo supports several LTO modes [1] like "thin" and "fat" which have to
be expressed as Cargo profile settings. Custom profiles could be defined
in the Cargo.toml file containing the desired LTO settings, but as there
are already some existing dependencies on whether the Cargo profile
is set to "release" or "dev", it looks like the easiest thing to do is
to express a Cargo profile override for the currently selected profile
using the `cargo --config` command-line syntax [2].

This commit adds a `rust-lto` meson option (defaulting to true). If
true, it examines the meson `b_lto` and `b_lto_mode` settings and
determines whether the Cargo build should be overridden to Rust LTO mode
"fat" (if b_lto is true and b_lto_mode is "default") or to Rust LTO mode
"thin" (if b_lto is true and b_lto_mode is "thin").

The previous behavior where the meson LTO options would not affect the
Cargo build can be selected by specifying `-Drust-lto=false` to meson.

[0]: https://mesonbuild.com/Builtin-options.html#base-options

[1]: https://doc.rust-lang.org/cargo/reference/profiles.html#lto

[2]: https://doc.rust-lang.org/cargo/reference/config.html#command-line-overrides

Signed-off-by: Robert Edmonds <edmonds@users.noreply.github.com>
5 weeks agoauth-5.1.3 changelog and secpoll 17638/head
Peter van Dijk [Mon, 29 Jun 2026 19:16:58 +0000 (21:16 +0200)] 
auth-5.1.3 changelog and secpoll

5 weeks agoAdd missing ComboAddress functions to Lua bindings 17624/head
Holger Hoffstätte [Mon, 29 Jun 2026 12:12:34 +0000 (14:12 +0200)] 
Add missing ComboAddress functions to Lua bindings

Add toStringReversed()/toStringNoInterface() Lua bindings just as
in dnsdist.

Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
5 weeks agoMerge pull request #17568 from miodvallat/cantally
Miod Vallat [Mon, 29 Jun 2026 14:05:03 +0000 (16:05 +0200)] 
Merge pull request #17568 from miodvallat/cantally

auth api: get the number of rrsets of a zone

5 weeks agodnsdist: add missing ComboAddress functions to Lua bindings
Holger Hoffstätte [Sun, 28 Jun 2026 11:47:10 +0000 (13:47 +0200)] 
dnsdist: add missing ComboAddress functions to Lua bindings

iputils.hh implements toStringReversed & toStringNoInterface, but they
were not exposed to Lua:

 > ca4=newCA("192.168.100.200")
 > ca4:toStringReversed()
 200.100.168.192
 > ca6=newCA("fd39:8628:558:0:62b5:8dff:fe1e:d8a8")
 > ca6:toStringReversed()
 8.a.8.d.e.1.e.f.f.f.d.8.5.b.2.6.0.0.0.0.8.5.5.0.8.2.6.8.9.3.d.f
 > ca6if=newCA("fe80::1ff:fe23:4567:890a%eth0")
 > ca6if:toStringNoInterface()
 fe80::1ff:fe23:4567:890a

Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
5 weeks agocoverity: Add missing `REPO_HOME` env var for the recursor build 17636/head
Remi Gacogne [Mon, 29 Jun 2026 11:11:21 +0000 (13:11 +0200)] 
coverity: Add missing `REPO_HOME` env var for the recursor build

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
5 weeks agocoverity: Set `BUILDER_VERSION`
Remi Gacogne [Mon, 29 Jun 2026 10:51:50 +0000 (12:51 +0200)] 
coverity: Set `BUILDER_VERSION`

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
5 weeks agocoverity: Fix wrong c/p from another workflow that uses a build matrix
Remi Gacogne [Mon, 29 Jun 2026 10:32:07 +0000 (12:32 +0200)] 
coverity: Fix wrong c/p from another workflow that uses a build matrix

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
5 weeks agoMerge pull request #17635 from rgacogne/ddist-fix-default-ecs-source-prefix-v4
Remi Gacogne [Mon, 29 Jun 2026 10:42:00 +0000 (12:42 +0200)] 
Merge pull request #17635 from rgacogne/ddist-fix-default-ecs-source-prefix-v4

dnsdist: Fix the default value for IPv4 ECS source prefix

5 weeks agoMerge pull request #17634 from rgacogne/fix-rec-ddist-coverity
Remi Gacogne [Mon, 29 Jun 2026 10:06:15 +0000 (12:06 +0200)] 
Merge pull request #17634 from rgacogne/fix-rec-ddist-coverity

coverity: More fixes to build dnsdist and rec (pip deps, Rust for rec)

5 weeks agodnsdist: Fix the default value for IPv4 ECS source prefix 17635/head
Remi Gacogne [Mon, 29 Jun 2026 09:53:04 +0000 (11:53 +0200)] 
dnsdist: Fix the default value for IPv4 ECS source prefix

The wrong default caused any value set via YAML to be ignored.

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
5 weeks agocoverity: More fixes to build dnsdist and rec (pip deps, Rust for rec) 17634/head
Remi Gacogne [Mon, 29 Jun 2026 09:31:14 +0000 (11:31 +0200)] 
coverity: More fixes to build dnsdist and rec (pip deps, Rust for rec)

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
5 weeks agoMerge pull request #17622 from miodvallat/ueberlua
Miod Vallat [Mon, 29 Jun 2026 09:16:55 +0000 (11:16 +0200)] 
Merge pull request #17622 from miodvallat/ueberlua

auth: minor lua fixes

5 weeks agoMerge pull request #17626 from rgacogne/fix-rec-ddist-coverity
Remi Gacogne [Mon, 29 Jun 2026 09:07:54 +0000 (11:07 +0200)] 
Merge pull request #17626 from rgacogne/fix-rec-ddist-coverity

coverity: Fix dnsdist and rec scans

5 weeks agoMerge pull request #17625 from miodvallat/structured_testing
Miod Vallat [Mon, 29 Jun 2026 07:59:46 +0000 (09:59 +0200)] 
Merge pull request #17625 from miodvallat/structured_testing

auth: enable structured logging in some tests

5 weeks agoMerge pull request #17586 from miodvallat/auth-api-generic-type
Miod Vallat [Mon, 29 Jun 2026 07:50:21 +0000 (09:50 +0200)] 
Merge pull request #17586 from miodvallat/auth-api-generic-type

auth REST API: escaping issue with generic record syntax

5 weeks agocoverity: Fix dnsdist and rec scans 17626/head
Remi Gacogne [Mon, 29 Jun 2026 07:27:24 +0000 (09:27 +0200)] 
coverity: Fix dnsdist and rec scans

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
5 weeks agoEnable structured logging in many tests (but not all). 17625/head
Miod Vallat [Mon, 29 Jun 2026 05:15:12 +0000 (07:15 +0200)] 
Enable structured logging in many tests (but not all).

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
5 weeks agoAdd missing lookupEnd if Lua record execution gives satisfaction. 17622/head
Miod Vallat [Fri, 26 Jun 2026 10:46:53 +0000 (12:46 +0200)] 
Add missing lookupEnd if Lua record execution gives satisfaction.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
5 weeks agoKeep the structured logger for Lua records in the per-execution context.
Miod Vallat [Fri, 26 Jun 2026 10:35:42 +0000 (12:35 +0200)] 
Keep the structured logger for Lua records in the per-execution context.

Prior to this change, the structured context would be kept in a capture and
hold the logger used for the first Lua code execution, and could be outdated
or not precise enough when multiple threads are used.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
5 weeks agorec: Apply Miod's optimization to the aggressive NSEC cache
Remi Gacogne [Fri, 26 Jun 2026 08:37:53 +0000 (10:37 +0200)] 
rec: Apply Miod's optimization to the aggressive NSEC cache

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
5 weeks agorec: Fix invalid NSECs used in our unit tests
Remi Gacogne [Fri, 26 Jun 2026 08:29:51 +0000 (10:29 +0200)] 
rec: Fix invalid NSECs used in our unit tests

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
5 weeks agorec: Add more comments to validateWithKeySet 17761/head
Remi Gacogne [Fri, 26 Jun 2026 08:00:36 +0000 (10:00 +0200)] 
rec: Add more comments to validateWithKeySet

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
5 weeks agoMerge pull request #17620 from miodvallat/kantspel
Remi Gacogne [Fri, 26 Jun 2026 07:23:18 +0000 (09:23 +0200)] 
Merge pull request #17620 from miodvallat/kantspel

hide the fact that we can't spell

5 weeks agoMerge pull request #17606 from rgacogne/ddist-ywh-231
Remi Gacogne [Fri, 26 Jun 2026 07:14:10 +0000 (09:14 +0200)] 
Merge pull request #17606 from rgacogne/ddist-ywh-231

dnsdist: Properly handle bogus DATA frame for DoH3 GET streams

5 weeks agotypos 17620/head
Miod Vallat [Fri, 26 Jun 2026 05:57:45 +0000 (07:57 +0200)] 
typos

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
5 weeks agoAllow for a few more words
Miod Vallat [Fri, 26 Jun 2026 05:57:31 +0000 (07:57 +0200)] 
Allow for a few more words

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
5 weeks agoLet the API return the number of records in zone details. 17568/head
Miod Vallat [Fri, 12 Jun 2026 13:57:27 +0000 (15:57 +0200)] 
Let the API return the number of records in zone details.

Also, allow the record count to be obtained without the record contents.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
5 weeks agoMerge pull request #17587 from miodvallat/record_obesity
Miod Vallat [Thu, 25 Jun 2026 20:24:15 +0000 (22:24 +0200)] 
Merge pull request #17587 from miodvallat/record_obesity

Reject numerical record type values which do not fit in 16 bits

5 weeks agoMerge pull request #17570 from miodvallat/apimandias
Miod Vallat [Thu, 25 Jun 2026 20:23:40 +0000 (22:23 +0200)] 
Merge pull request #17570 from miodvallat/apimandias

auth api: allow forced update for EXTEND and DELETE zone patch operations

5 weeks agoMerge pull request #17300 from miodvallat/too_much_ent_ropy
Miod Vallat [Thu, 25 Jun 2026 20:23:01 +0000 (22:23 +0200)] 
Merge pull request #17300 from miodvallat/too_much_ent_ropy

auth: technical depth reduction in rectifyZone

5 weeks agoMerge pull request #17583 from Habbie/soa-edit-jitter-longer-test
Peter van Dijk [Thu, 25 Jun 2026 20:09:15 +0000 (22:09 +0200)] 
Merge pull request #17583 from Habbie/soa-edit-jitter-longer-test

soa-edit-spread test: start measuring earlier

5 weeks agodnsdist: Apply Pieter's suggestion 17606/head
Remi Gacogne [Tue, 21 Apr 2026 10:31:49 +0000 (12:31 +0200)] 
dnsdist: Apply Pieter's suggestion

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
5 weeks agodnsdist: Be more consistent when processing DoH3 headers
Remi Gacogne [Tue, 21 Apr 2026 07:30:54 +0000 (09:30 +0200)] 
dnsdist: Be more consistent when processing DoH3 headers

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
5 weeks agodnsdist: Properly handle bogus DATA frame for DoH3 GET streams (YWH-PGM6095-231)
Remi Gacogne [Mon, 13 Apr 2026 15:04:15 +0000 (17:04 +0200)] 
dnsdist: Properly handle bogus DATA frame for DoH3 GET streams (YWH-PGM6095-231)

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
5 weeks agosigh-tidy 17586/head
Miod Vallat [Thu, 25 Jun 2026 13:51:17 +0000 (15:51 +0200)] 
sigh-tidy

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
5 weeks agoMerge pull request #17607 from rgacogne/ddist-edns-smuggling-ywh-259
Remi Gacogne [Thu, 25 Jun 2026 14:21:06 +0000 (16:21 +0200)] 
Merge pull request #17607 from rgacogne/ddist-edns-smuggling-ywh-259

dnsdist: Check the owner name when parsing an OPT record

5 weeks agoMerge pull request #17604 from rgacogne/ddist-ixfr-soa-leak-outgoing-connection
Remi Gacogne [Thu, 25 Jun 2026 14:20:47 +0000 (16:20 +0200)] 
Merge pull request #17604 from rgacogne/ddist-ixfr-soa-leak-outgoing-connection

dnsdist: Better handling of invalid SOA in IXFR queries

5 weeks agoMerge pull request #17603 from rgacogne/ddist-469
Remi Gacogne [Thu, 25 Jun 2026 14:20:33 +0000 (16:20 +0200)] 
Merge pull request #17603 from rgacogne/ddist-469

dnsdist: Fix out-of-bounds read in SetMacAddrAction

5 weeks agoMerge pull request #17601 from rgacogne/ywh-213
Remi Gacogne [Thu, 25 Jun 2026 14:20:21 +0000 (16:20 +0200)] 
Merge pull request #17601 from rgacogne/ywh-213

dnsdist: Fix handling of trailing whitespaces in base64 content

5 weeks agoMerge pull request #17600 from rgacogne/ddist-ywh-201
Remi Gacogne [Thu, 25 Jun 2026 14:20:08 +0000 (16:20 +0200)] 
Merge pull request #17600 from rgacogne/ddist-ywh-201

dnsdist: Sanitize DNS names before passing them to prometheus

5 weeks agoMerge pull request #17609 from omoerbeek/rec-priv-ywh-290-edns-vs-dnssec
Otto Moerbeek [Thu, 25 Jun 2026 13:49:06 +0000 (15:49 +0200)] 
Merge pull request #17609 from omoerbeek/rec-priv-ywh-290-edns-vs-dnssec

rec: If EDNS is mandatory, do it always in the first iteration (#YWH-PGM6095-290)

5 weeks agoMerge pull request #17608 from omoerbeek/rec-priv-ywh275-zonemd
Otto Moerbeek [Thu, 25 Jun 2026 13:48:47 +0000 (15:48 +0200)] 
Merge pull request #17608 from omoerbeek/rec-priv-ywh275-zonemd

rec: check RRSIG record is valid in zonemd before processing further (#YWH-PGM6095-275)

5 weeks agoMerge pull request #17605 from omoerbeek/rec-priv-ywh-264-xfr-soa
Otto Moerbeek [Thu, 25 Jun 2026 13:48:26 +0000 (15:48 +0200)] 
Merge pull request #17605 from omoerbeek/rec-priv-ywh-264-xfr-soa

rec: With catalog zone transfers, check if SOA is defined before using

5 weeks agoMerge pull request #17602 from omoerbeek/rec-priv-validate-qdcount2
Otto Moerbeek [Thu, 25 Jun 2026 13:48:02 +0000 (15:48 +0200)] 
Merge pull request #17602 from omoerbeek/rec-priv-validate-qdcount2

rec: Reject (more) strange headers

5 weeks agoMerge pull request #17599 from omoerbeek/rec-priv-ywh-274
Otto Moerbeek [Thu, 25 Jun 2026 13:47:33 +0000 (15:47 +0200)] 
Merge pull request #17599 from omoerbeek/rec-priv-ywh-274

rec: fix validation bypass for ZONEMD (part of YWH-PGM6095-274)

5 weeks agoMerge pull request #17598 from omoerbeek/rec-priv-pc-ecs
Otto Moerbeek [Thu, 25 Jun 2026 13:47:01 +0000 (15:47 +0200)] 
Merge pull request #17598 from omoerbeek/rec-priv-pc-ecs

rec: do not store ECS scope 0 carrying requests/replies in the packetcache

5 weeks agoMerge pull request #17597 from omoerbeek/rec-priv-ztc-ywh-195
Otto Moerbeek [Thu, 25 Jun 2026 13:46:22 +0000 (15:46 +0200)] 
Merge pull request #17597 from omoerbeek/rec-priv-ztc-ywh-195

rec: Reject out of zone records

5 weeks agoMerge pull request #17616 from omoerbeek/rec-sa-fix
Otto Moerbeek [Thu, 25 Jun 2026 13:07:26 +0000 (15:07 +0200)] 
Merge pull request #17616 from omoerbeek/rec-sa-fix

Fix CVE ref

5 weeks agoFix CVE ref 17616/head
Otto Moerbeek [Thu, 25 Jun 2026 12:39:11 +0000 (14:39 +0200)] 
Fix CVE ref

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
5 weeks agoMerge pull request #17596 from omoerbeek/rec-prep-20260625
Otto Moerbeek [Thu, 25 Jun 2026 12:28:10 +0000 (14:28 +0200)] 
Merge pull request #17596 from omoerbeek/rec-prep-20260625

rec: Prep for rec 5.2.11, 5.3.8, 5.4.3