Commit Graph
527 Commits
Author SHA1 Message Date
DL6ER d71e174c46 Fix config output on CLI and add tests for it
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-06-18 08:11:36 +02:00
DL6ER 73f9ad02a0 Allow defining lines to inject into the generated dnsmasq configuration (misc.dnsmasq_lines)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-06-15 17:53:21 +02:00
DL6ER 07f1f7df44 Save number of ABP-style entries in adlist table's new column abp_entries
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-06-15 09:38:37 +02:00
DL6ER 0002399916 Add high-contrast themes to list of available themes)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-06-14 15:16:48 +02:00
DL6ER 5e8525ee30 Rename default theme to auto theme
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-06-14 15:13:48 +02:00
DL6ER ba507ef7ef Merge branch 'special/CI_development' into new/http 2023-06-08 12:13:02 +02:00
DL6ER cd5ff54e3b Add minimum GLIBC version check
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-31 21:13:27 +02:00
DL6ER d9c09b66f0 Use pi-hole/ftl-build:ftl-build-buildx containers
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-06-04 18:46:17 +02:00
DL6ER 7ad68b785b Fix favicon for API documentation (in the same way we did for the web interface a few minutes ago)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-06-03 12:50:15 +02:00
DL6ER 8176254fb0 Merge branch 'new/http-buildx' into new/http 2023-06-04 19:29:58 +02:00
DL6ER 813509841b Accept cookie authentication only when CSRF header is provided (and correct)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-06-04 19:29:54 +02:00
DL6ER 59463db321 Modify arch-tests, refine how we detect an already running pihole-FTL process and how we get other processes names from proc (the existing method didn't work on alpine:arm) and remove the obsolete struct size checking
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-31 21:13:27 +02:00
DL6ER a4c2e3e624 Use new buildx-provided containers
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-31 02:57:41 +02:00
Christian König 62cfc25b95 Fix spelling in v6
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-05-30 22:42:13 +02:00
DL6ER 19c72d354e !!! BREAKING CHANGE !!! Switch to the proven memory-hard password-hashing alogorithm BALLOON. The stored password hash will be upgraded on the first successdful login. To wave the necessity to implement BALLOON with every client trying to access the API, we remove the existing challenge-response authentication in favor of allowing login straight with the password. This has been avoided in the past, however, seems now acceptable that FTL (even by default) offers secure end-to-end encryption over HTTPS.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-30 21:22:45 +02:00
DL6ER 159e6a5447 Store certificate-only file during X.509 generation
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-28 14:52:21 +02:00
DL6ER d42d4be97b Add webserver.tls.rev_server boolean useful to tell FTL that unencrypted connections are still secure (in the context of Pi-hole solely being reachable through a reverse proxy)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-28 14:45:03 +02:00
DL6ER 54cf9ad1f9 Add new debug.tls option logging any mbedTLS debug output to webserver.log
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-25 18:28:34 +02:00
DL6ER 21ac19bf22 Merge remote-tracking branch 'origin/development' into new/http
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-23 20:08:39 +02:00
DL6ER c33643408a Apply Pi-hole specific patches
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-18 10:25:40 +02:00
DL6ER dba3fa1f33 Replace test RSA (4096 bit) by ECDSA (521 bit) self-signed certificate for TLS due to the recent changes of supporting only EC-based ciphers
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-10 11:30:28 +02:00
DL6ER c12625f0c1 Add global object "took" to all API endpoints
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-07 12:20:07 +02:00
DL6ER 2b2c02f0c7 Remove PH7
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-04-26 21:09:33 +02:00
DL6ER 7359b496ff Move database.maxHistory to webserver.api.maxHistory
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-04-25 22:26:25 +02:00
DL6ER 48b059065f Adjust tests for recent EDNS0 changes
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-04-11 13:08:07 +02:00
DL6ER 705355b82e Disable zipinfo test
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-04-05 21:29:01 +02:00
DL6ER 137a1519ba Now that ZIP is available in the CI environment, use an external tool to check the integrity of Teleporter files
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-04-05 15:57:11 +02:00
MichaIng 017e086c1c Add RISC-V 64-bit support and builds
Signed-off-by: MichaIng <micha@dietpi.com>
2023-03-20 20:03:19 +01:00
DL6ER 064ac81fca Add SSL/TLS support (mbedTLS)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-03-08 21:10:12 +01:00
DL6ER 06da29d56e Merge remote-tracking branch 'origin/update/dnsmasq' into new/http
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-03-31 10:10:54 +02:00
DL6ER fa2aeccc0e ANY is RRNAME not BLOB after the most recent dnsmasq code changes
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-03-31 09:55:43 +02:00
DL6ER 44c3fe4ef4 Merge remote-tracking branch 'origin/development' into new/http
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-03-13 10:30:39 +01:00
DL6ER 9bf6176a64 Add TOTP 2FA to web interface and API
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-03-06 21:49:11 +01:00
DL6ER ae9b291082 Set abp_domains = 1 during the CI tests.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-02-26 07:19:48 +01:00
DL6ER ce96c5baef Rename config.files.{http_info => log.webserver, ph7_error => log.ph7} and include file path in /api/logs replies
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-02-23 17:52:10 +01:00
DL6ER 6a199427b4 Add option dhcp.multiDNS
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-02-20 14:44:58 +01:00
DL6ER dd9c4ad52b Add special debug.all config option
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-02-18 14:42:32 +01:00
DL6ER 1bb5e265a0 Add info.ftl.uptime (in ms) and move config.{dns => dhcp}.domain
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-02-18 13:48:09 +01:00
DL6ER 75cd6913ee Do not use a new option but instead automatically detect if ABP-style domains are present in the database. This ensures that this addition comes at no extra costs to any installs using pure HOSTS-style adlists.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-02-15 21:19:31 +01:00
DL6ER 8794b1684d Add ABP format blocking support for gravity. Note that the option needs to be switched on by setting GRAVITY_ABP_STYLE=true in pihole-FTL.conf to avoid running this computationally expensive task on the vast majority of user databases only fed from properly formatted HOSTS lists. Gravity can enable the setting when it detects ABP format automatically.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-02-15 19:48:19 +01:00
DL6ER bcda8cc29a Add dns.cache.optimizer as option to control the usage of expired/stale DNS queries while Pi-hole is looking for new ones. This option has always been available, we just make it more visible by assigning an individual config option for it.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-02-11 10:58:41 +01:00
DL6ER daa87f2b60 Rename dns.reply.host.{overwrite_v => force}{4,6}
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-02-06 21:46:06 +01:00
DL6ER 42c496e950 Add pseudo-element config->webserver.api.password which will compute and set webserver.api.pwhash to provide a convenient method of changing the password both via CLI and API
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-02-05 21:11:28 +01:00
DL6ER 9833fe1af0 Reload gravity database when 'updated' property in table 'info' has changed
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-02-05 16:44:14 +01:00
DL6ER 78a09dfa9d Make a few more config values camelCase
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-02-05 12:24:42 +01:00
DL6ER 39c91f995c Integrate former /api/config/_{topic,servers} into /api/config?detailed=true
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-02-04 12:31:43 +01:00
DL6ER 904e1c7e3a Allow importing teleporter archives from the CLI
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-02-03 18:12:55 +01:00
DL6ER cf82495d6c Create new webtheme() PHP function and make the webtheme an enum
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-02-03 18:12:55 +01:00
DL6ER 187b0be39d Rename config.webserver.{api => }.sessionTimeout and ensure it is also used for the cookie
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-02-03 18:12:55 +01:00
DL6ER 5e2e6e6fa4 Merge branch 'development' into new/http
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-02-01 21:48:41 +01:00