fleet/orbit/cmd
Scott Gress 6b83474afe
Fix how Orbit opens browser window for end-user auth (#35877)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #31924

# Details

This fixes an unreleased issue that caused Orbit to silently fail to
open a browser window on Windows. This was originally tested by running
Orbit from source on Windows, which did not reproduce the issue because
I was running it as the logged-in user rather than as the administrator.
The fix is to use existing code in the main Orbit code to open the
browser window using the `execUser` package, rather than using the
`open` package which doesn't attempt to run as the GUI user.

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

## Testing

- [X] QA'd all new/changed functionality manually

Tested on both Windows and Linux using TUF-installed packages, verified
that the SSO window opens as expected when end-user auth is turned on
and user is not logged in, and that setup experience window opens as
expected after SSO is complete, and that it opens when SSO is not
needed.

For unreleased bug fixes in a release candidate, one of:

- [X] Confirmed that the fix is not expected to adversely impact load
test results
2025-11-18 09:42:29 -06:00
..
desktop Update golangci-lint to v2.4.0 (#33251) 2025-09-22 13:17:11 -05:00
fetch_cert TPM-backed HTTP Message Signature certificate request client (#35283) 2025-11-07 10:27:15 -05:00
fleetd_tables Update releasing-fleet (#34937) 2025-10-30 11:11:37 -05:00
orbit Fix how Orbit opens browser window for end-user auth (#35877) 2025-11-18 09:42:29 -06:00