Skip to content

Have the installers offer unpaired access, enabled by default - #123

Merged
chrisuthe merged 4 commits into
mainfrom
chrisuthe/task/have-the-installers-offer-unpaired-access-enabled
Nov 19, 2026
Merged

chrisuthe merged 4 commits into
mainfrom
chrisuthe/task/have-the-installers-offer-unpaired-access-enabled

Conversation

@chrisuthe

Copy link
Copy Markdown
Member

With Sendspin/spec#361 every dynamic pairing needs a gesture on the player's host, so the get-started installers now ask whether to let any server play without pairing, defaulting to yes. The binary's own default (allow-unpaired = false) is unchanged.

What changes

  • get_started_linux.sh: new --allow-unpaired / --no-allow-unpaired (passing both fails). A fresh interactive install asks Let any server on your network play here without pairing first? [Y/n] after the name and output questions and writes allow-unpaired = true|false in place of the example's commented line. --yes on a host with no config writes true.
  • get_started_windows.ps1: the same, with -AllowUnpaired / -NoAllowUnpaired / -Yes.
  • A config that already sets allow-unpaired is never asked about or changed (a passed flag prints a note:), and upgrading a configured host asks nothing. The non-systemd Linux path and the macOS pkg are untouched.
  • Docs: Getting-Started-on-Linux, Getting-Started-on-Windows, Pairing-a-Player, Advanced-Usage and the example config describe the question, the flags, the --yes default and how to turn it off. The Linux installer is documented in Getting-Started-on-Linux, not Installation, so that page got the change.
  • CI: the trixie installer job stubs systemctl/systemd-sysusers so the systemd path runs, then asserts --yes writes true, a flag against a config that sets the key is ignored, --no-allow-unpaired writes false, and contradicting flags fail.

Compatibility

Nothing breaks for CLI users: no flag, config key, protocol or default of the binary changes. Visible behaviour change: new installs through the get-started scripts now allow unpaired servers to play unless the user answers no or passes --no-allow-unpaired / -NoAllowUnpaired. That includes unattended --yes / -Yes installs on a host with no config. Existing configs are left as they are.

Testing

  • shellcheck clean.
  • The new CI block and the interactive paths (Enter means yes, an unrecognised answer is asked again, n means false, a configured host is left alone) were run in a Debian trixie container against a stub payload.
  • The unit suite passes (611/611).
  • The Windows script was reviewed but not run: there is no Windows installer CI job.

@chrisuthe
chrisuthe marked this pull request as ready for review November 19, 2026 19:35
@chrisuthe
chrisuthe requested an adaptive review from Copilot November 19, 2026 19:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Interactive installs using output flags skip the unpaired-access choice on Linux and Windows, while the CI assertion can pass without confirming contradictory flags were rejected.

3 open issues
What changed in this PR

Adds a default-yes unpaired-access choice to the Linux systemd and Windows get-started installers, while leaving the binary’s default unchanged and preserving existing settings.

Changes:

  • Adds mutually exclusive access flags, an interactive prompt, and a fresh-install default for unattended setup.
  • Updates installer guidance and pairing documentation.
  • Extends Debian installer CI to check configuration defaults, preservation, and conflicting flags.
File Description
scripts/​get_started_windows.ps1 Adds access switches, prompting, config writing, and completion guidance.
scripts/​get_started_linux.sh Adds equivalent access options for systemd setup.
packaging/​sendspin-cli.conf.example Explains binary and installer defaults.
docs/​wiki/​Pairing-a-Player.md Notes the installers’ unpaired-access default.
docs/​wiki/​Getting-Started-on-Windows.md Documents the prompt, switches, and unattended behavior.
docs/​wiki/​Getting-Started-on-Linux.md Documents the prompt, flags, and unattended behavior.
docs/​wiki/​Advanced-Usage.md Explains the installer default and how to require pairing again.
.github/​workflows/​build.yml Adds systemd stand-ins and installer configuration assertions.

Review effort: Max (adaptive)

Comment thread .github/workflows/build.yml Resolved
Comment thread scripts/get_started_linux.sh Resolved
Comment thread scripts/get_started_windows.ps1 Resolved
@chrisuthe
chrisuthe merged commit 6868e5b into main Nov 19, 2026
38 of 40 checks passed
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