Harden commands, plugin install and data paths #1

Open
Bonchellon wants to merge 1 commits from fix/review-hardening into main
Owner

Summary

  • Limits the terminal, build, relay and open-file commands.
  • Verifies a signed plugin registry, pins plugin files by hash, asks before installing, and keeps new plugins off until accepted.
  • Stops embedding an API key in the binary. AI features need a key in the app config dir.
  • Removes remote shelve from the client.
  • Keeps open work safe in folder delete, unshelve and partial submit, and asks before accepting one side of a conflict.
  • Adds Check Out in the file tree, shows +l files as held, and adds admin unlock.
  • Runs p4 with a time limit, reads stderr on its own thread, handles non-UTF-8 lines, cancels while p4 is silent, and batches long file lists.

Before merging

Nothing here has been compiled or run. It was edited through the Gitea API without a checkout, with syntax checks only.

  • npm run build and cargo check
  • Partial submit, and submit with files in numbered changelists
  • Folder delete with open files, with only unversioned files, and on an empty folder
  • Unreal build and launch, including paths with spaces
  • Plugin catalog install (needs WebView2 137+ for Ed25519)
  • Terminal: normal commands work, refused ones explain why

Behaviour changes

  • Relay URLs must be private IPv4 addresses or localhost, and redirects aren't followed.
  • The terminal refuses global flags (except -ztag, -Mj, -s, -e), print -o, and a short list of commands, including set even for reading.
  • Plugins with defaultEnabled no longer start on their own after upgrading. Turn them on once in Plugins.
  • Folder delete is refused while files under it are open.
  • Blocking p4 calls stop after 15 minutes.

🤖 Generated with Claude Code

## Summary - Limits the terminal, build, relay and open-file commands. - Verifies a signed plugin registry, pins plugin files by hash, asks before installing, and keeps new plugins off until accepted. - Stops embedding an API key in the binary. AI features need a key in the app config dir. - Removes remote shelve from the client. - Keeps open work safe in folder delete, unshelve and partial submit, and asks before accepting one side of a conflict. - Adds Check Out in the file tree, shows +l files as held, and adds admin unlock. - Runs p4 with a time limit, reads stderr on its own thread, handles non-UTF-8 lines, cancels while p4 is silent, and batches long file lists. ## Before merging Nothing here has been compiled or run. It was edited through the Gitea API without a checkout, with syntax checks only. - [ ] `npm run build` and `cargo check` - [ ] Partial submit, and submit with files in numbered changelists - [ ] Folder delete with open files, with only unversioned files, and on an empty folder - [ ] Unreal build and launch, including paths with spaces - [ ] Plugin catalog install (needs WebView2 137+ for Ed25519) - [ ] Terminal: normal commands work, refused ones explain why ## Behaviour changes - Relay URLs must be private IPv4 addresses or localhost, and redirects aren't followed. - The terminal refuses global flags (except `-ztag`, `-Mj`, `-s`, `-e`), `print -o`, and a short list of commands, including `set` even for reading. - Plugins with `defaultEnabled` no longer start on their own after upgrading. Turn them on once in Plugins. - Folder delete is refused while files under it are open. - Blocking p4 calls stop after 15 minutes. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Bonchellon added 1 commit 2026-11-02 00:48:07 +03:00
- Limit the terminal, build, relay and shell-open commands
- Verify a signed plugin registry and pin plugin files by hash
- Stop baking an API key into the binary; remove remote shelve
- Keep open work on folder delete, unshelve and partial submit
- Add Check Out, +l visibility and admin unlock
- Run p4 with timeouts, threaded stderr, non-UTF-8 lines and batches

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin fix/review-hardening:fix/review-hardening
git checkout fix/review-hardening
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ExbytePublicServices/exbyte-depot-viewer-perforce#1
No description provided.