Skip to content

feat(windows): automatic startup and recoverable BF-hosted updates - #37

Merged
mrinc merged 8 commits into
masterfrom
fix/windows-startup
Sep 26, 2026
Merged

mrinc merged 8 commits into
masterfrom
fix/windows-startup

Conversation

@bcbetterninja

@bcbetterninja bcbetterninja commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Windows installs now start the desktop app at sign-in and install an automatic LocalSystem updater service. The desktop launches without a console and prevents duplicate agents in the same session. MSI repair, upgrades and removal own the startup entry and service.

Windows release builds embed the publisher key, sign the MSI, and upload immutable bytes to BF before publishing the GitHub asset. Devices check and download only from their configured BF origin, reject redirects, and verify signature, hash, size, product, platform and version before execution.

The updater runs independently of enrollment and the desktop. It persists maintenance windows, IANA timezone, channel and pin; failed authentication can recover through BF public endpoints using that saved policy. Authenticated admin pushes are version/policy-bound and expire. Public responses cannot bypass the window. Cancellation invalidates cached policy, and rate limiting defers downloads without consuming installation attempts.

Before replacement, the service retains a verified full installer for the installed version. A separate worker installs silently, probes both executables and waits for local display health. Failed candidates roll back; a durable journal recovers interrupted transactions. Retries are bounded and the service survives installer failure. The archived delivery design is now tracked in docs/release-delivery.md; deployment and recovery details are in docs/windows-updates.md.

Validation: validate run 36209161574 passed on c08773a. This includes native Windows workspace tests, full MSI install/startup/service/repair/uninstall checks, and SYSTEM-service recovery after missing enrollment, rejected authentication, a broken candidate and an interrupted transaction. Server (154 PostgreSQL-backed tests), Linux client, deployment and ioBOX checks also passed. The publication gate was exercised with simulated acknowledgments: valid storage acknowledgment succeeds; redirects, wrong checksums and missing release IDs fail. The separate Android workflow, including Android 16 smoke tests, also passed. The release-only clean-host job and production publication/deployment have not been run.

Deployment requires the server migration/proxy configuration and an initial updater-enabled MSI installation. Current and previous signed Windows releases must be retained on BF. This PR does not configure automatic Windows logon, deploy the server, or publish a release.

@coderabbitai

coderabbitai Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 0387930f-3acf-4dd2-b2af-2905fda8c75d


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@socket-security

socket-security Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedcargo/​chrono-tz@​0.10.47210093100100

View full report

@bcbetterninja bcbetterninja changed the title fix(windows): start the desktop app automatically after sign-in feat(windows): automatic startup and recoverable BF-hosted updates Sep 26, 2026
@bcbetterninja
bcbetterninja marked this pull request as ready for review September 26, 2026 02:54
@mrinc
mrinc merged commit 794138a into master Sep 26, 2026
11 checks passed
@mrinc
mrinc deleted the fix/windows-startup branch September 26, 2026 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants