Skip to content

docs + round-6 hardening - #65

Merged
VictorGSchneider merged 3 commits into
mainfrom
claude/debug-and-analyze-RDX58
Apr 19, 2026
Merged

VictorGSchneider merged 3 commits into
mainfrom
claude/debug-and-analyze-RDX58

Conversation

@VictorGSchneider

@VictorGSchneider VictorGSchneider commented Apr 19, 2026 •

Copy link
Copy Markdown
Owner

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

claude added 2 commits April 19, 2026 23:10
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
@VictorGSchneider VictorGSchneider changed the title docs: symlink deployment + vendored upstreams docs + round-6 hardening Apr 19, 2026
@VictorGSchneider

Copy link
Copy Markdown
Owner Author

@copilot resolve the merge conflicts in this pull request

@VictorGSchneider VictorGSchneider self-assigned this Apr 19, 2026
Signed-off-by: Victor Gabriel Schneider <victor.gschneider@hotmail.com>
@VictorGSchneider
VictorGSchneider marked this pull request as ready for review April 19, 2026 23:24
@VictorGSchneider
VictorGSchneider merged commit 65f5a2f into main Apr 19, 2026
1 check passed
@VictorGSchneider
VictorGSchneider deleted the claude/debug-and-analyze-RDX58 branch 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
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