Include sanitized database profile inventory in support exports
Problem
Support ZIPs contain database profile references and run results but omit the database profile inventory. Consumers cannot explain the configured backup policy or resolve profile IDs without separate files. Missing profile data must not be confused with a failed dump.
Scope and acceptance
- Add a versioned, explicitly allowlisted and sanitized database profile inventory to the support ZIP.
- Preserve stable profile IDs and relevant configuration, including disabled profiles. Never read/export passwords, credential files or dump contents; omit credential references and identity fields that are not needed for diagnostics.
- Identify it as current configuration at export time, not the configuration used by a historical run or evidence of successful database restore.
- Distinguish an empty inventory from missing, unreadable, unsupported or malformed inventory; preserve export availability and avoid mutations.
- Test contents, redaction/exclusion, failures, stable IDs and existing support-bundle behavior.
- Document the file/schema, temporal semantics and backward-compatible consumer behavior for the separate Toolbox implementation. Add a user-facing release note.
Toolbox code is outside this repository and is explicitly out of scope. Existing Python test candidate 2026.11.04.1538 remains under maintainer observation; this task does not authorize a stable release.
Implemented in PR #704 (commit 7883c7d). GitHub CI 41990608343 and hosted preflight passed: 2343 full-suite tests and 292 bundled-runtime tests. 52 focused local tests and a non-published package build also passed. The schema and separate Toolbox handoff are documented in docs/maintainer/support-database-inventory.md.
A live support-export test candidate is deferred until PR #702 is merged: publishing from current main would regress the private Python startup fix used by the maintainer in 2026.11.04.1538. That existing testing feed is unchanged. After integration, rerun matching CI, publish a new candidate and verify the downloaded ZIP on Unraid. No stable approval is inferred.
The test-channel dependency is resolved: PRs #702 and #704 are merged into main at f897f2a2f9d81b4472b29bf3d3b5d4ed76c7b815.
- Merge CI #702: https://github.com/borgforge/borg-backup-ui/actions/runs/42021376122 - success.
- Merge CI #704/current main: https://github.com/borgforge/borg-backup-ui/actions/runs/42024941163 - success; hosted preflight verified this evidence. Full checks were reused for the identical checked tree from run 42021925227 (2360 passed / 9 skipped; 298 passed / 3 skipped with bundled Python). Dependency audit was repeated successfully.
- Test version 2026.11.05.1312 published successfully by https://github.com/borgforge/borg-backup-ui/actions/runs/42025241994.
- Manifest: https://raw.githubusercontent.com/borgforge/borg-backup-ui/test-channel/borg-backup-ui-test.plg
- Immutable candidate test-candidates/2026.11.05.1312: 1f75e99232637df9d7a01f8a78e3c4eafea8efca.
- Independently downloaded and verified manifest/package Git identity, channel URLs, MD5/SHA256, source/release-note provenance, exactly one package, Python noexec-path fix, per-bundle notices, and the packaged support inventory modules against main.
- Package SHA256: 4a9b0bfed02f4914378fe280abeef9f845e08d819230ca9ef30214b46163343c; MD5: a5f581c616811ebab371f3e7fed8c2c9.
- A focused smoke test executed the actual shipped support exporter with the actual shipped CPython 3.13.18 (source=bundled, isolated dependencies) and synthetic profiles: available inventory ZIP, credential exclusion, source preservation, and invalid-inventory status all passed. No real Unraid data was used.
Next maintainer test: install without the external Python plugin; confirm source=bundled and export a fresh support ZIP. Inspect config/database-profiles.sanitized.json for schema_version=1, scope=current_configuration_at_export, UTC captured_at, expected profile IDs/settings and status=available for a valid inventory. No credential references or credentials should appear in that member. Toolbox evaluation remains a separate change; this is not a stable-release approval.