Commit Graph

5678 Commits

Author SHA1 Message Date
DL6ER f45faffa8c Add Basic Auth authentication
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-29 20:41:55 +01:00
DL6ER 1600fd06d8 Merge pull request #1705 from pi-hole/new/app_password
Add app password support
2023-10-29 19:43:47 +01:00
DL6ER 1d3e574f9c Merge pull request #1708 from pi-hole/tweak/setupvars
Clarify comment on setupVars.conf file
2023-10-29 19:12:22 +01:00
DL6ER f5fdc5d7fd Merge pull request #1706 from pi-hole/fix/env_vars_put_delete
PUT and DELETE on forced config items are errors
2023-10-29 19:12:09 +01:00
Adam Warner 9cdb0828cf Merge pull request #1707 from pi-hole/tweak/env_semicolon
Env var arrays are ;-delimited
2023-10-29 17:48:40 +00:00
DL6ER dd6fb21a8d Clarify comment on setupVars.conf file
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-29 18:02:34 +01:00
DL6ER 86a20fb834 Env var arrays are ;-delimited
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-29 18:00:14 +01:00
DL6ER 5af48abf20 PUT and DELETE on config items which are forced by env variable should be rejected with 400 Bad Request + explanation
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-29 17:57:19 +01:00
DL6ER 692787ef93 Merge pull request #1702 from pi-hole/fix/empty_password
Fix setting empty password
2023-10-28 18:56:06 +02:00
DL6ER 2c0c5a9185 Fix small logic bug preventing setting an empty (= no) password via API/CLI/file. So far, it was only possible by directly interacting with .pwhash
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-28 18:19:50 +02:00
DL6ER 0700bf0f9d Merge pull request #1689 from pi-hole/new/keep_sessions
Backup and restore API sessions to/from database
2023-10-28 17:33:16 +02:00
DL6ER 1d611309f8 Merge pull request #1700 from pi-hole/docs/api_auth_401
Fix API GET /api/auth documentation
2023-10-28 17:32:48 +02:00
DL6ER 33798b0256 Merge pull request #1698 from pi-hole/fix/config_put_delete
PUT/DELETE /api/config fixes
2023-10-28 17:32:24 +02:00
Adam Warner baea4a86a9 Merge pull request #1693 from pi-hole/new/env_vars_readonly
Config items set via environment variables are read-only
2023-10-28 13:39:16 +01:00
yubiuser 76e4cd98e4 Merge pull request #1701 from pi-hole/dependabot-github_actions-development-v6-actions-setup-node-4
Bump actions/setup-node from 3 to 4
2023-10-28 13:59:46 +02:00
dependabot[bot] ac9c011afa Bump actions/setup-node from 3 to 4
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-28 10:16:22 +00:00
DL6ER c367d442dd Documentation-only change: Add 401 being returned by the API for unauthorized access to GET /api/auth and add a few more examples
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-27 16:30:51 +02:00
DL6ER c7f50a372a Merge pull request #1629 from pi-hole/tweak/domain_array
Add ability to specify domains, lists, clients and group names as arrays
2023-10-26 22:34:33 +02:00
DL6ER fab6865bff Merge pull request #1695 from pi-hole/tweak/optimize_list_manipulation
Use UPSERT instead of special REPLACE INTO statements to update exist…
2023-10-26 17:06:23 +02:00
DL6ER e994d63bda Merge pull request #1696 from pi-hole/tweak/retry-action
Retry failed FTL builds
2023-10-26 17:06:14 +02:00
DL6ER 8df49a51c8 Fix broken internal dnsmasq config test
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-26 00:13:17 +02:00
DL6ER abf0b735a4 Return empty object with code as specified in the API when calling PUT/DELETE /api/config/...
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-26 00:07:45 +02:00
DL6ER f2960cb703 Use more precise examples in the API documentation
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-26 00:03:59 +02:00
DL6ER 9dbe1071ef Free regex after successful test compilation in API lists
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-26 00:01:13 +02:00
DL6ER a7ba71447c Try retry-action
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-23 23:21:18 +02:00
DL6ER 87272c2178 Use UPSERT instead of special REPLACE INTO statements to update existing group, adlist, domainlist, and client rows in the gravity database
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-23 22:35:14 +02:00
DL6ER e741ba4c94 Add app password support
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-23 18:13:12 +02:00
DL6ER 88db8bb144 Use secure_delete mode to ensure the backed up sessions are overwritten with zeros after restore
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-22 23:33:34 +02:00
DL6ER f9a69a06ac Store sessions only momentarily in between FTL restarts
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-22 23:32:11 +02:00
DL6ER 8664165ebc Merge pull request #1691 from pi-hole/fix/rotation_permissions
Explicitly chown all rotated files
2023-10-22 23:16:05 +02:00
DL6ER 29274ad411 Config items set via environment variables cannot be changed, they remain readonly for the entire lifespan of the FTL process
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-22 23:11:52 +02:00
DL6ER 492759ac03 Merge pull request #1687 from pi-hole/tweak/parseList_sync_journal
Minor speedup for parseList (pedal to the metal)
2023-10-22 22:47:52 +02:00
DL6ER 3d571ba862 Add missing CAP_CHOWN to CMakeLists install target
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-22 22:44:29 +02:00
DL6ER f2426ff2f4 Explicitly chown all rotated files to pihole:pihole
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-22 21:23:30 +02:00
DL6ER fb76ea0968 Merge pull request #1690 from pi-hole/tweak/env_semicolon
Allow both commas and semicolons for separating array env var entries
2023-10-22 19:02:36 +02:00
DL6ER 13950825f9 Allow both commans and semicolons for separating array env var entries
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-22 18:37:36 +02:00
DL6ER a2a8787239 Add new config option webserver.api.session.restore defaulting to true and move existing config option webserver.api.sessionTimeout -> webserver.api.session.timeout
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-22 08:51:11 +02:00
DL6ER 85b5c94858 Add save/restore of API sessions to the database to avoid a forced logout on FTL restarts. This updated the database to version 15
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-22 08:44:10 +02:00
DL6ER 71685f3926 Merge pull request #1688 from pi-hole/tweak/active_clients
Include number of active clients in summary
2023-10-22 08:04:36 +02:00
DL6ER 705d366e05 Merge pull request #1677 from pi-hole/fix/privacy_restart
Always restart FTL when changing the privacy level
2023-10-21 19:46:06 +02:00
DL6ER c951e253a5 Include number of active clients in the response of GET /api/stats/summary
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-21 18:44:38 +02:00
DL6ER 657052a303 Log restarting reason
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-21 14:43:15 +02:00
DL6ER 7aaccbf29a Immediately restart FTL if requested, do not wait for the DNS loop
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-21 13:29:30 +02:00
DL6ER f798e569a6 Merge pull request #1686 from pi-hole/dependabot-github_actions-development-v6-actions-checkout-4.1.1
Bump actions/checkout from 4.1.0 to 4.1.1
2023-10-21 13:20:41 +02:00
DL6ER b458bd5677 Disable journaling and synchronous mode when building the gravity.db file in parseList
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-21 13:03:59 +02:00
dependabot[bot] cccca0b201 Bump actions/checkout from 4.1.0 to 4.1.1
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.0 to 4.1.1.
- [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.0...v4.1.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-21 10:46:53 +00:00
DL6ER 0fb16c2745 Merge pull request #1682 from pi-hole/fix/database_upgrade_transactions
Ensure database upgrades use transactions
2023-10-21 09:52:30 +02:00
DL6ER 66a618678d Merge pull request #1683 from pi-hole/fix/network_clients_heap
Fix possible heap overflow
2023-10-21 00:35:22 +02:00
DL6ER b88a249d36 Update tests to reflect the new database version 14
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-20 19:53:58 +02:00
DL6ER da3a70da0c Merge pull request #1681 from pi-hole/drop/debian
Remove tests/builds on Debian builders
2023-10-20 19:33:14 +02:00