Commit Graph
42 Commits
Author SHA1 Message Date
sebingel 71efcd0ba0 fixes PIHOLEAPI's ignored VERIFY_SSL setting and checks setting keys
main() read the setting 'PIHOLEAPI_SSL_VERIFY', but config.json defines
the function VERIFY_SSL, so the real key is PIHOLEAPI_VERIFY_SSL.
get_setting_value() returns "" for a key nobody defined, so every Pi-hole
API request got verify="": certificate checks were always off and the
InsecureRequestWarning was suppressed, even when a user had turned on
"Verify SSL". The login request sends the Pi-hole web password to
api/auth. The plugin README and docs/PIHOLE_GUIDE.md used the wrong name
too. test_plugin_conventions.py did not catch it: it only looks at
get_setting_value("X") or <literal>, and this line had no fallback.

Changes:
- test/plugins/test_plugin_conventions.py: new
  test_own_setting_keys_exist_in_config. Every literal
  get_setting_value('<PREFIX>_X') in a plugin's scripts must name a
  setting its own config.json defines; core settings and other plugins'
  keys are not checked. Before the fix it fails for exactly one of the 54
  plugins: pihole_api_scan.py, get_setting_value('PIHOLEAPI_SSL_VERIFY').
- New test/plugins/test_pihole_api_scan_verify_ssl.py: runs main() with
  VERIFY_SSL true and false and checks the verify= value that reaches
  requests.post() for api/auth. Only the HTTP call is mocked. It fails
  before the fix (verify=None).
- server/plugins/pihole_api_scan/pihole_api_scan.py: main() reads
  PIHOLEAPI_VERIFY_SSL.
- server/plugins/pihole_api_scan/README.md and docs/PIHOLE_GUIDE.md name
  the setting PIHOLEAPI_VERIFY_SSL.
- docs/PLUGINS_DEV.md, Conventions Checklist: read a setting under the
  exact key config.json defines; names the new check.

Impact:
"Verify SSL" now works. The default stays false, so default installs
behave as before. A user who turned it on while Pi-hole uses a
self-signed certificate will now see the login fail, as the setting
description says ("Disable if you are using a self-signed certificate").
Live check against Pi-hole v6.8 behind a proxy with an untrusted
certificate: with "Verify SSL" on the fixed code refused to log in, the
old code logged in and imported 33 entries.
2026-11-01 09:32:55 +00:00
jokob-sk 27aa36620e FE+DOCS: review fixes 2026-10-03 09:01:21 +10:00
jokob-sk c04213eb23 PLG: FREEBOX and FRITZBOX didn't respect SET_ALWAYS due to non-matching plugin name in config #1812 2026-09-26 07:49:11 +10:00
jokob-sk f30d27db13 BE: plugin input improvements 2026-09-25 08:32:03 +10:00
jokob-sk 6cc092f2ad BE: plugin input improvements 2026-09-24 10:01:52 +10:00
jokob-sk d72aea21f5 BE: re-enable GRAPHQL_PORT #1803 2026-09-21 17:30:25 +10:00
jokob-sk f7fef5d196 FE+BE: plugins config fixes #1784 2026-09-14 08:49:15 +10:00
jokob-sk de48a270e9 DOCS: plugin import behavior cleanup 2026-09-12 08:33:45 +10:00
jokob-sk c3bdd92b8d BE: conditional device import support, notification supression support during scan #1721 2026-09-10 13:51:09 +10:00
jokob-sk 81202afa31 PLG+DOCS: better scaffolding 2026-08-31 11:27:25 +10:00
jokob-sk e44b17faa7 PLG+DOCS: better scaffolding 2026-08-31 10:01:09 +10:00
jokob-sk 72729d8624 PLG+DOCS: plugins dev docs for temp files + adguard export cleanup 2026-08-31 08:50:30 +10:00
Jokob @NetAlertX 9e38cfd8b4 Add website monitoring plugin and update workflows configuration
- Introduced a new plugin for monitoring website health, including functionality to check URLs and log results.
- Created README and configuration files for the workflows plugin, detailing its purpose and settings.
- Updated import paths in various test files to reflect the new directory structure.
- Ensured compatibility of test cases with the updated plugin architecture.
2026-08-10 02:32:49 +00:00
jokob-sk 76e7cc7b3d BE: Removal of stdout.log 2026-06-14 10:35:08 +10:00
jokob-sk dfd7256751 Docs 2026-05-27 01:34:37 +00:00
Jokob @NetAlertX c7399215ec Refactor event and session column names to camelCase
- Updated test cases to reflect new column names (eve_MAC -> eveMac, eve_DateTime -> eveDateTime, etc.) across various test files.
- Modified SQL table definitions in the database cleanup and migration tests to use camelCase naming conventions.
- Implemented migration tests to ensure legacy column names are correctly renamed to camelCase equivalents.
- Ensured that existing data is preserved during the migration process and that views referencing old column names are dropped before renaming.
- Verified that the migration function is idempotent, allowing for safe re-execution without data loss.
2026-03-16 10:11:22 +00:00
jokob-sk 686a713aa8 FE: lower case MAC issues #1538
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
2026-02-27 14:35:35 +11:00
jokob-sk d24411fa53 BE: CurrentScan table leanup - column rename
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
2026-01-25 16:38:45 +11:00
jokob-sk 2f61f132ec DOCS: cleanup
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
2026-01-13 20:47:59 +11:00
Jokob @NetAlertX bc2cfb9384 DOCS: Plugins docs refactor 2026-01-13 04:26:24 +00:00
jokob-sk 28dd9fb5f2 DOCS: plugins dev
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
2026-01-08 12:04:31 +11:00
jokob-sk 5f772b3e0f docs
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
2025-09-29 13:11:58 +10:00
jokob-sk 4b0c7f2c01 docs, MQTT, GH Actions 2025-03-01 10:06:32 +11:00
jokob-sk c6adaf99f4 MKDocs 2025-02-09 12:01:02 +11:00
jokob-sk 0fe903e076 MKDocs 2025-02-09 10:57:02 +11:00
jokob-sk c855d50999 docs + sorting #983 2025-02-01 13:07:46 +11:00
jokob-sk 09d2e68479 Undiscoverables - UNDIS removal #979 2025-01-26 10:23:21 +11:00
jokob-sk 6718d054dc #951, small fixes 2025-01-12 11:46:32 +11:00
jokob-sk ede926beee docs, cleanup 2025-01-09 14:41:56 +11:00
jokob-sk e1f91ddf17 docs, social posts, s6 setup improvements #945 2025-01-09 14:22:39 +11:00
jokob-sk f2a0018982 docs + cleanup 2025-01-04 13:20:18 +11:00
jokob-sk 7b15efa913 last_result.log -> /log/plugins/last_result.PLUGPREF.log 2024-12-13 10:18:35 +11:00
jokob-sk 0bc8b39cec 🔺GraphQL v0.1 + Devices table rebuild + removal of backend compatible scripts 2024-11-10 21:22:45 +11:00
jokob-sk 222a439212 SYNC required + docs 2024-10-10 07:55:37 +11:00
jokob-sk 2fec3b6607 📚Docs 2024-09-25 07:50:13 +10:00
jokob-sk 45489eadaf 🔌UNIFI work 2024-08-05 09:58:18 +10:00
jokob-sk f502d93854 📩Import Pasted CSV + 📚Docs 2024-07-14 21:37:11 +10:00
jokob-sk 6ea3d14480 ⚙ Settings rework 2024-07-07 23:11:30 +10:00
jokob-sk b86ab576bd SNMP enhancements #718 2024-07-02 19:39:33 +10:00
jokob-sk 15d16dcd81 📚Docs 2024-06-30 21:37:14 +10:00
jokob-sk 28a5b6af2a 📚Docs 2024-06-30 21:24:31 +10:00
jokob-sk 10b3e91b8a Loading plugins v 0.6 🔌 + Show only Down #676 + Docs📚 + Settings page work ⚙ 2024-05-24 08:01:48 +10:00