Executions/script-page rework + self-signed TLS fingerprint pin & graceful root renewal #14
Reference in New Issue
Block a user
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Rolls up the executions/script-page rework and the self-signed TLS trust work.
Script page & executions
output removed, and an Executions -> Targets -> Target -> Output drill-in with a
full-width, searchable log.
Self-signed TLS trust
enrollment is connection-first and pins the fetched CA to it, closing the
first-contact MITM window. A real/edge cert validates and installs nothing.
the authenticated connection — so root renewal is seamless for enrolled agents;
only a true key rotation re-tokens.
Backend 104, Shared 89, Agent 60 tests pass; svelte-check clean.
- Trigger target selector now offers All devices + groups only (no per-device list, which is unusable in large fleets). - The cadence editor time zone is a dropdown (full IANA list via Intl.supportedValuesOf, shortlist fallback) instead of free text. - Triggers can be disabled without deleting: new PATCH /api/triggers/{id} flips Enabled (re-enabling a recurring schedule advances NextRunUtc past due so it does not fire a backlog); the card shows an Enable/Disable button and dims disabled rows. The worker and lifecycle service already skip disabled triggers, so this actually gates firing. Backend builds; 103 backend tests pass; svelte-check clean. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>Foundation for the Script > Executions > Targets > Target > Output drill-in. Every run (ad-hoc, group, or a trigger firing) stamps its jobs with a shared RunId; legacy jobs (null RunId) are treated as single-target runs keyed by their own JobId. New read endpoints: - GET /api/scripts/{scriptId}/executions — runs of a script, summarized (started, requester, total + per-state counts), newest first. - GET /api/executions/{runId} — the run and its target devices. Output is fetched per target via the existing job-output endpoint. Migration AddJobRunId (Sqlite/Postgres/SqlServer) adds the nullable column + (ScriptId, RunId) index. Backend builds; 103 tests pass; svelte-check clean. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>