Repository navigation
docs + round-6 hardening - #65
Merged
Merged
Conversation
Documents the install.sh symlink behaviour (live updates via git pull, the two seed-only files) and the new scripts/vendor/ workflow for syncing the BRCS.sh upstream into stoa-maintain.sh. https://claude.ai/code/session_01V7nHW1LpTJnNbvqtwerziV
Reapplies five small audit fixes: * stoa-firewall: validate port (1-65535) and proto (tcp|udp) before appending to whitelist or generating nft rules. * stoa-paste: feed clipboard text to wl-copy via stdin so payloads starting with "-" can't be parsed as flags. * stoa-rename: switch sed delimiter to SOH so user regex/replacement can safely contain "|". * stoa-resize: refuse to start without ImageMagick 7 (magick) on PATH instead of failing per-image. * stoa-screensaver: place lockfile under XDG_RUNTIME_DIR (falls back to /tmp) so it lives with the user session. https://claude.ai/code/session_01V7nHW1LpTJnNbvqtwerziV
Owner
Author
|
@copilot resolve the merge conflicts in this pull request |
Signed-off-by: Victor Gabriel Schneider <victor.gschneider@hotmail.com>
VictorGSchneider
marked this pull request as ready for review
April 19, 2026 23:24
VictorGSchneider
added a commit
that referenced
this pull request
May 9, 2026
## Summary **Docs** - README: blockquote under Install explaining symlink-based deployment, the stable-path requirement, and the two seed-only files (`stoa.conf`, OnlyOffice `settings.json`). - README: new "Vendored upstreams" subsection pointing at `scripts/vendor/sync-upstream.sh brcs` and the squashed-pull + diffstat workflow against the BRCS.sh fork in `scripts/stoa-maintain.sh`. **Round-6 hardening (5 small audit fixes, reapplied)** - `stoa-firewall`: validate port (1-65535) and proto (tcp|udp) before appending to whitelist or generating nft rules. - `stoa-paste`: feed clipboard text to `wl-copy` via stdin so payloads starting with `-` can't be parsed as flags. - `stoa-rename`: switch sed delimiter to SOH so user regex/replacement can safely contain `|`. - `stoa-resize`: refuse to start without ImageMagick 7 (`magick`) on PATH instead of failing per-image. - `stoa-screensaver`: place lockfile under `XDG_RUNTIME_DIR` (falls back to `/tmp`) so it lives with the user session. ## Test plan - [ ] `bash -n` passes on each touched script (verified locally). - [ ] `stoa-firewall allow 99999 tcp` and `stoa-firewall allow 80 sctp` are now rejected. - [ ] `stoa-paste` with clipboard text starting with `-n` no longer trips `wl-copy` flag parsing. - [ ] `stoa-rename` regex containing `|` no longer breaks the sed expression. - [ ] `stoa-resize` exits cleanly with notification when `magick` is absent. - [ ] README renders correctly on GitHub. https://claude.ai/code/session_01V7nHW1LpTJnNbvqtwerziV
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Docs
stable-path requirement, and the two seed-only files (
stoa.conf,OnlyOffice
settings.json).scripts/vendor/sync-upstream.sh brcsand the squashed-pull + diffstatworkflow against the BRCS.sh fork in
scripts/stoa-maintain.sh.Round-6 hardening (5 small audit fixes, reapplied)
stoa-firewall: validate port (1-65535) and proto (tcp|udp) beforeappending to whitelist or generating nft rules.
stoa-paste: feed clipboard text towl-copyvia stdin so payloadsstarting with
-can't be parsed as flags.stoa-rename: switch sed delimiter to SOH so user regex/replacementcan safely contain
|.stoa-resize: refuse to start without ImageMagick 7 (magick) on PATHinstead of failing per-image.
stoa-screensaver: place lockfile underXDG_RUNTIME_DIR(falls backto
/tmp) so it lives with the user session.Test plan
bash -npasses on each touched script (verified locally).stoa-firewall allow 99999 tcpandstoa-firewall allow 80 sctpare now rejected.stoa-pastewith clipboard text starting with-nno longer tripswl-copyflag parsing.stoa-renameregex containing|no longer breaks the sed expression.stoa-resizeexits cleanly with notification whenmagickis absent.https://claude.ai/code/session_01V7nHW1LpTJnNbvqtwerziV