feat: add interactive Windows installer

This commit is contained in:
2026-09-11 10:10:48 +00:00
parent 9e181b81dc
commit 6882a6808a
11 changed files with 390 additions and 20 deletions
+15
View File
@@ -17,6 +17,21 @@ layer = "unit"
status = "implemented"
tests = ["internal/config/effective_test.go:TestEffectiveConfigurationGolden_HP_CFG_09"]
[[requirements]]
id = "HP-CFG-10"
layer = "unit"
status = "implemented"
tests = ["internal/config/config_test.go:TestClientMayDisableObservabilityListener_HP_CFG_10"]
[[requirements]]
id = "HP-WINCLI-04"
layer = "unit"
status = "implemented"
tests = [
"cmd/rvbox/main_test.go:TestPackagedClientConfigUsesMinimalSafeDefaults_HP_WINCLI_04",
"cmd/rvbox/main_test.go:TestInstallerClientIDNormalizesHostnames_HP_WINCLI_05",
]
[[requirements]]
id = "HP-CTL-06"
layer = "unit"
+3 -1
View File
@@ -101,7 +101,9 @@ password_hash_from_terminal() {
password=
restore_tty=false
if [ "$password_stdin" = true ]; then
IFS= read -r password || fail "could not read password from stdin"
# Password files commonly omit a final newline. POSIX read returns
# non-zero at that EOF even after assigning the final nonempty line.
IFS= read -r password || [ -n "$password" ] || fail "could not read password from stdin"
else
[ -t 0 ] || fail "stdin is not a terminal; use --web-password-stdin"
printf 'Fixture password for %s: ' "$RDP_ACCESS_WEB_USER" >&2