Commit Graph

958 Commits

Author SHA1 Message Date
DL6ER af7ea105eb Implement actual TOP suggestions for the Query Log
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-07-16 12:14:06 +02:00
DL6ER 73d5827e90 Log API warnings caused by send_json_error() only if debug.api is true
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-07-02 03:40:31 +02:00
DL6ER 630b3582f7 Merge branch 'development-v6' into new/cli_pw 2024-06-29 21:53:32 +02:00
DL6ER ab52ea063c Merge branch 'development-v6' into new/ntp
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 15:13:37 +02:00
Dominik 96f7dff669 Merge pull request #1988 from pi-hole/new/misc_readOnly
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
Add read-only config option
2024-06-25 14:32:13 +02:00
DL6ER 069cc309b0 Remove webserver.api.localAPIauth option
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-19 22:07:18 +02:00
DL6ER b74696fc77 Remove webserver.api.searchAPIauth option
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-19 22:05:49 +02:00
DL6ER 784e119892 Add CLI password generation
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-19 22:01:13 +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
Dominik d39480884d Apply code review
Co-authored-by: RD WebDesign <github@rdwebdesign.com.br>
Signed-off-by: Dominik <DL6ER@users.noreply.github.com>
2024-06-15 10:42:26 +02:00
DL6ER 950fc60ed3 Limit app password permissions by default. Add new app_sudo mode for users to remove this new limitation if they really need to
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-14 19:10:58 +02:00
DL6ER 791e3a8097 Add RTC synchronization
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-07 20:01:04 +02:00
DL6ER ee8f9899dd Add NTP settings category to the API and create all threads in detached mode
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-06 07:21:37 +02:00
DL6ER 85fdaffa0f Merge branch 'development-v6' into new/misc_readOnly
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-06 06:17:34 +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
DL6ER 3971e67849 Add NTP background synchronization
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-04 23:32:07 +02:00
DL6ER 7c0d7e87e8 Add debug.ntp flag
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-04 07:55:06 +02:00
DL6ER d8469bd9b9 Merge branch 'development-v6' into new/ntp 2024-06-04 07:04:31 +02:00
DL6ER 3d2fd6d6a2 Add new misc.readOnly config option to force the configuration to be read-only. It can only be modified through the config file but neither the API nor the CLI as long as read-only mode is enabled
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-02 12:27:20 +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
DL6ER 391f7d0914 Merge branch 'development-v6' into new/ntp
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-01 06:39:25 +02: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
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 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
DL6ER 63c4be6340 Merge branch 'development-v6' into new/ntp
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-29 19:37:11 +02:00
DL6ER 5a539a9d5c Add NTP-server/client implementation
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-28 20:07:47 +02:00
DL6ER dc204a41b0 Use v2.6 CI containers and nightly for the devcontainer
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-25 09:54:37 +02:00
DL6ER ab373bc580 Merge branch 'special/CI_development' into new/clang
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-18 12:04:32 +02:00
DL6ER 313cb2353f Update C standard to C17
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-18 11:39:23 +02:00
DL6ER 32de390b00 Add Clang compiler support, tested with Clang 14.0.0 (Ubuntu 22.04.3 LTS), Clang 16.0.2 (Alpine 3.18), and Clang 17.0.6 (Alping Edge)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-15 20:41:52 +02:00
DL6ER 55258150c1 Allocate memory for basename()
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-12 21:40:50 +02:00
DL6ER fccbe2bee4 Add missing #include
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-12 21:38:43 +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 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
DL6ER f2a7662e95 Be more verbose in which tables are imported during teleporter importing
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-04-02 21:59:45 +02:00
DL6ER 5075144bbe Fix importing logic for v5 teleporter files
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-03-30 20:00:52 +01:00
DL6ER 8875a0e29a Add further debugging output if files are NOT imported
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-03-30 18:08:16 +01:00
DL6ER ed36a9a7d5 Simplify v5 gravity table import condition
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-03-30 17:14:28 +01:00
DL6ER dab6ec75bf Merge branch 'development-v6' into tweak/select_teleporter
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-03-30 08:23:11 +01:00
DL6ER bc46302717 Merge branch 'development-v6' into HEAD
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-03-28 09:50:50 +01:00
DL6ER 05867e20f2 Ensure cJSON is used in a thread-safe manner and add CI tests ensuring this. Also ensure every JSON parsing is doing error checking and reduce some code duplication. No functional change.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-03-24 08:55:12 +01:00
DL6ER 9c7384e3a4 Add new dhcp.logging option
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-03-24 08:35:33 +01:00
Dominik 0d2fcd09ef Merge pull request #1872 from pi-hole/tweak/DBexport
Remove config option database.DBexport
2024-03-17 20:34:36 +01:00
DL6ER 66653ae0d5 Merge branch 'development-v6' into fix/overTimeGraphs 2024-03-16 09:05:00 +01:00
DL6ER d408362efe Remove (undocumented) advanced flag in details config output
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-03-16 08:36:37 +01:00
DL6ER 74eba5f605 Remove config option database.DBexport. Its implementation was broken by design as its value was always overwritten by the condition (database.maxDBdays > 0). Replace it with exactly this condition and document the behavior in the config file
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-03-16 08:34:19 +01:00
Adam Warner 4cd500dfac demote warning log message about not being able to open /sys/class/hwmon to the API debug log to prevent it from filling up the log when not available
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2024-03-15 23:50:17 +00:00
DL6ER 2e23e76e0a Add searching for domains and clients in the Query Log. Wildcards (*) are supported everywhere in the search string.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-03-14 19:45:45 +01:00