feat(diagnostics): scrubbed diagnostics bundles on the desktop and the server
SecretScrubber removes passwords, tokens, keys, cookies, authorisation headers, URL credentials and private-key blocks from text and JSON; DiagnosticsArchive zips reports, settings, failed jobs and log tails through it. The desktop bundle (Settings > Advanced, About) now adds the codec and encoder inventory, the settings and recent failed jobs; the server serves the same as GET /api/v1/server/diagnostics (ManageArchive, audited), linked from admin > Logs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
16 files changed
+757
-40
No files matched your search
@@ -1,4 +1,4 @@
|
||||
// Logs (BRIEF §14.8): server log tail and downloads, sign-in log, audit log.
|
||||
// Logs (BRIEF §14.8): server log tail and downloads, diagnostics bundle, sign-in log, audit log.
|
||||
import { t, has, applyStrings } from "../i18n.js";
|
||||
import { escapeHtml, attr, formatBytes, formatDateTime, toast, errorText, routeParams } from "../ui.js";
|
||||
import { pascal } from "../jobs.js";
|
||||
@@ -44,6 +44,7 @@ export async function render(root, { api, meta, actions }) {
|
||||
<select class="input small" id="lines" data-i18n-title="Admin.Logs.Lines.Tip">${LINES.map((n) => `<option value="${n}" ${n === lines ? "selected" : ""}>${escapeHtml(t("Admin.Logs.LineCount", n))}</option>`).join("")}</select>
|
||||
<span class="spacer"></span>
|
||||
<button class="btn small" id="refresh" data-i18n="Admin.Common.Refresh" data-i18n-title="Admin.Logs.Refresh.Tip"></button>
|
||||
<a class="btn small" href="/api/v1/server/diagnostics" download data-i18n="Admin.Logs.Diagnostics" data-i18n-title="Admin.Logs.Diagnostics.Tip"></a>
|
||||
</div>
|
||||
<pre class="log tall">${escapeHtml(tail.lines.join("\n"))}</pre>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user