Platform groups with CIDR rules, script editor rework, server MSI with turn-key setup, ARM agents #4

Merged
gsadmin merged 18 commits from dev into main 2026-08-08 16:15:34 +00:00

18 Commits

Author SHA256 Message Date
gsadmin 7549d079ce Screenshots: clone actions, seeded schedules, live platform-group rules
CI / build-test (push) Has been cancelled
CI / images (push) Has been cancelled
CI / build-test (pull_request) Successful in 3m19s
CI / images (pull_request) Has been skipped
Fresh captures across the clone-bearing surfaces: schedule rows with
Pause/Edit/Clone showing all four starter cadences, the groups page
with Windows Servers selected (its seeded platform rules in the
builder and Clone in the editor header), a saved Function with its
Clone action, the script editor header, the Script Configuration
strip, and the Access roles table with Clone on every row.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-08 11:53:00 -04:00
gsadmin 9fc557aab5 One-click Clone for scripts, Functions, schedules, groups and roles
CI / build-test (push) Has been cancelled
CI / images (push) Has been cancelled
CI / images (pull_request) Has been cancelled
CI / build-test (pull_request) Has been cancelled
Each surface clones in place: the script editor copies its full current
state (content, engine, parameters, secrets, files, Functions) and
switches to the copy; Functions clone from the editor panel; schedule
rows copy the cadence (assignments stay with the original); group
clones carry rules or, for static groups, the member list; role clones
copy permissions and device scope — but never OIDC claim values, so
identity mappings stay unambiguous — and work on system roles too,
turning Admin/Operator/Viewer into templates. Copies land as
"Name (copy)" with collision-free numbering against unique-name tables.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-08 11:48:15 -04:00
gsadmin 6dbbb56a1c Docs sweep: cross-platform intro, Functions naming, first-reset shot
CI / build-test (pull_request) Has been cancelled
CI / images (pull_request) Has been cancelled
CI / build-test (push) Successful in 11m45s
CI / images (push) Successful in 3m20s
The README intro finally says what the product is now: cross-platform
agents (Windows/Linux/macOS, x64 + arm64) with three script engines and
per-platform service integration. "Function modules" is Functions in
the remaining prose and gallery, run values are execution values, and
the gallery caption for the define strip reflects Script Configuration.
New capture: the forced first-sign-in password reset (also exercised
live — the shot run set a real password and landed signed in).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-08 11:36:29 -04:00
gsadmin cdfe02eb1b Script Configuration strip with self-headed sections; directory guard
CI / build-test (push) Successful in 11m26s
CI / images (push) Successful in 3m10s
CI / build-test (pull_request) Successful in 3m18s
CI / images (pull_request) Has been skipped
The define strip is titled Script Configuration and every section
carries its own header — Parameters, Secrets, Files (S3), Functions —
instead of one mashed headline. Directory file deliveries now refuse a
leaf destination: the server rejects destinations whose last segment
looks like a file path (extension heuristic that tolerates version-like
dots), and the editor shows the same warning inline as you type.
Screenshots refreshed.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-08 11:31:57 -04:00
gsadmin 718082d08a IntelliSense binds $Files keys; refreshed screenshots and docs
CI / build-test (push) Successful in 12m12s
CI / images (push) Successful in 1m42s
CI / build-test (pull_request) Successful in 3m11s
CI / images (pull_request) Has been skipped
Completions now include every file binding as $Files.Name, labeled with
its delivered type (FileInfo, or DirectoryInfo for recursive prefixes),
alongside the existing parameter and $Secrets entries. Fresh captures:
the define strip with a Files (S3) binding, the fully vertical
execution flow, the device header with the copyable client id, and the
network tab titled by interface name with its copyable Interface row.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-08 11:16:17 -04:00
gsadmin 0c15833f7c Script-integrated S3 delivery: $Files dictionary, prefixes, expansion
CI / build-test (push) Successful in 12m48s
CI / images (push) Successful in 1m57s
CI / build-test (pull_request) Successful in 3m18s
CI / images (pull_request) Has been skipped
Scripts declare file bindings in the define strip alongside parameters,
secrets and Functions: S3 objects — or whole prefixes delivered
recursively — that download to the device before execution. The server
lists and presigns everything once at dispatch (shared across group
fan-outs; failures surface before any job rows exist, like secrets),
so agents never hold S3 credentials.

On the device the destination path gets full expansion (%VAR% natively,
$env:/$(...) through a short-lived runspace regardless of engine), items
stream to temp files and move into place, relative keys are checked
against traversal, and every entry lands in a case-insensitive ordered
dictionary: $Files.Name is a FileInfo, or a DirectoryInfo for prefixes.
Per-entry continue-on-failure logs a warning and still runs the script
($Files.Name.Exists reveals what arrived); otherwise delivery failure
fails the job before execution. PowerShell 5 gets the same $Files via
typed literals; bash gets one env var per entry.

The execution flow below the editor is now fully vertical — Execution,
Schedules and Triggers each get a full-width row.

Verified with real HTTP round-trips: single files, recursive directory
trees, 404s under both failure modes, server-side resolution errors,
and path-traversal refusal (9 new tests; suites at 58/63/89, svelte
clean).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-08 11:08:45 -04:00
gsadmin 11f626fb03 Cache parsed inventory for group evaluation; client id under the title
CI / build-test (push) Successful in 11m49s
CI / images (push) Successful in 1m47s
CI / build-test (pull_request) Successful in 3m18s
CI / images (pull_request) Has been skipped
Dynamic-group evaluation ran every device''s inventory blob through the
JSON deserializer on every use — fine at dozens of devices, the hot
cost at thousands. A singleton InventoryReportCache now keys parsed
snapshots by the inventory UpdatedUtc: fleet-wide evaluation probes
timestamps only, fetches JSON just for snapshots that changed, parses
those once, and prunes departed devices. Steady-state sweeps touch no
JSON at all.

The device page shows the client id as a single-line copyable chip
right under the device name (breadcrumb shows the hostname now), and
the Identity card drops the redundant wrapped row.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-08 10:28:15 -04:00
gsadmin af73894b5f Icon reference is conditional again: docker builds lack assets/
CI / build-test (push) Successful in 11m44s
CI / images (push) Successful in 3m8s
The backend image build context has no assets directory, so the
unconditional ApplicationIcon path broke the container publish (linux
images need no exe icon anyway). Full checkouts — local and the CI
binary jobs — still embed the committed icon.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-08 10:09:34 -04:00
gsadmin 6c8016029d Defaulted admin/admin demands a new password at first sign-in
CI / build-test (push) Successful in 12m48s
CI / images (push) Successful in 1m51s
Standalone setup marks the account (INITIAL_ADMIN_MUST_CHANGE) whenever
the password was left at admin — including a literal "admin" passed via
the flag or kept in the MSI wizard. Valid credentials then return a
must-change signal with no session; the sign-in page flows into a
set-new-password form, and POST /api/auth/change-password (rate-limited,
credential-authenticated, CSRF-exempt like login) sets the password,
clears the flag and completes the sign-in in one step. The endpoint
doubles as self-service password change for any local account.

Also: platform groups now work from the moment of enrollment — the rule
field bag falls back to the device row''s OS caption/version before the
first inventory snapshot lands, so on-agent-ready triggers scoped to
platform groups can''t race the first inventory report.

Covered end to end: login returns must-change without a cookie, wrong
current password refused, the change issues a full admin session, and
re-login uses the new password cleanly.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-08 10:08:25 -04:00
gsadmin 573852cb83 Bare setup fully configures the server with admin/admin
CI / build-test (push) Successful in 11m47s
CI / images (push) Failing after 44s
No flags needed: setup writes the admin/admin sign-in by default (the
flags remain as overrides), prints the first sign-in guidance, and the
server MSI wizard matches with lowercase admin/admin defaults.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-08 09:53:34 -04:00
gsadmin 044c5e65fe Interface names in network inventory; Linux Server/Workstation groups
Adapters now report the OS interface name — NetConnectionID joined from
Win32_NetworkAdapter on Windows ("Ethernet0"), NetworkInterface.Name on
unix ("eth0"/"en0") with the hardware description kept separately. The
device Network tab titles each adapter by interface, shows a copyable
Interface row, and rules gain a network.interface field.

The unix agent also reports os.edition: Workstation when the device
boots to a graphical session (default systemd target, installed desktop
sessions as fallback; macOS always), Server otherwise — powering two
new default groups, Linux Servers and Linux Workstations, alongside the
Linux umbrella.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-08 09:53:34 -04:00
gsadmin 5ed93853e0 Docs and screenshots: editor flow, platform groups, server bootstrap
CI / build-test (push) Successful in 13m20s
CI / images (push) Failing after 48s
README covers the CIDR operators and os.platform field, the seeded
platform groups and starter cadences, triggers on scripts, the Script
Engine selector with pop-out/IntelliSense and the vertical execution
flow, the ExecuteR-Server rename with setup flags and in-code
nats-server download, the server MSI, bundled agent delivery, and the
win-arm64 addition to the CI matrix. Fresh captures: the new editor
layout, the execution flow with a live trigger, groups with the
default platform groups, starter schedules and the Functions rename.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-08 09:42:30 -04:00
gsadmin ffc2db168e Windows ARM agents and the server MSI join the CI matrix
win-arm64 joins the agent RID set (published and zipped alongside the
five existing platforms in CI and releases), and the binaries artifact
now carries Server-*.msi.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-08 09:37:29 -04:00
gsadmin 2833468cb3 Server MSI, in-code bootstrap, bundled agent delivery, ExecuteR-Server
setup now lives fully in the binary to suit every platform: it accepts
--admin-user/--admin-password (written into appsettings.json on first
run only), downloads nats-server for the current OS/architecture when
the sidecar is absent (zip/tar.gz, BCL only), and wires
AGENT_PACKAGE_PATH at the bundled agent-package directory. Bundles ship
Agent.msi + Agent.zip + VERSION next to the server, so the URL install
command works immediately instead of reporting Missing. Direct binaries
are named ExecuteR-Server(.exe); container names are unchanged. The
committed icon (assets/icons/app.ico) embeds in every build, CI
included.

New Windows installer (src/Installer.Server): harvests the whole
bundle, shows an Administrator account page (defaults Admin/Admin,
ADMINUSERNAME/ADMINPASSWORD properties for silent installs), then runs
the binary''s own `setup` and `service install` — idempotent, so
upgrades and repairs never overwrite existing configuration. Uninstall
stops and removes the service. Verified end to end: MSI carries all 169
files, setup from a bare directory downloaded the sidecar, and the
booted server answered ready (db+nats+signing), signed in Admin/Admin,
served the SPA and reported the bundled Agent.msi with version and
SHA-256.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-08 09:37:29 -04:00
gsadmin 1d719cf1a1 Keep the background schedule sweep out of test hosts
The fixture app ran the real ScheduleWorker, whose 30-second tick could
steal a due schedule between a test seeding the schedule and its
assignments — firing with zero assignments and advancing NextRunUtc, so
the test''s deterministic manual sweep found nothing due. SCHEDULE_WORKER=0
(set by the fixture) now skips registering the hosted service.

Also anchors the content root to the binary''s directory whenever a
setup-generated appsettings.json sits next to it, so the standalone
server behaves identically however it is launched — console from any
directory, SCM service, or systemd.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-08 09:37:28 -04:00
gsadmin 9ce34e2892 Script editor: vertical flow, pop-out, IntelliSense; triggers move here
The editor now owns the page: full width with a toolbar (optional
IntelliSense toggle and a pop-out that fills the window, Esc restores).
IntelliSense is a curated offline provider — common cmdlets, keywords,
automatic variables, snippets, plus the script's own parameters and
$Secrets bindings — no language server. Below the editor everything
flows vertically: an Execution card (target + Execution values, the
new name for run values), Schedules, and Triggers; group fan-out and
Output sit full width underneath so output finally has room.

Triggers belong to scripts now (run on agent ready / registration,
scoped to a group or all devices) — the card lives on the script page
and the Groups page drops its trigger section.

Engine selection is labeled Script Engine with short names
(PowerShell 7 / PowerShell 5 / Bash) and a one-line hint describing
the selected engine's platform behavior. Function modules are simply
Functions everywhere.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-08 09:10:41 -04:00
gsadmin ef7bdf4b25 Seed platform groups and starter schedules on first boot
Every deployment starts with four dynamic groups (Windows Servers,
Windows Workstations, Linux, macOS — driven by os.platform) and four
common cadences (hourly, daily 1 AM, weekdays 7 AM, weekly Sunday 2 AM,
UTC). Each family seeds only while its table is empty, so operator
edits and deletions are never recreated.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-07 23:04:50 -04:00
gsadmin 7390da71b1 Group rules: CIDR matching and a derived platform field
New in/not-in CIDR operators evaluate device IPs against comma-separated
ranges using the BCL System.Net.IPNetwork (IPv4 and IPv6; bare IPs mean
equality; host bits in the base address are normalized, so 10.20.4.99/24
matches the same network as 10.20.4.0/24). Not-in is universal across
multi-homed devices: every address must be outside.

os.platform (windows/linux/macos) derives from the OS caption so rules
and the default platform groups can target an OS family without caption
gymnastics.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-07 23:04:50 -04:00