mirror of
https://github.com/UNITRONIX/BetterDesk.git
synced 2026-10-25 14:00:53 +00:00
abc00b8804
Bind guest WebSocket sessions to a single target peer, enforce grant lifecycle and atomic usage, add the guest issuer scope, and document the password-less security boundary.\n\nRefs #440\n\nThanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow)
21 lines
456 B
PowerShell
21 lines
456 B
PowerShell
param(
|
|
[switch]$DryRun,
|
|
[switch]$PreflightOnly,
|
|
[string]$ReportDir
|
|
)
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
$repoRoot = Split-Path -Parent $PSScriptRoot
|
|
Set-Location -LiteralPath $repoRoot
|
|
|
|
$arguments = @("scripts/local-gate.js")
|
|
if ($DryRun) { $arguments += "--dry-run" }
|
|
if ($PreflightOnly) { $arguments += "--preflight-only" }
|
|
if ($ReportDir) {
|
|
$arguments += "--report-dir"
|
|
$arguments += $ReportDir
|
|
}
|
|
|
|
& node @arguments
|
|
exit $LASTEXITCODE
|