ostp/ostp-gui/src-tauri
ospab 732d0bf5ae fix(installer): grant users permission to start the helper task
The task was registered correctly and pointed at the right binary — the app's
own log confirmed the match — but starting it failed:

  run: schtasks /Run failed (Some(1)):  ERROR: Access is denied.
  falling back to a direct elevated launch — this is the consent prompt

Registering a task and being allowed to start one are separate things, and I
had conflated them. The principal (BUILTIN\Users by SID, HighestAvailable)
decides who the task runs AS. Who may START it comes from the task's security
descriptor, and a task created by an elevated installer defaults to granting
execution to Administrators only. So the unprivileged GUI was refused and fell
back to prompting on every connect, exactly as before the installer existed.

This also explains why manual testing said the opposite: running the task by
hand happened from an elevated console, where it works, which pointed suspicion
at the app for several rounds.

Register-ScheduledTask cannot set a descriptor, so the hook now follows the
registration with a SetSecurityDescriptor call through the Task Scheduler COM
object: GA for Administrators and SYSTEM, GR+GX for BUILTIN\Users. A failure
there is reported on its own rather than being folded into the success message,
since the task would otherwise look registered while remaining unusable.
2026-08-11 23:28:36 +03:00
..
capabilities fix: declare and grant custom Tauri v2 command permissions for GUI 2026-05-17 18:59:44 +03:00
icons feat(icons): apply logo_new.png to all apps and watermarks 2026-07-11 00:58:44 +03:00
permissions Remove stealth_port entirely and integrate fallback into UoT HTTP handler 2026-06-10 02:26:13 +03:00
src fix(gui): relax the helper-task check, and make its decision observable 2026-08-11 21:33:05 +03:00
windows fix(installer): grant users permission to start the helper task 2026-08-11 23:28:36 +03:00
.gitignore feat(gui): add fully native tauri windows gui with premium mobile layout, real-time statistics polling, in-app config editor, and graceful exit cleanup 2026-05-15 22:01:20 +03:00
Cargo.lock chore: release v0.4.5-beta.1 on beta 2026-08-11 16:54:34 +03:00
Cargo.toml chore: release v0.4.5-beta.1 on beta 2026-08-11 16:54:34 +03:00
build.rs feat(gui): privileged TUN helper architecture - GUI runs unprivileged, UAC prompt shown only for TUN mode via ostp-tun-helper.exe IPC 2026-05-15 23:08:14 +03:00
tauri.conf.json chore: release v0.4.5-beta.1 on beta 2026-08-11 16:54:34 +03:00
tauri.installer.conf.json fix(gui): confine the installer's sidecar to the installer build 2026-08-11 16:54:11 +03:00