Repository navigation
Community feedback: safer saves download, shadow-stamp env mode, maintenance mode, release prep #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
1858394
community feedback: safer saves download, shadow-stamp env mode, main…
seslly 954acb2
entrypoint: fix shellcheck SC2034 + shadow-stamp preserves skip marker
seslly c5ff4a3
entrypoint: first-boot shadow-stamp treats live as operator-owned
seslly 791d349
community feedback follow-ups: world-name shadow-stamp + review nits
seslly 20446ab
entrypoint: skip SteamCMD when binary is already patched
seslly 3693a3e
Revert "entrypoint: skip SteamCMD when binary is already patched"
seslly 438a24b
entrypoint: idle-CPU patch uses a sibling .patched.exe instead of in-…
seslly 3f7e43f
entrypoint: migrate from in-place patch to sibling on first boot
seslly 6aaf856
entrypoint: drop upgrade revert; --idempotent handles it on the sibling
seslly eb782f3
entrypoint: tag-kill stale wine processes from prior boot
seslly cb30d27
shellcheck SC2155 + install.sh try-restart on re-run
seslly 32c3c28
backups: age-based retention, pinned prefix, safety guards + test har…
seslly 99a2305
ci fixes: shellcheck SC2034 + fake_stat kwarg compat
seslly a6f6f64
ui server: guard is_dir() calls against Python 3.13 OSError propagation
seslly d5b469a
tests: add restore round-trip + HTTP integration coverage
seslly 7e60241
backups: auto-backup scheduler + Default_Backups tab + admin config
seslly 16d3c91
refactor: flatten to /server.py + /ui + /tests
seslly b14bfcd
dockerignore: whitelist server.py + ui/ for flat layout
seslly 9e8ffa2
server control: polkit rule + systemctl-backed stop/start/restart
seslly 0543ace
direct ip: expose UseDirectConnection + friends across all surfaces
seslly 739df0b
docs: add Recover Your World section
seslly 8ae3f9b
install.sh: fix env merge silently wiping operator secrets on re-run
seslly 8032db6
net tick rate: Engine.ini reconciler makes NET_SERVER_MAX_TICK_RATE a…
seslly c343e85
backups: full-backup download + upload endpoints (server migration)
seslly 41459d1
ui: sort backups chronologically + responsive layout
seslly 1e2b4b0
codex review fixes: shadow-stamp, set -u, maintenance bool
seslly File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| // /etc/polkit-1/rules.d/50-windrose.rules | ||
| // | ||
| // Narrowly grants the 'steam' user start/stop/restart on the windrose-* | ||
| // systemd units via systemctl, without requiring sudo or a password prompt. | ||
| // Installed by bare-linux/install.sh. | ||
| // | ||
| // Scope of this rule — intentionally tight: | ||
| // - Subject: user must be literally 'steam' (the system account the | ||
| // admin UI runs as). Root and other users are unaffected. | ||
| // - Action: only org.freedesktop.systemd1.manage-units (systemctl | ||
| // start/stop/restart/reload variants), NOT manage-unit-files (which | ||
| // would allow enable/disable/mask/daemon-reload — privileged). | ||
| // - Unit: only the three windrose-* unit names that install.sh writes. | ||
| // Any other unit (ssh.service, docker.service, etc.) falls through | ||
| // to polkit's default "ask for auth" policy. | ||
| // | ||
| // If you rename any of the units (see WINDROSE_UNIT_NAME env in | ||
| // server.py), update this list to match, or the systemctl dispatch path | ||
| // will silently fall back to the SIGTERM-based stop in server.py. | ||
| polkit.addRule(function(action, subject) { | ||
| if (action.id !== "org.freedesktop.systemd1.manage-units") { | ||
| return undefined; | ||
| } | ||
| if (subject.user !== "steam") { | ||
| return undefined; | ||
| } | ||
| var unit = action.lookup("unit") || ""; | ||
| var allowed_units = { | ||
| "windrose-game.service": true, | ||
| "windrose-xvfb.service": true, | ||
| "windrose-ui.service": true, | ||
| }; | ||
| if (!allowed_units[unit]) { | ||
| return undefined; | ||
| } | ||
| var verb = action.lookup("verb") || ""; | ||
| if (verb === "start" || verb === "stop" || verb === "restart" || | ||
| verb === "reload" || verb === "reload-or-restart") { | ||
| return polkit.Result.YES; | ||
| } | ||
| return undefined; | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On a fresh bare-linux install (no existing env file and no CLI overrides), this expansion only writes defaults into the generated env file; it does not assign shell variables in-process. Because the script runs with
set -u, later status output that dereferences${UI_BIND}/${UI_PORT}aborts with an unbound-variable error, causinginstall.shto exit non-zero after doing the install work.Useful? React with 👍 / 👎.