Commit Graph

6528 Commits

Author SHA1 Message Date
DL6ER 40cfbbbbff Add previous commit to LUA patch series
Build, Test, Deploy / smoke-tests (push) Has been cancelled
Codespell / spell-check (push) Has been cancelled
Check for merge conflicts / merge-conflict (push) Has been cancelled
API validation / Node (push) Has been cancelled
Build, Test, Deploy / gha (pihole-FTL-386, , linux/386) (push) Has been cancelled
Build, Test, Deploy / gha (pihole-FTL-amd64, , linux/amd64) (push) Has been cancelled
Build, Test, Deploy / gha (pihole-FTL-amd64-clang, clang, linux/amd64) (push) Has been cancelled
Build, Test, Deploy / gha (pihole-FTL-riscv64, , linux/riscv64) (push) Has been cancelled
Build, Test, Deploy / self-hosted (pihole-FTL-arm64, linux/arm64/v8) (push) Has been cancelled
Build, Test, Deploy / self-hosted (pihole-FTL-armv6, linux/arm/v6) (push) Has been cancelled
Build, Test, Deploy / self-hosted (pihole-FTL-armv7, linux/arm/v7) (push) Has been cancelled
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-26 08:34:02 +02:00
DL6ER 54798be3f8 Make Pi-hole-bundled scripts (e.g. inspect) also available in dnsmasq/web LUA environments. So far, they were only available in the CLI
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-26 08:32:53 +02:00
DL6ER 359e1461da Add new function pihole.get_memdb() which can be used to access the in-memory database used by FTL for internal processing. Note that the debug.database flag must be set to true in order to be able to access the database. This is a security measure to prevent the memory database from being exposed to the Lua environment when this is not needed as modifying the memory database can have serious consequences (incorrect statistics, etc).
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-26 08:30:51 +02:00
DL6ER 697518dac0 Define lsqlite3 version available through lsqlite3.lversion() - it is usually defined by rockspec but we are not using rockspec here but instead include the module directly into the code
Build, Test, Deploy / smoke-tests (push) Waiting to run
Build, Test, Deploy / gha (pihole-FTL-386, , linux/386) (push) Blocked by required conditions
Build, Test, Deploy / gha (pihole-FTL-amd64, , linux/amd64) (push) Blocked by required conditions
Build, Test, Deploy / gha (pihole-FTL-amd64-clang, clang, linux/amd64) (push) Blocked by required conditions
Build, Test, Deploy / gha (pihole-FTL-riscv64, , linux/riscv64) (push) Blocked by required conditions
Build, Test, Deploy / self-hosted (pihole-FTL-arm64, linux/arm64/v8) (push) Blocked by required conditions
Build, Test, Deploy / self-hosted (pihole-FTL-armv6, linux/arm/v6) (push) Blocked by required conditions
Build, Test, Deploy / self-hosted (pihole-FTL-armv7, linux/arm/v7) (push) Blocked by required conditions
Codespell / spell-check (push) Waiting to run
Check for merge conflicts / merge-conflict (push) Waiting to run
API validation / Node (push) Waiting to run
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-25 13:39:38 +02:00
DL6ER 93b0bd0d7d Add new LUA patch
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-25 12:09:17 +02:00
DL6ER 94b30e8fa7 Make lsqlite3 globally available in LUA
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-25 11:58:06 +02:00
DL6ER aac501c326 Add lsqlite3 CI tests
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-25 11:54:52 +02:00
DL6ER e5335a160c Add lsqlite3 patch
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-25 10:39:21 +02:00
DL6ER b5c8938d81 Remove deprecated functions from lsqlite3 codebase
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-25 10:37:56 +02:00
DL6ER de2750dfd6 Add lsqlite3 - an SQLite 3 database binding for Lua 5 (taken from http://lua.sqlite.org/index.cgi/index)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-25 10:36:46 +02:00
Dominik 75b5e5fab9 Merge pull request #2000 from pi-hole/fix/dns-sd
Build, Test, Deploy / smoke-tests (push) Waiting to run
Build, Test, Deploy / gha (pihole-FTL-386, , linux/386) (push) Blocked by required conditions
Build, Test, Deploy / gha (pihole-FTL-amd64, , linux/amd64) (push) Blocked by required conditions
Build, Test, Deploy / gha (pihole-FTL-amd64-clang, clang, linux/amd64) (push) Blocked by required conditions
Build, Test, Deploy / gha (pihole-FTL-riscv64, , linux/riscv64) (push) Blocked by required conditions
Build, Test, Deploy / self-hosted (pihole-FTL-arm64, linux/arm64/v8) (push) Blocked by required conditions
Build, Test, Deploy / self-hosted (pihole-FTL-armv6, linux/arm/v6) (push) Blocked by required conditions
Build, Test, Deploy / self-hosted (pihole-FTL-armv7, linux/arm/v7) (push) Blocked by required conditions
Codespell / spell-check (push) Waiting to run
Check for merge conflicts / merge-conflict (push) Waiting to run
API validation / Node (push) Waiting to run
Fix DNS-SD query analysis
2024-06-24 14:29:36 +02:00
DL6ER 9e329be3ef Fix DNS-SD query analysis
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-21 19:32:26 +02:00
yubiuser c82676b1ae Merge pull request #1998 from pi-hole/no_dnsmasq
Fix API hint
2024-06-15 19:50:40 +02:00
yubiuser a09088efdf Merge pull request #1996 from pi-hole/dependabot-github_actions-development-v6-github_action-dependencies-0bd1363a87
Bump actions/checkout from 4.1.6 to 4.1.7 in the github_action-dependencies group
2024-06-15 14:18:07 +02:00
Christian König b3182568a5 Fix API hint
Signed-off-by: Christian König <ckoenig@posteo.de>
2024-06-15 13:16:37 +02:00
dependabot[bot] bf476509b5 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.6 to 4.1.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/v4.1.6...v4.1.7)

---
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-06-15 10:14:29 +00:00
Dominik 01c5c5629b Merge pull request #1994 from pi-hole/fix/env_password
Check if the newly set password is the same as the old one
2024-06-15 07:45:45 +02:00
DL6ER 5a6a212980 Add special handling for systems without password in the password checking short-circuiting
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-13 20:28:37 +02:00
Dominik 7adda9ad3c Merge pull request #1993 from pi-hole/tweak/pogo
(Re-)Add support for Pogoplug
2024-06-12 19:35:46 +02:00
DL6ER ec6750d42f Make definition of __USE_MISC conditional
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-10 20:06:41 +02:00
DL6ER 2406e1a70e Check if the newly set password is the same as the old one
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-06 20:42:06 +02:00
Dominik 9491cdfe2d Merge pull request #1992 from pi-hole/fix/no_gravity
Fix non-existing gravity.db issue
2024-06-06 18:56:54 +02:00
DL6ER 44d57e5b37 Add checking of return status of sqlite3_open_v2 to ensure we are not trying to use the database when it failed to open
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-06 16:17:01 +02:00
Adam Warner 61826a41e1 Merge pull request #1883 from pi-hole/tweak/remove_expert_flag
Remove (undocumented) advanced flag in details config output
2024-06-05 21:11:54 +01:00
Dominik a72440292c Merge pull request #1987 from pi-hole/tweak/cert_no_tls
Skip certificate domain check when TLS is not actually used
2024-06-03 22:48:39 +02:00
Dominik a564e329f4 Merge pull request #1990 from pi-hole/fix/long_dns_names
Fix possible heap-corruption bug
2024-06-03 22:39:36 +02:00
DL6ER af0468eb36 Fix very long DNS names (>64 bytes) potentially crashing the internal name resolving mechanism, the new limit is 256 bytes with proper boundary checking
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-03 13:29:06 +02:00
Dominik b20d80f740 Merge pull request #1989 from pi-hole/fix/regex_diagnosis
Fix incorrect unification of regex warnings
2024-06-03 13:08:22 +02:00
DL6ER 189979284f Store correct database ID when issuing a warning
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-03 11:46:39 +02:00
DL6ER f2c14cce25 Fix incorrect unification of regex warnings
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-03 09:48:13 +02:00
Dominik d3437814cc Merge pull request #1986 from pi-hole/fix/retry_truncated
Internal name resolution over UDP with fallback to TCP
2024-06-02 21:14:53 +02:00
Dominik 9f8c4c202d Merge pull request #1981 from pi-hole/new/timezone
Print human-readable timezone information
2024-06-02 20:14:25 +02:00
DL6ER d3439593a1 Default to resolve internal PTRs using UDP, fall back to TCP for individual queries on UDP truncation (commonly seen in conjunction with DNSSEC)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-02 19:55:28 +02:00
DL6ER 58c59a0aef Skip certificate domain check when TLS is not actually used even if a certificate is available
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-02 11:56:53 +02:00
DL6ER 14ea246f9a Always include timezone in human-readable timestamps
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-02 10:19:26 +02:00
yubiuser d66db4550e Merge pull request #1984 from pi-hole/dependabot-github_actions-development-v6-github_action-dependencies-da46cecb9c
Bump eps1lon/actions-label-merge-conflict from 3.0.1 to 3.0.2 in the github_action-dependencies group
2024-06-01 13:04:27 +02:00
dependabot[bot] 4be0ff6082 Bump eps1lon/actions-label-merge-conflict
Bumps the github_action-dependencies group with 1 update: [eps1lon/actions-label-merge-conflict](https://github.com/eps1lon/actions-label-merge-conflict).


Updates `eps1lon/actions-label-merge-conflict` from 3.0.1 to 3.0.2
- [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.1...v3.0.2)

---
updated-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-06-01 10:35:49 +00:00
DL6ER aac9968eb0 Merge branch 'development-v6' into new/timezone
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-01 06:38:38 +02:00
Dominik f4b9ca2583 Merge pull request #1980 from pi-hole/new/dhcp_ignoreUnknownClients
Add option to ignore unknown DHCP clients
2024-06-01 06:24:14 +02:00
Dominik 021c0a138b Merge pull request #1983 from pi-hole/fix/macvendor_db
Fix macvendor script
2024-05-31 19:34:22 +02:00
DL6ER 7db4483c82 Update macvendor script
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-31 13:20:12 +02:00
DL6ER 306710e74a Add timezone information where this is appropriate. We do not include this in the log files to not needlessly change for format. Open for discussion
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-30 19:53:53 +02:00
DL6ER 1f6d9c115e Explicitly chown PID and remove old PORT file
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-30 19:25:18 +02:00
DL6ER 96da0d4f94 Synchronize test/pihole.toml with the many config file changes that have been made in between and add a test ensuring they remain in sync in the future
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-30 19:16:30 +02:00
DL6ER 1a5e7f6bf8 Add new dhcp.ignoreUnknownClients option
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-30 12:26:40 +02:00
DL6ER 8e34c3e940 Merge branch 'development-v6' into tweak/remove_expert_flag 2024-05-30 09:08:14 +02:00
Dominik 7ff016f21c Merge pull request #1737 from pi-hole/new/migrate_dnsmasq_conf
Read config files from new location
2024-05-30 07:03:23 +02:00
Dominik 47c7de6c93 Merge pull request #1976 from pi-hole/fix/resolver
Improve internal DNS resolver
2024-05-30 06:29:46 +02:00
DL6ER 19715ead9a Add help description of new optional ptr IP [tcp] flag
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-29 20:06:50 +02:00
Dominik 60b1a75335 Merge pull request #1979 from pi-hole/tweak/env_reset
Reset config values after env forcing
2024-05-29 19:57:48 +02:00