]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
7 months agoSVCB parser: allow quotes around port= 14968/head
Peter van Dijk [Fri, 15 Nov 2024 11:47:13 +0000 (12:47 +0100)] 
SVCB parser: allow quotes around port=

(cherry picked from commit 430280109b4a27240be737258f118dd3a1ed8199)

7 months agoCI binary check: allow the tinydns data.cdb
Peter van Dijk [Fri, 15 Nov 2024 11:47:38 +0000 (12:47 +0100)] 
CI binary check: allow the tinydns data.cdb

(cherry picked from commit e31e6238896c5908d2f0d15e082722cd244ffc49)

8 months agoMerge pull request #14871 from romeroalx/backport-14862-to-auth-4.9.x
Peter van Dijk [Mon, 25 Nov 2024 08:36:42 +0000 (09:36 +0100)] 
Merge pull request #14871 from romeroalx/backport-14862-to-auth-4.9.x

auth-4.9.x: Backport 14862 - builder: remove ubuntu lunar+mantic as they are EOL

8 months agobuilder: remove ubuntu lunar+mantic as they are EOL 14871/head
Peter van Dijk [Fri, 22 Nov 2024 09:08:40 +0000 (10:08 +0100)] 
builder: remove ubuntu lunar+mantic as they are EOL

10 months agoMerge pull request #14711 from Habbie/backport-14261-to-auth-4.9.x auth-4.9.2
Peter van Dijk [Thu, 26 Sep 2024 10:47:11 +0000 (12:47 +0200)] 
Merge pull request #14711 from Habbie/backport-14261-to-auth-4.9.x

auth-4.9 pdnsutil check-zone: make LUA records optional

10 months agoMerge pull request #14710 from Habbie/backport-14404-to-auth-4.9.x
Peter van Dijk [Thu, 26 Sep 2024 10:46:27 +0000 (12:46 +0200)] 
Merge pull request #14710 from Habbie/backport-14404-to-auth-4.9.x

auth-4.9  Yahttp router: appease coverity wrt unsigned underflow in match()

10 months agoMerge pull request #14708 from Habbie/backport-14550-to-auth-4.9.x
Peter van Dijk [Thu, 26 Sep 2024 10:46:09 +0000 (12:46 +0200)] 
Merge pull request #14708 from Habbie/backport-14550-to-auth-4.9.x

auth-4.9 json11: add include for cstdint

10 months agoMerge pull request #14709 from Habbie/backport-14562-to-auth-4.9.x
Peter van Dijk [Thu, 26 Sep 2024 10:45:58 +0000 (12:45 +0200)] 
Merge pull request #14709 from Habbie/backport-14562-to-auth-4.9.x

auth-4.9: Fix build with boost 1.86.0

10 months agoMerge pull request #14675 from Habbie/backport-14045-to-auth-4.9.x
Peter van Dijk [Thu, 26 Sep 2024 10:34:38 +0000 (12:34 +0200)] 
Merge pull request #14675 from Habbie/backport-14045-to-auth-4.9.x

auth 4.9 API: when querying with rrset_name, respect it for comments too

10 months agoMerge pull request #14707 from Habbie/backport-14642-to-auth-4.9.x
Peter van Dijk [Thu, 26 Sep 2024 10:33:27 +0000 (12:33 +0200)] 
Merge pull request #14707 from Habbie/backport-14642-to-auth-4.9.x

auth-4.9: more and better thread names

10 months agoMerge pull request #14712 from Habbie/backport-14394-to-auth-4.9.x
Peter van Dijk [Thu, 26 Sep 2024 09:07:25 +0000 (11:07 +0200)] 
Merge pull request #14712 from Habbie/backport-14394-to-auth-4.9.x

auth-4.9: provide dns packet when doing lookup for presigned signatures

10 months agoattempted to fix linter 14712/head
d-wibowo [Wed, 3 Jul 2024 02:20:44 +0000 (09:20 +0700)] 
attempted to fix linter

(cherry picked from commit f79e410fcaa399319107ca059cf1b3bab0012f2f)

10 months agoauth: provide dns packet when doing lookup for presigned signatures
d-wibowo [Fri, 28 Jun 2024 08:01:20 +0000 (15:01 +0700)] 
auth: provide dns packet when doing lookup for presigned signatures

(cherry picked from commit 3a764efd5899360cd359e6b90460978e573b3cc1)

10 months agopdnsutil check-zone: make LUA records optional 14711/head
Sven Wegener [Thu, 30 May 2024 09:02:34 +0000 (11:02 +0200)] 
pdnsutil check-zone: make LUA records optional

Merge #14011 added checking for LUA records to checkZone(), but LUA
records depend on --enable-lua-records and the change causes a build
error without.

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
(cherry picked from commit 175b5e6f9b59c25f87a7491f01a73a6e942e1eb8)

10 months agoAvoid upos underflowing in match loop 14710/head
Otto Moerbeek [Tue, 2 Jul 2024 10:22:29 +0000 (12:22 +0200)] 
Avoid upos underflowing in match loop

(cherry picked from commit 09462bda7f8da4e59307e0d6a7446d499c1da34c)

10 months agono else block after break statement
Otto Moerbeek [Tue, 2 Jul 2024 10:20:48 +0000 (12:20 +0200)] 
no else block after break statement

(cherry picked from commit 9ecf2b37287270be3d06ac3d5570f5d67a0bb364)

10 months agoFix build with boost 1.86.0 14709/head
Michael Cho [Fri, 16 Aug 2024 02:49:17 +0000 (22:49 -0400)] 
Fix build with boost 1.86.0

Boost 1.86.0 changes seem to no longer indirectly include header which
causes build to fail with:
```
uuid-utils.cc:38:58:
error: 'random' is not a class, namespace, or enumeration
```

boost/random/mersenne_twister.hpp has been available since Boost 1.21.2

(cherry picked from commit eed56000b1d68ac083b8e8bea4ff0ea30a1579c4)

10 months agojson11: add include for cstdint 14708/head
Peter van Dijk [Fri, 9 Aug 2024 17:41:46 +0000 (19:41 +0200)] 
json11: add include for cstdint

fixes #14549, which came with a patch

(cherry picked from commit 8d6d32bef74aa2cba41421645936fade35c71c72)

10 months agoMerge pull request #14706 from Habbie/backport-14670-to-auth-4.9.x
Peter van Dijk [Wed, 25 Sep 2024 11:49:23 +0000 (13:49 +0200)] 
Merge pull request #14706 from Habbie/backport-14670-to-auth-4.9.x

auth 4.9 webserver.cc: try to pass exception text with 500 errors

10 months agoauth signer: set thread name 14707/head
Peter van Dijk [Tue, 10 Sep 2024 08:13:32 +0000 (10:13 +0200)] 
auth signer: set thread name

(cherry picked from commit deb84f4456271ce8d941ceb3d5d16b8b81083d7a)

10 months agoauth communicator: fix retrieval thread name
Peter van Dijk [Tue, 10 Sep 2024 08:13:25 +0000 (10:13 +0200)] 
auth communicator: fix retrieval thread name

(cherry picked from commit fdc906cf85b84648241f0a6a1a54f266cb970c31)

10 months agoauth LUA: reset thread name after async runs
Peter van Dijk [Tue, 10 Sep 2024 08:13:00 +0000 (10:13 +0200)] 
auth LUA: reset thread name after async runs

(cherry picked from commit 9f2121926497c89c9071fff372e2d0601f066928)

10 months agoauth LUA: better thread names
Peter van Dijk [Mon, 9 Sep 2024 14:04:00 +0000 (16:04 +0200)] 
auth LUA: better thread names

(cherry picked from commit 9efb060542d8dbdab9384f626acf312e0266c27c)

10 months agowebserver.cc: try to pass exception text with 500 errors 14706/head
Peter van Dijk [Fri, 13 Sep 2024 13:46:06 +0000 (15:46 +0200)] 
webserver.cc: try to pass exception text with 500 errors

fixes #14637 -if- the client sends `Accept: application/json`

(cherry picked from commit 27ff9f415d5c1431dd78486e691a008f969f5843)

10 months agoMerge pull request #14688 from Habbie/backport-14686-to-auth-4.9.x
Peter van Dijk [Fri, 20 Sep 2024 12:38:07 +0000 (14:38 +0200)] 
Merge pull request #14688 from Habbie/backport-14686-to-auth-4.9.x

auth 4.9 mssql CI: switch to 2022-CU12 image

10 months agoauth mssql CI: switch to 2022-CU12 image 14688/head
Peter van Dijk [Thu, 19 Sep 2024 08:47:07 +0000 (10:47 +0200)] 
auth mssql CI: switch to 2022-CU12 image

https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240915.1 broke mssql.

https://github.com/microsoft/mssql-docker/issues/868 fits the kernel upgrade.

this commit switches from 2017-GA to 2022-CU12, which unbreaks the build

(cherry picked from commit 0b805ddebc3e14f78effa44ebf06377c593276ed)

10 months agoauth API: when querying with rrset_name, respect it for comments too 14675/head
Peter van Dijk [Tue, 18 Jun 2024 18:25:23 +0000 (20:25 +0200)] 
auth API: when querying with rrset_name, respect it for comments too

(cherry picked from commit e8e31cdbddaab406e614d3d858d318a28b391a9d)

11 months agoMerge pull request #14603 from Habbie/backport-14576-to-auth-4.9.x
Peter van Dijk [Wed, 28 Aug 2024 09:50:55 +0000 (11:50 +0200)] 
Merge pull request #14603 from Habbie/backport-14576-to-auth-4.9.x

auth-4.9: ssqlite3: use "begin immediate" to avoid later fights over upgrading to write

11 months agossqlite3: use "begin immediate" to avoid later fights over upgrading to write 14603/head
Peter van Dijk [Wed, 21 Aug 2024 08:23:56 +0000 (10:23 +0200)] 
ssqlite3: use "begin immediate" to avoid later fights over upgrading to write

fixes #14564

(cherry picked from commit 63851a822fb5651cd7720c7f7f597309aeaa82a7)

11 months agoMerge pull request #14526 from Habbie/backport-14454-to-auth-4.9.x
Peter van Dijk [Fri, 9 Aug 2024 11:08:04 +0000 (13:08 +0200)] 
Merge pull request #14526 from Habbie/backport-14454-to-auth-4.9.x

auth-4.9: fix domain ordering in catalog SQL query

12 months agofix info-all-primary order by in odbc-sqlite3 14526/head
Peter van Dijk [Thu, 18 Jul 2024 11:10:47 +0000 (13:10 +0200)] 
fix info-all-primary order by in odbc-sqlite3

(cherry picked from commit bade6bc7d8e74aa20de6a0b277c1682c0eb85b10)

12 months agoenable primary=yes during auth regression tests
Peter van Dijk [Thu, 18 Jul 2024 11:07:19 +0000 (13:07 +0200)] 
enable primary=yes during auth regression tests

(cherry picked from commit 3f4a27577b3c3ca5a563402aacbf2260ad0c4fc8)

12 months agoauth gmysql: use table alias name in ORDER BY
Peter van Dijk [Thu, 18 Jul 2024 11:07:11 +0000 (13:07 +0200)] 
auth gmysql: use table alias name in ORDER BY

(cherry picked from commit 7a8ca8c13b2e8e6627eef2fd7281f99d0e86c80b)

12 months agoauth catalogs SQL: force order of domains to avoid spurious rehashes
Peter van Dijk [Tue, 9 Jul 2024 12:19:46 +0000 (14:19 +0200)] 
auth catalogs SQL: force order of domains to avoid spurious rehashes

fixes #13963

(cherry picked from commit 72819aec4c38c97314f0686c3b9e84aa52be4854)

12 months agoMerge pull request #14527 from Habbie/backport-14360-to-auth-4.9.x
Peter van Dijk [Thu, 25 Jul 2024 12:41:39 +0000 (14:41 +0200)] 
Merge pull request #14527 from Habbie/backport-14360-to-auth-4.9.x

auth-4.9: Better fix for the leak reported by LSAN in test-distributor_hh.cc

12 months agoauth: Use [[maybe_unused]] in the distributor unit tests 14527/head
Remi Gacogne [Fri, 21 Jun 2024 09:10:28 +0000 (11:10 +0200)] 
auth: Use [[maybe_unused]] in the distributor unit tests

As suggested by Otto.

(cherry picked from commit 9525b32a1350f10441b6921f64151f1d9156ab52)

12 months agoauth: Better fix for the leak reported by LSAN in test-distributor_hh.cc
Remi Gacogne [Thu, 20 Jun 2024 08:21:48 +0000 (10:21 +0200)] 
auth: Better fix for the leak reported by LSAN in test-distributor_hh.cc

This unit test is checking that we correctly throw when too many queries
are waiting in the distribution pipe, by making the mock backend slow
on purpose. Once the distributor has been restarted as expected, we need
to wait until the mock backend has processed all queued queries, otherwise
Leak Sanitizer will rightfully report a memory leak.

(cherry picked from commit 681cdfb76c06fbfe89e1ae606ac629e42829cb7c)

12 months agoMerge pull request #14463 from omoerbeek/backport-14445-to-auth-4.9.x
Otto Moerbeek [Fri, 12 Jul 2024 09:45:39 +0000 (11:45 +0200)] 
Merge pull request #14463 from omoerbeek/backport-14445-to-auth-4.9.x

auth: Backport 14445 to auth 4.9.x: use el-7 for daily build

12 months agorec 4.9.x: daily build for el-7 instead of centos-7 14463/head
Otto Moerbeek [Tue, 9 Jul 2024 08:19:07 +0000 (10:19 +0200)] 
rec 4.9.x: daily build for el-7 instead of centos-7

(cherry picked from commit 8a0e619a2a7d027d24e26fb23ecade0573592382)

13 months agoMerge pull request #14403 from Habbie/backport-14400-to-auth-4.9.x
Peter van Dijk [Thu, 4 Jul 2024 13:12:57 +0000 (15:12 +0200)] 
Merge pull request #14403 from Habbie/backport-14400-to-auth-4.9.x

auth-4.9: switch el7 builds to Oracle Linux 7

13 months agoswitch el7 builds to Oracle Linux 7 14403/head
Peter van Dijk [Tue, 2 Jul 2024 09:19:31 +0000 (11:19 +0200)] 
switch el7 builds to Oracle Linux 7

(cherry picked from commit 73a1b98f92c671c590540ac19d74d70499f89066)

13 months agoMerge pull request #14405 from Habbie/backport-14359-to-auth-4.9.x
Peter van Dijk [Tue, 2 Jul 2024 13:03:01 +0000 (15:03 +0200)] 
Merge pull request #14405 from Habbie/backport-14359-to-auth-4.9.x

auth-4.9: dns.cc: use pdns::views::UnsignedCharView

13 months agodns.cc: use pdns::views::UnsignedCharView 14405/head
Otto Moerbeek [Wed, 19 Jun 2024 11:10:15 +0000 (13:10 +0200)] 
dns.cc: use pdns::views::UnsignedCharView

Includes minor cleanup and additions to make UnsignedCharView usable for this use case.
Supersedes #14356
Fixes
/usr/include/c++/v1/__fwd/string_view.h:22:41: warning: 'char_traits<unsigned char>' is deprecated: char_traits<T> for T not equal to char, wchar_t, char8_t, char16_t or char32_t is non-standard and is provided for a temporary period. It will be removed in LLVM 19, so please migrate off of it. [-Wdeprecated-declarations]

(cherry picked from commit 949ea9456dbe76e78aeff5f6f37f218549d1b493)

13 months agoimport views.hh from master
Peter van Dijk [Tue, 2 Jul 2024 10:48:38 +0000 (12:48 +0200)] 
import views.hh from master

13 months agoMerge pull request #14313 from romeroalx/backport-14241-to-auth-4.9.x
Peter van Dijk [Mon, 1 Jul 2024 11:05:48 +0000 (13:05 +0200)] 
Merge pull request #14313 from romeroalx/backport-14241-to-auth-4.9.x

auth-4.9.x: Backport removal of centos-8 and centos-8-stream as build targets

13 months agoremove centos-8 and centos-8-stream as build targets 14313/head
romeroalx [Tue, 4 Jun 2024 09:16:18 +0000 (11:16 +0200)] 
remove centos-8 and centos-8-stream as build targets

13 months agoMerge pull request #14303 from Habbie/backport-14277-to-auth-4.9.x
Peter van Dijk [Mon, 10 Jun 2024 12:43:07 +0000 (14:43 +0200)] 
Merge pull request #14303 from Habbie/backport-14277-to-auth-4.9.x

auth 4.9 geoipbackend: link C++ filesystem lib if necessary

13 months agoauth geoipbackend: link C++ filesystem lib if necessary 14303/head
Peter van Dijk [Tue, 4 Jun 2024 11:01:36 +0000 (13:01 +0200)] 
auth geoipbackend: link C++ filesystem lib if necessary

(cherry picked from commit 3140f65175c9b5636b8a2e6d074ed61ed41184fe)

14 months agoMerge pull request #14245 from ns-sjorgedeaguiar/backport-14218-to-auth-4.9.x
Peter van Dijk [Thu, 6 Jun 2024 11:11:27 +0000 (13:11 +0200)] 
Merge pull request #14245 from ns-sjorgedeaguiar/backport-14218-to-auth-4.9.x

auth web: Backport 14218 to auth-4.9.x: make request/response timeout configurable

14 months agoMerge pull request #14289 from romeroalx/backport-14171-to-auth-4.9.x-2
Peter van Dijk [Thu, 6 Jun 2024 10:13:09 +0000 (12:13 +0200)] 
Merge pull request #14289 from romeroalx/backport-14171-to-auth-4.9.x-2

auth-4.9.x: backport of #14171 for fixing the build of images on new tags

14 months agogh actions: add WF for building and pushing images when a new tag is created 14289/head
romeroalx [Tue, 14 May 2024 15:45:08 +0000 (17:45 +0200)] 
gh actions: add WF for building and pushing images when a new tag is created

14 months agogh actions: add WF for building and pushing images manually
romeroalx [Tue, 14 May 2024 15:43:26 +0000 (17:43 +0200)] 
gh actions: add WF for building and pushing images manually

14 months agogh actions: modify docker.yml for building and pushing images daily (master)
romeroalx [Tue, 14 May 2024 15:40:11 +0000 (17:40 +0200)] 
gh actions: modify docker.yml for building and pushing images daily (master)

14 months agogh actions: add WF for building and pushing multi-platform images on workflow_call...
romeroalx [Tue, 14 May 2024 15:35:44 +0000 (17:35 +0200)] 
gh actions: add WF for building and pushing multi-platform images on workflow_call events

14 months agoauth web: make request/response timeout configurable 14245/head
Samir Aguiar [Mon, 20 May 2024 21:08:36 +0000 (21:08 +0000)] 
auth web: make request/response timeout configurable

14 months agoMerge pull request #14253 from Habbie/backport-14247-to-auth-4.9.x auth-4.9.1
Peter van Dijk [Mon, 27 May 2024 14:03:45 +0000 (16:03 +0200)] 
Merge pull request #14253 from Habbie/backport-14247-to-auth-4.9.x

auth 4.9 autoconf: allow prerelease systemd versions

14 months agoMerge pull request #14251 from Habbie/backport-14242-to-auth-4.9.x
Peter van Dijk [Mon, 27 May 2024 14:02:55 +0000 (16:02 +0200)] 
Merge pull request #14251 from Habbie/backport-14242-to-auth-4.9.x

auth 4.9 ixfrdist: Fix brokn 'uid' and 'gid' parsing for non-numerical values

14 months agoautoconf: allow prerelease systemd versions 14253/head
Chris Hofstaedtler [Sat, 25 May 2024 15:28:31 +0000 (17:28 +0200)] 
autoconf: allow prerelease systemd versions

For example 256~rc3. Also preemptively support versions like 252.2.

(cherry picked from commit 81e3f38b1909956e228077e4677c34f469ea9835)

14 months agoixfrdist: Fix brokn 'uid' and 'gid' parsing for non-numerical values 14251/head
Remi Gacogne [Fri, 24 May 2024 14:34:14 +0000 (16:34 +0200)] 
ixfrdist: Fix brokn 'uid' and 'gid' parsing for non-numerical values

Introduced in 48d1f24b87dfd95696c0db8311c81dc622717102

(cherry picked from commit f4d0470792e1c6c55ab17a74a312ed5a2fe08d2c)

14 months agoMerge pull request #14230 from Habbie/backport-14200-to-auth-4.9.x
Peter van Dijk [Fri, 24 May 2024 11:21:19 +0000 (13:21 +0200)] 
Merge pull request #14230 from Habbie/backport-14200-to-auth-4.9.x

auth-4.9: Enable LeakSanitizer while running the unit tests in CI

14 months agoMerge pull request #14229 from Habbie/backport-14197-to-auth-4.9.x
Peter van Dijk [Fri, 24 May 2024 08:16:41 +0000 (10:16 +0200)] 
Merge pull request #14229 from Habbie/backport-14197-to-auth-4.9.x

auth-4.9 YaHTTP: Enforce max # of request fields and max request line size

14 months agoauth: Enable LeakSanitizer while running the unit tests in CI 14230/head
Remi Gacogne [Fri, 17 May 2024 14:58:11 +0000 (16:58 +0200)] 
auth: Enable LeakSanitizer while running the unit tests in CI

(cherry picked from commit adef1d05bdce30194d727281949370fc13073604)

14 months agoMerge pull request #14228 from Habbie/backport-14224-to-auth-4.9.x
Peter van Dijk [Fri, 24 May 2024 08:14:51 +0000 (10:14 +0200)] 
Merge pull request #14228 from Habbie/backport-14224-to-auth-4.9.x

auth-4.9: Fix a memory leak report in the distributor unit tests

14 months agoMerge pull request #14231 from Habbie/backport-14033-to-auth-4.9.x
Peter van Dijk [Fri, 24 May 2024 08:12:42 +0000 (10:12 +0200)] 
Merge pull request #14231 from Habbie/backport-14033-to-auth-4.9.x

auth-4.9: Use smart pointers in the remote backend unit tests

14 months agoauth: Use smart pointers in the remote backend unit tests 14231/head
Remi Gacogne [Thu, 4 Apr 2024 13:01:02 +0000 (15:01 +0200)] 
auth: Use smart pointers in the remote backend unit tests

(cherry picked from commit dea9553fffcfc34d6225dd352353b2acd367a752)

14 months agoYaHTTP: Enforce max # of request fields and max request line size 14229/head
Your Name [Mon, 15 Apr 2024 13:45:38 +0000 (15:45 +0200)] 
YaHTTP: Enforce max # of request fields and max request line size

The default values, 8192 bytes for the maximum request line size and
100 fields, are taken from the default settings of Apache HTTPd:
- https://httpd.apache.org/docs/2.2/mod/core.html#limitrequestline
- https://httpd.apache.org/docs/2.2/mod/core.html#limitrequestfields

Reported by OSS-Fuzz as a timeout in https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=67993

(cherry picked from commit 249c86a63865e4a980511839887890c3940fc6e6)

14 months agoauth: Fix a memory leak report in the distributor unit tests 14228/head
Remi Gacogne [Thu, 23 May 2024 08:54:05 +0000 (10:54 +0200)] 
auth: Fix a memory leak report in the distributor unit tests

(cherry picked from commit 3faca294178e5c661c7adf036b9e9120b6666312)

14 months agoMerge pull request #14208 from romeroalx/backport-14171-to-auth-4.9.x
Peter van Dijk [Thu, 23 May 2024 12:54:22 +0000 (14:54 +0200)] 
Merge pull request #14208 from romeroalx/backport-14171-to-auth-4.9.x

auth-4.9.x: Partial backport of #14171 for fixing the build of arm64 images

14 months agoMerge pull request #14188 from Habbie/backport-13772-to-auth-4.9.x
Peter van Dijk [Thu, 23 May 2024 12:53:25 +0000 (14:53 +0200)] 
Merge pull request #14188 from Habbie/backport-13772-to-auth-4.9.x

auth 4.9: Change home directory to /var/lib/pdns

14 months agoAdding liblua5.3-dev/libluajit-5.1-dev to dockerfiles 14208/head
romeroalx [Tue, 14 May 2024 15:26:05 +0000 (17:26 +0200)] 
Adding liblua5.3-dev/libluajit-5.1-dev to dockerfiles

14 months agoMerge pull request #14199 from Habbie/backport-14196-to-auth-4.9.x
Peter van Dijk [Fri, 17 May 2024 18:20:19 +0000 (20:20 +0200)] 
Merge pull request #14199 from Habbie/backport-14196-to-auth-4.9.x

auth-4.9: Fix memory leaks in the bind file format parser

14 months agoMerge pull request #14186 from Habbie/backport-14047-to-auth-4.9.x
Peter van Dijk [Fri, 17 May 2024 14:01:50 +0000 (16:01 +0200)] 
Merge pull request #14186 from Habbie/backport-14047-to-auth-4.9.x

auth 4.9 dnsproxy: fix build on s390x

14 months agoauth: Fix memory leaks in the bind file format parser 14199/head
Remi Gacogne [Thu, 4 Apr 2024 14:21:52 +0000 (16:21 +0200)] 
auth: Fix memory leaks in the bind file format parser

Some tokens were not properly freed: ACL names and entries, unused
word or quoted string terms. This is limited to the parsing of the
bind file format, zones themselves are fine, so there is no security
impact.
Found by LeakSanitizer over our existing unit tests.

(cherry picked from commit 9a8bd90d2f9beffba267c91b0a9d37aefcc2836e)

14 months agoMerge pull request #14191 from Habbie/backport-10933-to-auth-4.9.x
Peter van Dijk [Fri, 17 May 2024 13:49:32 +0000 (15:49 +0200)] 
Merge pull request #14191 from Habbie/backport-10933-to-auth-4.9.x

auth 4.9: m4: Add option for 64-bit time_t on 32-bit systems with glibc-2.34

14 months agoMerge pull request #14189 from Habbie/backport-14011-to-auth-4.9.x
Peter van Dijk [Fri, 17 May 2024 12:41:51 +0000 (14:41 +0200)] 
Merge pull request #14189 from Habbie/backport-14011-to-auth-4.9.x

auth 4.9: pdnsutil check-zone: accept LUA A/AAAA as SVCB address targets

14 months agoMerge pull request #14190 from Habbie/backport-14029-to-auth-4.9.x
Peter van Dijk [Fri, 17 May 2024 12:29:39 +0000 (14:29 +0200)] 
Merge pull request #14190 from Habbie/backport-14029-to-auth-4.9.x

auth-4.9: Properly finalize PKCS11 modules before releasing them

14 months agoMerge pull request #14187 from Habbie/backport-14028-to-auth-4.9.x
Peter van Dijk [Fri, 17 May 2024 11:32:50 +0000 (13:32 +0200)] 
Merge pull request #14187 from Habbie/backport-14028-to-auth-4.9.x

auth 4.9: Wrap backend factories in smart pointers

14 months agoMerge pull request #14193 from Habbie/backport-13998-to-backport-13983-to-auth-4.9.x
Peter van Dijk [Fri, 17 May 2024 11:29:50 +0000 (13:29 +0200)] 
Merge pull request #14193 from Habbie/backport-13998-to-backport-13983-to-auth-4.9.x

auth 4.9: Generate Software Bill Of Materials (SBOMs) for our RPM packages

14 months agoMerge pull request #14194 from Habbie/backport-14144-to-auth-4.9.x
Peter van Dijk [Fri, 17 May 2024 11:11:33 +0000 (13:11 +0200)] 
Merge pull request #14194 from Habbie/backport-14144-to-auth-4.9.x

auth 4.9: always pull runner image from powerdns for forks

14 months agoalways pull runner image from powerdns for forks 14194/head
romeroalx [Tue, 7 May 2024 08:06:21 +0000 (10:06 +0200)] 
always pull runner image from powerdns for forks

(cherry picked from commit 30355fe45518263d6e1815f5392f1face8c64534)

14 months agofix grep syntax Dockerfile.rpmsbom 14193/head
romeroalx [Thu, 28 Mar 2024 08:59:21 +0000 (09:59 +0100)] 
fix grep syntax Dockerfile.rpmsbom

(cherry picked from commit 5d3c3909d924f9f7dfc5a054fc3b28c4eeee79f8)

14 months agoSBOM: Dynamically generate the list of auth-related packages
Remi Gacogne [Tue, 26 Mar 2024 14:36:07 +0000 (15:36 +0100)] 
SBOM: Dynamically generate the list of auth-related packages

(cherry picked from commit 94b262b9709077f7c3a4e8cd74108e2c6991a63e)

14 months agoSBOM: Fix the builder target variable
Remi Gacogne [Tue, 26 Mar 2024 10:25:14 +0000 (11:25 +0100)] 
SBOM: Fix the builder target variable

(cherry picked from commit b17412c732f8ec98ae47926254828cb45ff825df)

14 months agoFix syntax errors
Remi Gacogne [Tue, 26 Mar 2024 09:47:11 +0000 (10:47 +0100)] 
Fix syntax errors

(cherry picked from commit fef1b1c63e150b34a391bc836596657ec068de81)

14 months agoDisable SBOM generation on el-7 (almost EOL), fix it on el-8
Remi Gacogne [Tue, 26 Mar 2024 09:18:40 +0000 (10:18 +0100)] 
Disable SBOM generation on el-7 (almost EOL), fix it on el-8

(cherry picked from commit 4b54c7db6822c31d70a5661258b4ed70c58ee163)

14 months agoHopefully fix SBOM generation
Remi Gacogne [Mon, 25 Mar 2024 19:04:13 +0000 (20:04 +0100)] 
Hopefully fix SBOM generation

(cherry picked from commit 5efa3cdfbcf590068006030da64cd5673e11bf8d)

14 months agoAttempt to generate SBOMs after building packages
Remi Gacogne [Mon, 25 Mar 2024 13:51:05 +0000 (14:51 +0100)] 
Attempt to generate SBOMs after building packages

(cherry picked from commit 44503ded5e8e6f088d009177f5f951d408467b58)

14 months agom4: Add option for 64-bit time_t on 32-bit systems with glibc-2.34 14191/head
Sven Wegener [Sun, 31 Oct 2021 19:21:29 +0000 (20:21 +0100)] 
m4: Add option for 64-bit time_t on 32-bit systems with glibc-2.34

glibc-2.34 includes the user-facing part of the 64-bit time_t support
for 32-bit systems. We treat this feature as experimental, as it causes
ABI issues, if 64-bit time_t values are passed to libraries that are
build with 32-bit time_t. It is safe for local use of 64-bit time_t.

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
(cherry picked from commit f7d48d8211db8d111a326f0c4f9aac1811103b03)

14 months agoauth: Properly finalize PKCS11 modules before releasing them 14190/head
Remi Gacogne [Tue, 2 Apr 2024 14:20:14 +0000 (16:20 +0200)] 
auth: Properly finalize PKCS11 modules before releasing them

This gets rid of two leaks reported by LeakSanitizer when running our
unit tests:
```
Direct leak of 48 byte(s) in 1 object(s) allocated from:
    #0 0x5fe6c6e7d099 in malloc (/pdns/pdns/testrunner+0x220099) (BuildId: 08d4c369b5f2f19f183aa5d6ab931a6653b70ab9)
    #1 0x7e6cdc6a0964  (/usr/lib/libp11-kit.so.0+0x36964) (BuildId: 307da6c0b5c7d87a1b0fd0a63e0bda93c9375e8a)
    Indirect leak of 72 byte(s) in 1 object(s) allocated from:
    #0 0x5fe6c6e7d401 in calloc (/pdns/pdns/testrunner+0x220401) (BuildId: 08d4c369b5f2f19f183aa5d6ab931a6653b70ab9)
    #1 0x7e6cdc6a09b6  (/usr/lib/libp11-kit.so.0+0x369b6) (BuildId: 307da6c0b5c7d87a1b0fd0a63e0bda93c9375e8a)
```

(cherry picked from commit 3c6d9aacd96a099e450545a21020fa8efec9538b)

14 months agopdnsutil check-zone: accept LUA A/AAAA as SVCB address targets 14189/head
Peter van Dijk [Tue, 2 Apr 2024 07:39:11 +0000 (09:39 +0200)] 
pdnsutil check-zone: accept LUA A/AAAA as SVCB address targets

(cherry picked from commit ee8d0b2f879e33028e53eab87b71becea4df1f42)

14 months agoauth: Remove trailing tab in builder-support/specs/pdns.spec 14188/head
Remi Gacogne [Mon, 22 Apr 2024 09:19:17 +0000 (11:19 +0200)] 
auth: Remove trailing tab in builder-support/specs/pdns.spec

(cherry picked from commit 6422953286b9cd947f714db297fe35243e19de07)

14 months agoChange home directory to /var/lib/pdns
Morten Stevens [Thu, 8 Feb 2024 15:02:40 +0000 (16:02 +0100)] 
Change home directory to /var/lib/pdns

Check: https://bugzilla.redhat.com/show_bug.cgi?id=2262487
(cherry picked from commit fac31e7640c8bfe1df9138ea71c72a4b7d152cd3)

14 months agoauth: Wrap backend factories in smart pointers 14187/head
Remi Gacogne [Tue, 2 Apr 2024 14:05:51 +0000 (16:05 +0200)] 
auth: Wrap backend factories in smart pointers

(cherry picked from commit 5144dfa8f9e10797cbe453e7b2b957da9e0050f5)

14 months agoauth dnsproxy: fix build on s390x 14186/head
Chris Hofstaedtler [Sat, 6 Apr 2024 21:51:35 +0000 (23:51 +0200)] 
auth dnsproxy: fix build on s390x

(cherry picked from commit c6b1e59f3b413493551910a7d0a3e9206d488599)

14 months agoMerge pull request #14058 from mind04/auth-4.9.x-bp-14057
Peter van Dijk [Tue, 14 May 2024 13:53:31 +0000 (15:53 +0200)] 
Merge pull request #14058 from mind04/auth-4.9.x-bp-14057

Auth-4.9.x: Partial backport of #14057

14 months agoMerge pull request #14126 from Habbie/backport-14021-to-auth-4.9.x
Peter van Dijk [Mon, 13 May 2024 14:24:49 +0000 (16:24 +0200)] 
Merge pull request #14126 from Habbie/backport-14021-to-auth-4.9.x

auth-4.9 LUA: (optionally) drop whitespace on join

14 months agoauth: don't crash when a catalog SOA is invalid 14058/head
Kees Monshouwer [Tue, 9 Apr 2024 23:09:57 +0000 (01:09 +0200)] 
auth: don't crash when a catalog SOA is invalid

14 months agodefault to no for 4.9.x 14126/head
Peter van Dijk [Thu, 2 May 2024 14:54:21 +0000 (16:54 +0200)] 
default to no for 4.9.x

14 months agoauth LUA: (optionally) drop whitespace on join
Peter van Dijk [Tue, 2 Apr 2024 14:00:07 +0000 (16:00 +0200)] 
auth LUA: (optionally) drop whitespace on join

fixes #14002

(cherry picked from commit 26dbeed81cf5091d779f56ace7d3a0095570c9d4)

15 months agoMerge pull request #14129 from romeroalx/backport-14044-to-auth-4.9.x
Peter van Dijk [Fri, 3 May 2024 15:36:51 +0000 (17:36 +0200)] 
Merge pull request #14129 from romeroalx/backport-14044-to-auth-4.9.x

auth: Backport 14044 to auth-4.9.x: gh actions - replace yq snap in collect job build-and-test-all