Commit Graph

6438 Commits

Author SHA1 Message Date
DL6ER 3de9e12f70 Change magic comment put next to config options which are forced through the environment
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-28 21:32:04 +02:00
Dominik 825a14a69b Merge pull request #1974 from pi-hole/update/sqlite_3.46.0
Update embedded SQLite3 to 3.46.0
2024-05-23 21:51:42 +02:00
DL6ER 3afd9f0d41 Update embedded SQLite3 to 3.46.0
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-23 20:53:09 +02:00
Dominik 0f48ea89ed Merge pull request #1973 from pi-hole/fix/database_aux_files
Fix chown of aux. database files
2024-05-21 23:40:05 +02:00
DL6ER be9fe875f6 Always try to chown auxiliary database files, not only when chown of the database files itself failed
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-21 19:59:51 +02:00
Dominik 2a1ae1183c Merge pull request #1972 from pi-hole/fix/fork_pr
actions: fix fork PR runs
2024-05-20 10:21:09 +02:00
DL6ER f88d96a884 Skip attestation and deployment steps for fork-based PRs having no access to secrets
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-19 09:14:46 +02:00
Dominik 524308314f Merge pull request #1970 from pi-hole/fix/wal-ownership
Ensure we also change ownership of the WAL database files
2024-05-18 19:10:53 +02:00
Dominik 139facdd5e Merge pull request #1969 from pi-hole/fix/mbedtls
Fix compiling without mbedTLS
2024-05-18 18:34:41 +02:00
DL6ER e3346ff641 Ensure we also change ownership of the WAL database files
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-18 17:29:24 +02:00
DL6ER 4b2cb98825 Enforce minimum version of mbedTLS (3.5.0)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-18 17:13:55 +02:00
DL6ER e286d4b147 Properly guard X.509 functions to allow compiling FTL without mbedTLS library being available, also improve how definitions are done in src/CMakeLists.txt and reduce instruction-duplication on the way
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-18 17:11:42 +02:00
Dominik 6de3d81d46 Merge pull request #1968 from pi-hole/dependabot-github_actions-development-v6-github_action-dependencies-edf2abb101
Bump actions/checkout from 4.1.5 to 4.1.6 in the github_action-dependencies group
2024-05-18 16:54:58 +02:00
dependabot[bot] 6fed81a916 Bump actions/checkout in the github_action-dependencies group
Bumps the github_action-dependencies group with 1 update: [actions/checkout](https://github.com/actions/checkout).


Updates `actions/checkout` from 4.1.5 to 4.1.6
- [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/v4.1.5...v4.1.6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-18 10:36:18 +00:00
Dominik a07810695c Merge pull request #1965 from pi-hole/fix/dhcp_names
Update DNS records after pruning DHCP leases
2024-05-18 09:44:22 +02:00
DL6ER ebc195af69 Update custom dnsmasq version
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-18 09:14:27 +02:00
Erik Karlsson 98407e3a58 Update DNS records after pruning DHCP leases
Not doing so can result in a use after free since the name for DHCP
derived DNS records is represented as a pointer into the DHCP lease
table. Update will only happen when necessary since lease_update_dns
tests internally on dns_dirty and the force argument is zero.

Signed-off-by: Erik Karlsson <erik.karlsson@iopsys.eu>
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-18 09:13:54 +02:00
Dominik 95b1dc1c72 Merge pull request #1964 from pi-hole/new/artifact_attestations
Add artifact attestation
2024-05-18 06:48:13 +02:00
Dominik 4628219bb9 Merge pull request #1956 from oliv3r/readline_detection
Readline detection
2024-05-17 19:37:40 +02:00
Dominik 12bebfb367 Merge pull request #1961 from jacklul/v6-patch-1
Fix error message mentioning wrong file
2024-05-17 19:20:41 +02:00
Jack'lul ecd2e8198b Fix error message mentioning wrong file
Signed-off-by: Jack'lul <jacklulcat@gmail.com>
2024-05-17 18:03:57 +02:00
Dominik 3d4cc1beeb Merge pull request #1960 from pi-hole/fix/database_queries
Fix spilled queries in database
2024-05-15 20:42:13 +02:00
DL6ER 30cade643f Use new constant also as back-off factor for exporting into the database
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-14 20:36:32 +02:00
DL6ER 688a551a24 Improve query storing algorithm to better cope with bursts of queries of arbitrary size and frequency
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-14 20:17:05 +02:00
Dominik bccfa2245f Merge pull request #1959 from pi-hole/update/cJSON_1.7.18
Update bundled cJSON
2024-05-13 19:10:10 +02:00
DL6ER d4a89f3b3e Update bundled cJSON from 1.7.17 -> 1.7.18 released earlier today
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-13 16:55:12 +01:00
yubiuser 30215fc2f8 Merge pull request #1958 from pi-hole/dependabot-github_actions-development-v6-github_action-dependencies-220eae05df
Bump the github_action-dependencies group with 2 updates
2024-05-11 13:11:49 +02:00
dependabot[bot] ede734051b Bump the github_action-dependencies group with 2 updates
Bumps the github_action-dependencies group with 2 updates: [actions/checkout](https://github.com/actions/checkout) and [eps1lon/actions-label-merge-conflict](https://github.com/eps1lon/actions-label-merge-conflict).


Updates `actions/checkout` from 4.1.4 to 4.1.5
- [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/v4.1.4...v4.1.5)

Updates `eps1lon/actions-label-merge-conflict` from 3.0.0 to 3.0.1
- [Release notes](https://github.com/eps1lon/actions-label-merge-conflict/releases)
- [Changelog](https://github.com/eps1lon/actions-label-merge-conflict/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eps1lon/actions-label-merge-conflict/compare/v3.0.0...v3.0.1)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github_action-dependencies
- dependency-name: eps1lon/actions-label-merge-conflict
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github_action-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-11 10:54:00 +00:00
Dominik bf0c8cd753 Merge pull request #1955 from pi-hole/fix/FTL_db_read_perms
Change database permissions to -rw-r----- (640)
2024-05-10 20:14:44 +02:00
Olliver Schinagl be3d4cd0f6 FTL: Avoid hidden HAVE_READLINE define
We should set `HAVE_READLINE` based on whether it was actually
detected/found, not via a hidden fixed, as that contains compile errors
when readline is actually not available.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
2024-05-10 19:19:14 +02:00
Olliver Schinagl 7de24a09e3 FTL_lua: Properly guard readline
Readline support should only be used when we know it is available. Lets
properly use a ifdef guard like we do in `shell.c`.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
2024-05-10 19:17:12 +02:00
Dominik c72a9134c6 Merge pull request #1953 from pi-hole/merge-dev
Merge latest v5 development into v6
2024-05-10 18:21:09 +02:00
DL6ER 5cc5b377f1 Update tests, remove duplicated test
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-10 13:22:55 +02:00
DL6ER 6ce1668d41 Change database permissions to -rw-r----- (640)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-10 13:17:58 +02:00
DL6ER 73b5170ac0 Merge branch 'development' into merge-dev
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-10 10:32:36 +02:00
Adam Warner 888c909ddf Merge pull request #1949 from pi-hole/master
Sync master back into development
2024-05-08 21:37:14 +01:00
Adam Warner 8943e26041 Merge pull request #1946 from pi-hole/fix/crash_fatal_dnsmasq_err_v5
Exit after fatal dnsmasq errors
v5.25.2
2024-05-08 20:59:50 +01:00
DL6ER 633b825f35 Add artifact attestation
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-05 10:44:29 +02:00
Dominik e10bb5c605 Merge pull request #1944 from pi-hole/fix/clients_docs
Improve API /clients documentation
2024-05-05 07:09:42 +02:00
Dominik 240a2fe7a1 Merge pull request #1945 from pi-hole/tweak/tcp_conn_err
Improve error logging when TCP connections are prematurely closed by remote server
2024-05-05 07:08:07 +02:00
DL6ER 230989ebbd Exit after fatal dnsmasq errors
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-04 10:11:35 +02:00
DL6ER 1611da221c Improve error logging when TCP connections are prematurely closed by remote server
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-04 10:09:03 +02:00
DL6ER 01697669ac API /clients: Add note that {client} needs to be URI-encoded (if specified) and add documentation of read-only optional {name0} field
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-03 20:05:00 +02:00
Dominik af521c9219 Merge pull request #1939 from pi-hole/new/session_message
Provide human-readable message for session status
2024-05-02 19:38:10 +02:00
yubiuser db32e4da4c Merge pull request #1940 from pi-hole/dependabot-github_actions-development-v6-github_action-dependencies-b93eff89fb
Bump actions/checkout from 4.1.2 to 4.1.4 in the github_action-dependencies group across 1 directory
2024-04-27 13:19:57 +02:00
dependabot[bot] 771db50d8f Bump actions/checkout
Bumps the github_action-dependencies group with 1 update in the / directory: [actions/checkout](https://github.com/actions/checkout).


Updates `actions/checkout` from 4.1.2 to 4.1.4
- [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/v4.1.2...v4.1.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-27 10:40:49 +00:00
Dominik 44377ad893 Address review comments
Co-authored-by: RD WebDesign <github@rdwebdesign.com.br>
Signed-off-by: Dominik <DL6ER@users.noreply.github.com>
2024-04-27 06:38:39 +02:00
DL6ER 49a5a0c60c Provide human-readable message about the session status when authenticating
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-04-25 21:14:05 +02:00
Dominik 1b71a440f5 Merge pull request #1936 from pi-hole/fix/connection_error_crash
Fix a crash resulting from a bad interaction between PRs #1928 and #1930
2024-04-21 10:28:14 +02:00
DL6ER e29bcb0695 Fix a crash resulting from a bad interaction between PRs #1928 and #1930
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-04-20 09:39:39 +02:00