Commit Graph
6625 Commits
Author SHA1 Message Date
Jokob @NetAlertX 14a34dfd51 Merge pull request #1748 from netalertx/main
sync
2026-08-17 07:44:34 +10:00
Jokob @NetAlertX 548d698b02 Merge pull request #1695 from justadityaraj/feat/ntfy-custom-query-string
Add custom header and URL query string options to the ntfy publisher
2026-08-17 07:25:01 +10:00
Aditya Raj Singh 5c6faaba2a Document the new ntfy settings and stop leaking the custom header value
Adds README examples for the custom header and URL query string settings,
and handles requests' InvalidHeader separately: its message embeds the
offending header value, so logging it leaked NTFY_CUSTOMHEADER_VALUE into
the plugin result file and the UI.
2026-08-17 01:24:33 +05:30
Aditya Raj Singh a297bf18c6 Add custom header and URL query string options to the ntfy publisher
Lets users authenticate ntfy notifications through a reverse proxy or tunnel
(Pangolin, Tailscale, ...) in front of the ntfy instance. Adds three optional,
backward-compatible settings that default to empty and are no-ops when unset:

- NTFY_URL_QUERY_STRING: appended to the request URL (e.g. p_token=...). A
  leading '?' is tolerated, and the value is redacted from error logs / the
  plugin result file since the request URL can carry a secret token.
- NTFY_CUSTOMHEADER_NAME / NTFY_CUSTOMHEADER_VALUE: a custom request header,
  skipped with a warning if it would clobber a built-in header (e.g.
  Authorization) so ntfy's own auth stays intact.

Secret-bearing fields are password-masked in the UI. Addresses #1663.
2026-08-17 01:24:33 +05:30
jokob-sk 2ec90334d5 PLG:ADGUARDIMP add static_leases #1746 #1742 2026-08-16 08:31:01 +10:00
jokob-sk 85918cc4e0 PLG:ADGUARDIMP add static_leases #1746 #1742 2026-08-15 12:48:08 +10:00
jokob-sk 0e391eba80 PLG: UNIFIAPI devVlan, devSite import #1741 + v bump 2026-08-15 12:33:43 +10:00
jokob-sk 383ab12eb1 PLG: UNIFIAPI devVlan, devSite import #1741 2026-08-15 12:31:11 +10:00
jokob-sk 9adb39e0b3 Merge branch 'next_release' of github.com:netalertx/NetAlertX into next_release 2026-08-15 12:21:24 +10:00
jokob-sk f33800f2d6 PLG: UNIFIAPI devVlan, devSite import #1741 2026-08-15 12:21:01 +10:00
Jokob @NetAlertX 3196b8088a Merge pull request #1744 from netalertx/copilot/fix-devcomments-xml-issue
Escape notification HTML device fields and fall back on indent errors
2026-08-15 10:15:38 +10:00
copilot-swe-agent[bot]andjokob-sk 13da2ddbf1 fix: use valid notification fallback log level
Co-authored-by: jokob-sk <96159884+jokob-sk@users.noreply.github.com>
2026-08-14 23:51:15 +00:00
copilot-swe-agent[bot]andjokob-sk 44ed53cb69 test: cover escaped notification html fallback
Co-authored-by: jokob-sk <96159884+jokob-sk@users.noreply.github.com>
2026-08-14 15:34:07 +00:00
copilot-swe-agent[bot]andjokob-sk 0197e7c2cf fix: escape notification HTML device fields
Co-authored-by: jokob-sk <96159884+jokob-sk@users.noreply.github.com>
2026-08-14 15:29:44 +00:00
copilot-swe-agent[bot] 208fa928ea Initial plan 2026-08-14 15:26:47 +00:00
Christian Isenberg 67bad01aca Translated using Weblate (Portuguese (Brazil))
Currently translated at 49.2% (409 of 831 strings)

Translation: NetAlertX/core
Translate-URL: https://hosted.weblate.org/projects/pialert/core/pt_BR/
2026-08-14 15:51:24 +02:00
Jokob @NetAlertX f14364335b Merge pull request #1739 from netalertx/copilot/fix-nic-child-relationship-issue
Fix: NIC child presence no longer forces a directly-detected parent offline (#1736)
2026-08-13 19:20:28 +10:00
copilot-swe-agent[bot]andjokob-sk 4ed96e9304 chore: strengthen test MAC and helper rules in code-standards and pr-analysis skills
Co-authored-by: jokob-sk <96159884+jokob-sk@users.noreply.github.com>
2026-08-13 09:14:50 +00:00
copilot-swe-agent[bot]andjokob-sk 66db9a4b57 chore: add missing pr-analysis and logging-standards skills
Co-authored-by: jokob-sk <96159884+jokob-sk@users.noreply.github.com>
2026-08-13 09:04:36 +00:00
Jokob @NetAlertX 6208e00dd8 Merge pull request #1738 from netalertx/copilot/fix-skip-repeated-notifications
fix: correct UTC/localtime mismatch in skip_repeated_notifications cooldown
2026-08-13 18:57:04 +10:00
copilot-swe-agent[bot]andjokob-sk f52cc50705 fix: address review feedback on NIC presence logic and tests
- Replace max() with explicit if/else for readability
- Use db_test_helpers (make_db, make_device_dict, insert_device_from_dict,
  DummyDB) instead of local mock DB objects in test_nic_presence.py
- Lowercase all MAC addresses in tests

Co-authored-by: jokob-sk <96159884+jokob-sk@users.noreply.github.com>
2026-08-13 08:52:43 +00:00
copilot-swe-agent[bot]andjokob-sk 283bea21c9 fix: NIC child presence no longer forces a directly-detected parent offline
When a parent device has NIC children, update_devPresentLastScan_based_on_nics
previously replaced the parent's devPresentLastScan unconditionally with the
NIC-derived value. This discarded any genuine direct detection of the parent:
if the parent was found by ARP/save_own_device (present=1) but its NIC child
was absent (present=0), the NIC step forced the parent back to 0. The next
scan re-detected the parent → Connected event → NIC forced it down again,
producing an endless one-directional Connected event stream.

Fix: use max(original, nic_derived) so NIC children can only raise a parent's
presence (bring an undetected parent online), never lower it when the parent
itself was directly detected this cycle.

Adds test/scan/test_nic_presence.py covering the exact regression scenario
and surrounding cases (raise, no-NIC unchanged, req_all modes).

Fixes #1736

Co-authored-by: jokob-sk <96159884+jokob-sk@users.noreply.github.com>
2026-08-13 08:44:00 +00:00
copilot-swe-agent[bot] c0718d8618 Initial plan 2026-08-13 08:38:19 +00:00
copilot-swe-agent[bot]andjokob-sk 80f2b03870 fix: use db_test_helpers and lowercase MACs in skip_repeated test
Co-authored-by: jokob-sk <96159884+jokob-sk@users.noreply.github.com>
2026-08-13 08:35:40 +00:00
copilot-swe-agent[bot]andjokob-sk 2dc2207228 fix: remove localtime modifier from skip_repeated_notifications cooldown comparison; add UTC regression tests
Co-authored-by: jokob-sk <96159884+jokob-sk@users.noreply.github.com>
2026-08-13 06:23:09 +00:00
copilot-swe-agent[bot] 16210a9f19 Initial plan 2026-08-13 06:20:50 +00:00
Jokob @NetAlertX eed8a3960c Merge pull request #1735 from Valiante/patch-2
Fix: clock shows wrong timezone after header reload (#1640)
2026-08-13 10:18:04 +10:00
Valiante 229755bf56 Fix: clock shows wrong timezone after header reload (#1640)
tz/LOCALE were evaluated once as module-level consts at script-load time. clearCache() (the header reload button) wipes localStorage right before reloading, so that reload could read an empty settings cache, fall back to the hardcoded 'Europe/Berlin' default, and stay locked to that wrong value for the rest of the page's life. Moved the reads inside localizeTimestamp() so they're evaluated fresh on every call instead.
2026-08-12 15:35:23 +01:00
Anonymous 21aeaf2de8 Translated using Weblate (Arabic)
Currently translated at 81.1% (674 of 831 strings)

Translation: NetAlertX/core
Translate-URL: https://hosted.weblate.org/projects/pialert/core/ar/
2026-08-11 08:51:30 +02:00
Anonymous 4c5b8dfeee Translated using Weblate (Turkish)
Currently translated at 53.9% (448 of 831 strings)

Translation: NetAlertX/core
Translate-URL: https://hosted.weblate.org/projects/pialert/core/tr/
2026-08-11 08:51:28 +02:00
Anonymous a5060d303b Translated using Weblate (Polish)
Currently translated at 80.9% (673 of 831 strings)

Translation: NetAlertX/core
Translate-URL: https://hosted.weblate.org/projects/pialert/core/pl/
2026-08-11 08:51:26 +02:00
Anonymous 0414de9b41 Translated using Weblate (Portuguese (Brazil))
Currently translated at 48.7% (405 of 831 strings)

Translation: NetAlertX/core
Translate-URL: https://hosted.weblate.org/projects/pialert/core/pt_BR/
2026-08-11 08:51:24 +02:00
Anonymous 64ae42e992 Translated using Weblate (Norwegian Bokmål)
Currently translated at 67.0% (557 of 831 strings)

Translation: NetAlertX/core
Translate-URL: https://hosted.weblate.org/projects/pialert/core/nb_NO/
2026-08-11 08:51:22 +02:00
Jokob @NetAlertX ae25adfbab Merge pull request #1734 from netalertx/next_release
Next release
2026-08-10 16:39:24 +10:00
jokob-sk edae729346 Merge branch 'next_release' of github.com:netalertx/NetAlertX into next_release 2026-08-10 16:33:09 +10:00
jokob-sk 6046317ca4 DOCS: context7 claim 2026-08-10 16:32:55 +10:00
Jokob @NetAlertX a06dc259a8 Refactor plugin paths in scripts and tests to ensure consistent directory structure 2026-08-10 03:51:23 +00: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 @NetAlertX c7ecbefbaa Merge pull request #1733 from netalertx/main
sync
2026-08-10 09:06:04 +10:00
Jokob @NetAlertX 9b47fb818b Merge pull request #1732 from etgocode/patch-1
fix multiple recipients in smtp plugin
2026-08-08 21:53:19 +10:00
etgocode 9c36b6e625 removed whitespace only in to_emails
as pointed out in https://github.com/netalertx/NetAlertX/pull/1732#discussion_r3739298057
2026-08-08 01:15:58 +02:00
etgocode 69de0dd86f removed empty entries in to_emails
removed empty entries in `to_emails` caused i.e. by the input `,` as pointed out in https://github.com/netalertx/NetAlertX/pull/1732#discussion_r3738840647 
Also added an abort if no entries remain in `to_emails` after this step.
2026-08-08 00:54:44 +02:00
Safeguard 70b60817f3 Translated using Weblate (Russian)
Currently translated at 100.0% (831 of 831 strings)

Translation: NetAlertX/core
Translate-URL: https://hosted.weblate.org/projects/pialert/core/ru/
2026-08-07 15:51:22 +00:00
etgocode 72a0b091ce Fix unsanitized recipient list passed to smtp_connection.sendmail()
`smtp_connection.sendmail()` now gets passed the correct recipient. Since `send_email()` is called once for every recipient the correct recipient can be retrieved from `msg` and no additional parameter needs to be passed.
- Resolves https://github.com/netalertx/NetAlertX/pull/1732#discussion_r3732500990
2026-08-07 16:30:42 +02:00
etgocode 38bf120920 fix email_smtp.py
moved splitting of multiple recipient email adresses before sanitization because otherwise it breaks when sanitized.
2026-08-06 23:53:43 +02:00
jokob-sk 05e7ef0f6f DOCS: sample docker run 2026-08-05 11:15:51 +10:00
jokob-sk 9f6a08095e DOCS: sample docker run 2026-08-05 10:29:57 +10:00
Jokob @NetAlertX 4e6110ac6c Merge pull request #1729 from netalertx/next_release
PLG: UNFIMP set ip to null to prevent changes if not returned #1727
v26.8.5
2026-08-04 23:41:56 +00:00
jokob-sk f3e7545957 PLG: UNFIMP set ip to null to prevent changes if not returned #1727 2026-08-04 07:37:37 +10:00
Jokob @NetAlertX 327e8f88f4 Merge pull request #1725 from netalertx/next_release
DOCS: grafana sample #1723
2026-08-03 08:18:41 +10:00