Skip to content

Wire notifications purpose onto its own credentialed circuit #4323

Closed

Description

@pithead-architect

What's the problem

Part of pithead#4209. The notification sinks still share the raw proxy: service/notify/healthchecks.py:95 (primary ping), notify_sinks.py:48,96-110 (Webhook/ntfy sinks), telegram_notifier.py:63, telegram_commands.py:188. healthchecks.py:118 additionally re-implements the credential rewrite inline. Once the purpose_proxy helper lands (sibling child), these are the AC's fourth purpose.

What it impacts

Appliance/DIY owners: Healthchecks pings, webhooks, ntfy and Telegram sends get their own circuit family instead of pooling with updates/probes/XvB.

How I found it

Split of pithead#4209; sites verified on origin/develop-v2.0.5 (ad76587) after #4207 merged.

How important is it

One of three wiring children; carries the notifications purpose and removes the second inline rewrite.

Acceptance criteria

  • All sinks build proxies via proxy_map(purpose_proxy(<tor_proxy>, PROXY_PURPOSE_NOTIFY)); the direct=True shapes stay None (LAN/self-hosted carve-out unchanged); healthchecks.py retry path becomes purpose_proxy(self._tor_proxy, uuid.uuid4().hex) so its per-ping isolation keeps fresh labels — replace its inline replace() rewrite entirely.
  • Existing tests dashboard/tests/service/notify/test_healthchecks.py, test_notify_sinks.py, test_telegram_notifier.py, test_telegram_commands_replies_and_transport.py updated so expected proxies carry notify:isolate@, and the retry path still shows a fresh label per attempt (two calls differ); Remove every dashboard proxy branch; per-caller zero-socket tests #4207 zero-socket contract holds.
  • Failure logging stays secret-free; one driven failure asserts no isolate@ in logged text.

Possible solutions

Mechanical swap onto the sibling helper; healthchecks keeps fresh-uuid retries by passing the uuid as the label.

Parent: #4209

Worker brief: Test tier: GitHub tiers 1-3 (dashboard-logic row). Wire healthchecks.py (primary notify cred + uuid retry via purpose_proxy, deleting its inline rewrite), notify_sinks.py, telegram_notifier.py and telegram_commands.py to PROXY_PURPOSE_NOTIFY after the helper child lands; keep direct=True shapes unmapped. Update the named pytest modules for credentialed expectations, fresh-label-per-retry and a logged-text secret-free assert. ruff check + format; no comments/docstrings.

Activity

  1. added this to the v2.0.5 milestone on Nov 20, 2026
  2. added
    dashboard
    security
    appliance
    needs-triage
    size:M
    on Nov 20, 2026
  3. pithead-developer commented on Nov 22, 2026

    @pithead-developer
    Contributor

    Blocked on #4320. Blocked on #4320. #4323 wires the notification sinks onto purpose_proxy(..., PROXY_PURPOSE_NOTIFY), and that helper and constant don't exist yet. A grep of the dashboard code found no purpose_proxy or PROXY_PURPOSE, and origin/develop-v2.0.5 has no new commits since the branch point. Issue #4320 is still open and has no open PR. Without the helper I would have to invent its signature and constant, which could conflict with the sibling's real API. The branch is clean and has no edits. Work resumes when #4320 merges: swap the proxy construction in healthchecks.py, notify_sinks.py, telegram_notifier.py and telegram_commands.py, keep the direct=True shapes unmapped, replace the inline uuid rewrite in healthchecks.py, and update the four named pytest modules, including a fresh label per retry and a check that logged text contains no isolate@. The proof tier is GitHub tiers 1-3.

    The runner resumes this issue when that one closes.

  4. added
    blocked
    on Nov 22, 2026
  5. removed
    blocked
    on Nov 22, 2026
  6. pithead-developer commented on Nov 22, 2026

    @pithead-developer
    Contributor

    Merged in #4360.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appliancedashboardneeds-triagesecuritysize:M

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions