borg-backup-ui icon indicating copy to clipboard operation
borg-backup-ui copied to clipboard

Notify the maintainer once when a runtime build addresses open security issues

Open borg-codex-bot opened this issue 1 month ago • 0 comments

Protected monitor activation verified (2026-11-13)

PR #737 is merged as f127e1c8b0f6798b7ffdd21c2649f1f755dc83d3. Main CI succeeded, reusing verified source-test evidence and repeating the dependency audit. The timeout recovery and sanitized diagnostics are active on main.

Two sequential protected main runs, dispatched as verified borg-codex-bot, completed successfully:

Run Complete component scans Created issues Updated issues New fix notices
First: 43444610509 12 0 1 0
Second: 43445629518 12 0 0 0

Both scanned the actual stable 2026.11.13.1206 and identical current-source runtime: 3.13.18+20261110 / bbui-cpython-3.13.18-sqlite-3.54.1-r1. Both reported a complete scan, the same two findings and zero fix candidates. The first run recovered an actual zlib NVD timeout on attempt 2 after a 15-second wait.

Independent snapshots before, between and after the runs covered 17 related issues and all 15 existing comments. Only #717's monitor-managed block changed in the first run: it now records the current stable/custom runtime and the verified absence of the SQLite CLI. Its not-applicable closure was preserved. All other issue states, manual notes and comments were unchanged; the second run made no further changes. #706-#718 remain closed under their documented fixed/not-applicable assessments.

The unchanged-run acceptance criterion is satisfied. No duplicate notification was created. These live runs had no new fix candidates, so they did not send a synthetic positive alert; positive correlation, notification-ledger deduplication and interrupted-write recovery remain covered by the passing tests. The daily 07:17 UTC schedule and one-time notification behavior remain active; upstream outages still fail visibly instead of reporting a false all-clear.

GitHub had already recorded #720 as closed by TheTwist76 at 14:35:26 UTC, immediately after the merge and before these scans. That state was not treated as live validation. The independent successful runs and snapshot comparisons above now satisfy the acceptance criterion; the completed state is retained and this evidence is added without reopening the issue.

Issue #733 remains OPEN and unchanged: this monitor does not execute its separate recursive-pickle reproducer. No new plugin testing package or stable release was created; stable remains 2026.11.13.1206.

Previous implementation and verification evidence (historical)

NVD recovery implementation ready for review (2026-11-13)

PR #737, branch codex/720-nvd-retry-diagnostics, commit b3e34d7a27168fbee744f46ff50dd2ff2a81ad47, implements the authorized timeout recovery and diagnostic improvements.

  • Transient NVD reads receive at most three attempts, 15/30-second backoff, bounded Retry-After support and a shared 12-minute scan budget. The workflow permits 15 minutes including checkout and reconciliation.
  • Errors identify the source/component or processing phase, attempt, HTTP status or sanitized timeout/transport/schema category. Permanent failures still abort; no stale-cache or empty-success fallback, credentials, raw upstream messages or response bodies are exposed.
  • PR CI passed: 2,538 source tests, 9 skips; private/external runtime checks, quality and dependency audit succeeded. The preflight verified the GitHub evidence without repeating the full local suite.
  • A read-only live scan of the final commit completed for all 12 components of the identical stable/source custom runtime. It planned zero creates, one update and zero fix notices. No issue/comment was written by that preview.

This issue remains OPEN. GitHub requires a review, and the protected main-only monitor cannot validate PR code. After maintainer review/merge and main CI, run two protected scans sequentially, verify bot identity and complete scan summaries, and compare actual issue/comment snapshots. The unchanged second run must produce no duplicate changes or fix notices before closing this issue. #733 remains OPEN and unchanged; no plugin or stable-release change was made.

Previous implementation and live-run evidence (historical)

Protected live verification after stable publication (2026-11-13)

Two sequential protected python-monitor.yml runs were dispatched on main fcd54810cc1daf6328e94338a7e3e40f518a0137, with the dispatcher identity verified as borg-codex-bot before each write and confirmed in both run records:

Both jobs failed in the upstream metadata/inventory/issue reconciliation step without a complete-scan summary. A separate read-only diagnostic successfully read the supplier release pointer and Python lifecycle metadata, then raised TimeoutError: The read operation timed out while reading the first NVD CVE API query (bzip2 1.0.8). This establishes the local diagnostic failure, not the exact GitHub-side exception, which the current workflow log does not expose.

Independent snapshots before, between and after the runs covered 17 related issues and all 15 existing comments. Both comparisons show zero issue or comment changes; fix-notification marker comments remained at zero. No duplicate notification was created, but failed scans with no notifications do NOT validate successful unchanged-run deduplication or the live positive-alert path.

Issue #720 remains OPEN. Next acceptance requires two complete successful protected main scans with verified bot identity, current stable/custom-runtime facts, preserved manual CVE assessments and an unchanged second run producing no duplicate changes or fix notices. Investigate NVD availability/request resilience and stage-specific diagnostics before treating further failed retries as progress; do not substitute stale cache or a local preview for live acceptance.

Issue #733 remains OPEN and unchanged. Stable 2026.11.13.1206 remains published; these monitoring failures do not modify the runtime, release artifacts or the separately verified CVE closures.

Previous evidence (historical)

Follow-up after stable publication (2026-11-13)

stable 2026.11.13.1206 is verified after PR #736 merged; main CI and publication succeeded. The actual published private-runtime baseline is now custom CPython 3.13.18 / SQLite 3.54.1, replacing stable SQLite 3.53.1. #706-#715 and #718 are closed with explicit fixed-version evidence; #716/#717 retain their feature-based not-applicable assessment.

Keep this issue OPEN. The monitor code already distinguishes the custom runtime and rejects supplier replacements below SQLite 3.54.1; this release requires no additional pin change. Its daily 07:17 UTC schedule remains configured, but the failed protected runs recorded below do not establish successful live operation.

Outstanding acceptance: two successful protected main runs using the new published baseline, checking bot identity and preservation of manual applicability decisions; the unchanged second run must create no duplicate changes or fix notices. No daily maintainer mentions for unchanged evidence. The runtime publication and local read-only checks do not replace that proof. #733 is tracked separately; the CVE monitor does not execute its non-CVE reproducer.

Earlier assessments and evidence (historical)

The runtime monitor detects new supplier builds but does not correlate their native-library versions with open security issues or directly notify the maintainer when a fix candidate becomes available.

Implement daily comparison of compatible supplier builds against open Python runtime CVE issues. Require positive affected/fixed-range evidence and build-specific component metadata; missing or ambiguous data must not be called a fix. Notify @TheTwist76 once on GitHub with the affected issue links and candidate evidence. Persist deduplication in GitHub so repeated runs, retries and unchanged findings do not send daily mentions. Preserve manual assessments and deferrals, do not close CVEs, update runtime pins or authorize a release automatically.

Scope: internal maintainer tooling, impact::internal, release-note::no. Continue the monitor work in PR #719. No stable release. Validate positive/negative matches, incomplete data, platform/series compatibility, repeat runs and interrupted notification writes. Activation requires merge to main and two protected monitor runs.

Implementation and validation

Implemented in PR #719, commit 5acfd7b, branch codex/706-python-runtime-security-audit.

  • Compatible supplier archive/source metadata is read as data with SHA256 evidence; no supplier binary is executed.
  • Positive NVD upper-bound evidence is required; open non-deferred security issues are correlated.
  • One consolidated maintainer mention links new fix candidates. Bot comment markers survive retries, later rebuilds and closure of the comment anchor. Unchanged runs remain silent.
  • 166 focused tests passed. Actual supplier archive metadata reproduced all current locked components/checksums. A read-only live scan completed with zero fix candidates and zero notifications; this was not a fake live alert.
  • Fresh exact-tree CI 42137031772 passed: 2,420 source tests passed, 9 expected opt-in skips; private-runtime compatibility, quality checks and dependency audit passed. The local preflight verified this GitHub evidence without repeating the full suite.

Activation still pending

Keep this issue open until PR #719 is merged to main and the protected Python runtime monitor has been run twice, verifying bot identity and unchanged second-run notification counts. Do not run the privileged monitor from the PR or bypass its guards. The existing environment and bot token are sufficient; the maintainer mention targets TheTwist76 and GitHub delivery follows personal notification settings. No runtime update, CVE closure, plugin test package or stable release is created by this monitor-only extension. Existing Unraid test candidate 2026.11.06.0105 remains separate.

Post-merge verification for PR #734 (2026-11-13)

  • PR #734 merged as 01211ff40cdf170b9bf3b37c80ed00704a13bfca. Main CI succeeded, reusing the identical-tree source evidence and repeating the dependency audit.
  • The merged tree is identical to tested integration 51cd398983d22cb618ecb42100c3021fd49249ee. Testing candidate 2026.11.13.1206 remains valid; no rebuild, stable release or promotion was performed. Real Unraid acceptance remains separate.
  • The updated monitor code is now on main and selected by the daily 07:17 UTC workflow. Protected live verification is NOT complete: attempt 1 and attempt 2 failed without a completed-scan summary. The logs report a generic upstream/inventory/reconciliation failure. A parallel local read-only probe specifically failed with a TimeoutError while reading the NVD CVE API; the exact GitHub-side exception is not exposed by the workflow log.
  • Do not count these runs as successful activation or unchanged-run deduplication evidence. Two successful protected runs, including unchanged second-run issue/notification counts, remain outstanding when upstream reads succeed. No stale cache or local report was substituted for this live verification.
  • #716 and #717 were manually closed as not applicable, based on the previously verified absence of the session extension and native SQLite CLI in both stable and testing. They remain closed after both failed attempts; this alone does not prove that the monitor's preservation logic ran successfully. The library-update issues remain open for the still-published stable runtime.
  • #735 is closed after its fix merged and main CI passed. The independent upstream recursion limitation remains tracked in #733.

Stable preparation update: release PR #736 for 2026.11.13.1206 is ready with successful artifact CI and preflight. This issue remains open and is not resolved by that release PR. Protected live validation still requires two successful main monitor runs and verification that an unchanged second run creates no duplicate issue changes or fix notices. The failed runs and local NVD timeout remain recorded above.

borg-codex-bot avatar Nov 06 '26 00:11 borg-codex-bot