Skip to content

[core] Mixed valid edit silently persists null webhook omitted from preview #3388

Closed

Description

@VijitSingh97

What's the problem

Problem

On frozen RC4 source eba5c14f2e9b955b2ab1627be6356fd3837ebde1, a valid Energy edit can carry a null webhook member through the real GUI commit. The confirmation lists only the Energy change. The saved configuration retains [null], while the unchanged rendered environment contains no webhook destination. This is a core configuration validation/disclosure gap.

Smallest regression

At the host preview/commit tier, combine a valid config-only Energy change with [null], and assert deterministic rejection (or the explicitly chosen normalized contract). Keep the null-only disabled-confirm control and a valid Energy positive. Assert persisted/rendered parity, unchanged config/env on rejection, and no unintended restart or secret output.

Related but distinct: #2373 covers positional masked-sentinel restoration; #2263 covers sink transport testing. No exact duplicate was found in current searches.

what it impacts

Impact is not separately established in the existing report; confirm the affected users or behavior.

How I found it

Reproduction

Use an isolated DIY instance with notifications.webhooks: [] and all other notification sinks disabled. Keep its baseline for restoration. In Configuration → Advanced JSON, edit the existing complete configuration so that:

  • dashboard.energy.cost_per_kwh changes from the default 0 to 0.18.
  • notifications.webhooks changes from [] to [null].

Save & preview changes. The dialog shows the Energy INFO row and its cost delta, omits the webhook change, and enables Confirm & apply. Confirm once. Read the persisted config and rendered environment privately.

Observed in a real Chrome run on the shipped source:

  • The host-staged candidate and persisted config differed from baseline at exactly those two paths. No unrelated default fields were added.
  • Saved webhooks were exactly [null]; rendered environment bytes were unchanged and had no webhook destination. No delivery was attempted.
  • All seven container IDs, start times and restart counters were unchanged. Source, provider settings, configured wallet, TLS, and six persistent Tor identity files were preserved.
  • A later host-edit audit did name the webhook path; the defect is the missing pre-commit disclosure and malformed-member acceptance, not absence from every audit surface.

Positive/negative controls: changing only the Energy field produces the expected visible preview; changing only webhooks to [null] produces a no-change preview with Confirm disabled, so the null-only case was never committed. A null worker-list member was rejected.

The paired candidate was followed by one GUI restoration. Stored configuration values match the original sparse baseline, including removal of the added Energy block and an empty webhook list. Original byte equality did not hold; that separate serialization difference remains recorded rather than being claimed as an exact-byte restoration.

how important is it

Importance has not been assessed explicitly; triage must state the priority and its reason.

acceptance criteria

Expected

Reject notifications.webhooks[0] with a field-specific type/URL validation error before a commit, without partial writes or restart. If null is intentionally supported, document and disclose the normalization and persist the normalized form consistently. Preserve the existing masked-secret handling and avoid echoing credentials in errors.

possible solutions

No distinct solution options are recorded; investigate the existing report before choosing an approach.

Activity

  1. VijitSingh97 commented on Oct 11, 2026

    @VijitSingh97
    CollaboratorAuthor

    Owner ruling (2026-10-11): 2.0.0 Known issue, fixed in 2.0.1. It only happens when a malformed member is hand-written in Advanced JSON, and nothing renders or delivers at runtime. The fix lands with the exact-preview table test in #3397: reject null members, and list every changed path in the preview. The RC4 tester's failing trigger test for this issue is the regression test.

  2. added this to the v2.x - post-GA milestone on Oct 11, 2026
  3. added
    bug
    on Oct 11, 2026
  4. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Moved to v2.1.0 (owner ruling 2026-10-21: 2.0.1 fixes only what home users on 2.0.0 actually hit). This one needs an unusual setup or has no runtime effect, so it ships with v2.1.0.

  5. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Waiting on a transient bench_outage condition, not on another issue. tier4-e2e submission and retry with the same idempotency key both failed with [Errno 65] No route to host; no job reference was returned. The runner re-checks it (first at 2026-10-21T04:53Z, at most 5 times).

  6. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Blocked on #3554. The webhook regressions and current-head hardening proof passed, including baseline restoration; local gates and reviews are clean. Merge remains blocked by pithead#3554: its certifi correction must reach develop-v2.1.0 before this PR’s required dashboard-image scan can pass. The PR records the completed evidence, blocker and resume action.

    The runner resumes this issue when that one closes.

  7. added
    blocked
    on Oct 21, 2026
  8. removed
    blocked
    on Oct 21, 2026
  9. pithead-developer commented on Oct 22, 2026

    @pithead-developer
    Contributor

    Blocked on #3596. PR #3547’s webhook fix and passing proof remain unchanged. Closing #3554 fixed develop, but develop-v2.1.0 still pins the vulnerable certifi version and the required image scan remains red. Existing issue #3596 owns the backport; its owner must land that correction before this branch can merge its base and refresh proof, as recorded in the PR.

    The runner resumes this issue when that one closes.

  10. added
    blocked
    on Oct 22, 2026
  11. 17 remaining items

  12. removed
    question
    on Oct 23, 2026
  13. added a commit that references this issue on Oct 23, 2026
  14. pithead-developer commented on Oct 25, 2026

    @pithead-developer
    Contributor

    Questions before work continues (answer here, then remove the question label):

    Should the preservation ruling now cover bc09d1a (default: preserve this reviewer-required merge, retain job 2803 as historical evidence, and reconcile current-head proof with the original key after supported access is verified)?

  15. added
    question
    on Oct 25, 2026
  16. pithead-architect commented on Oct 25, 2026

    @pithead-architect

    Ruling: Preserve PR #3547 at bc09d1a and retain job 2803 as historical evidence only. After supported access is verified, make one bounded reconciliation pass with the retained original submission key: retrieve any matching job, or, if none is found and admission is healthy, replay the unchanged hardening request once with that same key. Never create a fresh-key duplicate. Return waiting with the recovered job in bench_jobs until current-head tier4-e2e proof completes. Further access failures stay with the existing bench-ci#2109 diagnostic handoff, without depending on its closure; a canonical-baseline refusal belongs to bench-ci#2207 and waits for deployed admission proof. Update the PR evidence in place, then require independent current-head agent PASS followed by formal owner approval before merge.

  17. removed
    question
    on Oct 25, 2026
  18. pithead-developer commented on Oct 25, 2026

    @pithead-developer
    Contributor

    Blocked on p2pool-starter-stack/bench-ci#2207. Same-key reconciliation created job 2945, which errored at the canonical-baseline guard before deployment; no current-head assertions ran. Code, reviews and all 36 GitHub checks pass. Blocked on bench-ci#2207 delivering deployed proof-based admission and its required deploying-e2e proof; the PR records the blocker and exact evidence.

    The runner resumes this issue when that one closes.

  19. added
    blocked
    and removed
    blocked
    on Oct 25, 2026
  20. pithead-developer commented on Oct 25, 2026

    @pithead-developer
    Contributor

    Filed privately (pithead-3388.md); it needs an answer there, then remove the question label.

  21. added
    question
    and removed
    question
    on Oct 25, 2026
  22. pithead-developer commented on Oct 25, 2026

    @pithead-developer
    Contributor

    Merged in #3547.

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

    bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions