mcp-ssh-manager 3.8.7 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +5 -0
- package/.gitattributes +5 -0
- package/CHANGELOG.md +371 -6
- package/CLAUDE.md +6 -0
- package/CODE_OF_CONDUCT.md +18 -0
- package/CONTRIBUTING.md +30 -0
- package/Formula/ssh-manager.rb +60 -0
- package/README.md +484 -964
- package/ROADMAP-V4.md +451 -0
- package/brand/README.md +43 -0
- package/brand/icon.svg +32 -0
- package/brand/mark.svg +18 -0
- package/brand/wordmark.svg +30 -0
- package/cli/app.js +230 -0
- package/cli/control.js +116 -0
- package/cli/lib/colors.sh +15 -0
- package/cli/lib/menu.sh +145 -96
- package/cli/portability.js +186 -0
- package/cli/ssh-manager +197 -91
- package/cli/ssh-manager.js +14 -0
- package/cli/style.js +17 -0
- package/cli/vault.js +411 -0
- package/desktop/ControlPlaneApp.swift +219 -0
- package/desktop/build.sh +58 -0
- package/desktop/electron/after-pack.cjs +39 -0
- package/desktop/electron/electron-builder.yml +148 -0
- package/desktop/electron/finalize-artifacts.mjs +83 -0
- package/desktop/electron/main.js +815 -0
- package/desktop/electron/package-lock.json +3656 -0
- package/desktop/electron/package.json +30 -0
- package/desktop/electron/prepare-engine.mjs +84 -0
- package/desktop/electron/resources/entitlements.mac.plist +22 -0
- package/desktop/electron/resources/icon.png +0 -0
- package/desktop/electron/resources/trayTemplate.png +0 -0
- package/desktop/electron/resources/trayTemplate@2x.png +0 -0
- package/desktop/electron/smoke-test.mjs +184 -0
- package/dist/ui/app.css +1 -0
- package/dist/ui/app.js +501 -0
- package/dist/ui/assets/Forum-Regular.woff2 +0 -0
- package/dist/ui/assets/JetBrainsMono-Bold.woff2 +0 -0
- package/dist/ui/assets/JetBrainsMono-Regular.woff2 +0 -0
- package/dist/ui/assets/Karla-Variable.woff2 +0 -0
- package/dist/ui/index.html +16 -0
- package/docs/DISTRIBUTION.md +136 -0
- package/docs/FINAL-TEST-V4.md +209 -0
- package/docs/MIGRATION.md +334 -0
- package/docs/TESTING-V4.md +119 -0
- package/docs/superpowers/specs/2026-10-08-desktop-from-npm-and-cli-design.md +187 -0
- package/docs/videos/control-plane.mp4 +0 -0
- package/package.json +61 -30
- package/scripts/build-interface.mjs +73 -0
- package/scripts/capture-screenshots.mjs +191 -0
- package/scripts/demo-env.mjs +461 -0
- package/scripts/frame-screenshots.py +176 -0
- package/scripts/macbook-mockup.py +296 -0
- package/scripts/make-tray-icon.py +61 -0
- package/scripts/preview-candidate.mjs +291 -0
- package/scripts/publish-desktop.mjs +46 -0
- package/scripts/record-demo.mjs +229 -0
- package/scripts/release-version.mjs +32 -0
- package/scripts/render-cli-menu.py +157 -0
- package/scripts/requirements-dev.in +12 -0
- package/scripts/requirements-dev.txt +424 -0
- package/scripts/run-ui-regression.mjs +48 -0
- package/scripts/setup-hooks.sh +7 -13
- package/scripts/smoke-desktop.mjs +80 -0
- package/scripts/test-drag-and-drop.mjs +114 -0
- package/scripts/test-first-run.mjs +5 -0
- package/scripts/test-import-ui.mjs +5 -0
- package/scripts/test-preferences-persist.mjs +5 -0
- package/scripts/test-upgrade-from-published.mjs +226 -0
- package/scripts/verify-mac-build.sh +153 -0
- package/scripts/verify-windows-build.ps1 +15 -0
- package/server.json +3 -3
- package/skills/README.md +42 -0
- package/skills/ssh-incident/SKILL.md +55 -0
- package/skills/ssh-operations/SKILL.md +62 -0
- package/skills/ssh-restricted/SKILL.md +57 -0
- package/src/agent-clients.js +482 -0
- package/src/approval.js +291 -0
- package/src/audit.js +11 -1
- package/src/command-log.js +162 -0
- package/src/config-loader.js +119 -4
- package/src/config-paths.js +101 -0
- package/src/control-plane.js +2730 -0
- package/src/desktop-install.js +747 -0
- package/src/index.js +179 -213
- package/src/live-stream.js +261 -0
- package/src/saved-commands.js +150 -0
- package/src/secret-store.js +573 -0
- package/src/server-aliases.js +8 -7
- package/src/server-config-manager.js +33 -7
- package/src/server-export.js +106 -0
- package/src/server-groups.js +82 -21
- package/src/server-import.js +477 -0
- package/src/shell-quote.js +9 -2
- package/src/ssh-connection.js +155 -0
- package/src/ssh-manager.js +186 -13
- package/src/tunnel-manager.js +79 -0
- package/src/vault-recovery.js +206 -0
- package/src/xlsx.js +322 -0
- package/docs/images/social-preview.png +0 -0
- package/docs/images/social-preview@2x.png +0 -0
- package/docs/images/ssh-manager-cli-menu.png +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<!-- Inlined: the browser requests a favicon without the token, which the
|
|
7
|
+
control plane refuses. A data URI costs no request at all. -->
|
|
8
|
+
<link rel="icon" href="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiByb2xlPSJpbWciIGFyaWEtbGFiZWw9IlNTSCBNYW5hZ2VyIj48dGl0bGU+U1NIIE1hbmFnZXI8L3RpdGxlPjxyZWN0IHdpZHRoPSI1MTIiIGhlaWdodD0iNTEyIiByeD0iMTE0IiBmaWxsPSIjMDkwOTA5Ii8+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM1IDE5KSI+PHBhdGggZD0iTTExMiAxNjQgTDIwMCAyNDAgTDExMiAzMTYiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2MwNDUwMCIgc3Ryb2tlLXdpZHRoPSIzNCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PHBhdGggZD0iTTIyOCAzMTYgTDMxOCAzMTYiIHN0cm9rZT0iI2ZjZmNmYyIgc3Ryb2tlLXdpZHRoPSIzMCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzE4IDEzNikgc2NhbGUoNS44KSIgZmlsbD0iI2ZjZmNmYyI+PHBhdGggZD0iTTE0LjIxNywxOS43MDdsLTEuMTEyLDIuNTQ3Yy0wLjQyNywwLjk3OS0xLjc4MiwwLjk3OS0yLjIxLDBsLTEuMTEyLTIuNTQ3Yy0wLjk5LTIuMjY3LTIuNzcxLTQuMDcxLTQuOTkzLTUuMDU3IEwxLjczLDEzLjI5MmMtMC45NzMtMC40MzItMC45NzMtMS44NDgsMC0yLjI4bDIuOTY1LTEuMzE2QzYuOTc0LDguNjg0LDguNzg3LDYuODEzLDkuNzYsNC40N2wxLjEyNi0yLjcxNCBjMC40MTgtMS4wMDcsMS44MS0xLjAwNywyLjIyOCwwTDE0LjI0LDQuNDdjMC45NzMsMi4zNDQsMi43ODYsNC4yMTUsNS4wNjUsNS4yMjZsMi45NjUsMS4zMTZjMC45NzMsMC40MzIsMC45NzMsMS44NDgsMCwyLjI4IGwtMy4wNjEsMS4zNTlDMTYuOTg4LDE1LjYzNywxNS4yMDYsMTcuNDQxLDE0LjIxNywxOS43MDd6Ii8+PHBhdGggZD0iTTI0LjQ4MSwyNy43OTZsLTAuMzM5LDAuNzc3Yy0wLjI0OCwwLjU2OS0xLjAzNiwwLjU2OS0xLjI4NCwwbC0wLjMzOS0wLjc3N2MtMC42MDQtMS4zODUtMS42OTMtMi40ODgtMy4wNTEtMy4wOTIgbC0xLjA0NC0wLjQ2NGMtMC41NjUtMC4yNTEtMC41NjUtMS4wNzIsMC0xLjMyM2wwLjk4Ni0wLjQzOGMxLjM5My0wLjYxOSwyLjUwMS0xLjc2MywzLjA5NS0zLjE5NWwwLjM0OC0wLjg0IGMwLjI0My0wLjU4NSwxLjA1Mi0wLjU4NSwxLjI5NCwwbDAuMzQ4LDAuODRjMC41OTQsMS40MzIsMS43MDIsMi41NzYsMy4wOTUsMy4xOTVsMC45ODYsMC40MzhjMC41NjUsMC4yNTEsMC41NjUsMS4wNzIsMCwxLjMyMyBsLTEuMDQ0LDAuNDY0QzI2LjE3NCwyNS4zMDgsMjUuMDg1LDI2LjQxMSwyNC40ODEsMjcuNzk2eiIvPjwvZz48L2c+PC9zdmc+" />
|
|
9
|
+
<title>SSH Manager</title>
|
|
10
|
+
<script type="module" crossorigin src="./app.js"></script>
|
|
11
|
+
<link rel="stylesheet" crossorigin href="./app.css">
|
|
12
|
+
</head>
|
|
13
|
+
<body>
|
|
14
|
+
<div id="root"></div>
|
|
15
|
+
</body>
|
|
16
|
+
</html>
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
# Releasing SSH Manager
|
|
2
|
+
|
|
3
|
+
The npm engine remains compatible with Node 18+. Build the interface and desktop
|
|
4
|
+
applications with **Node 24**: Electron 44's build tools require Node 22.12 or newer.
|
|
5
|
+
The desktop release workflow builds macOS arm64/x64, Windows x64/arm64 (one NSIS
|
|
6
|
+
installer), and Linux x64 (AppImage and deb). Linux desktop support must pass its
|
|
7
|
+
first complete CI rehearsal before it is announced as available.
|
|
8
|
+
|
|
9
|
+
Linux CI installs the generated `.deb` and smoke-tests the installed application
|
|
10
|
+
as an unprivileged user under Xvfb. Its post-install configures the application’s
|
|
11
|
+
AppArmor profile and Chromium sandbox permissions. AppImage startup is a
|
|
12
|
+
separate check: on systems with restricted user namespaces, including Ubuntu
|
|
13
|
+
24.04+, use the `.deb` candidate first. See the [AppImage sandboxing
|
|
14
|
+
requirements](https://docs.appimage.org/user-guide/troubleshooting/electron-sandboxing.html).
|
|
15
|
+
A launch with `--no-sandbox` or weakened global kernel policy is not a passing
|
|
16
|
+
release check.
|
|
17
|
+
|
|
18
|
+
## Release gates
|
|
19
|
+
|
|
20
|
+
1. Merge the release changes through a pull request. Keep the existing required
|
|
21
|
+
`lint`, `test (18.x)` and `test (20.x)` checks; also require the interface jobs
|
|
22
|
+
before release. They build/typecheck the UI into the generated
|
|
23
|
+
`dist/ui` (and check nothing generated is tracked), run browser flows, and exercise an upgrade from the real npm 3.8.5.
|
|
24
|
+
2. Update root/desktop package manifests and lockfiles, plus both version fields
|
|
25
|
+
in `server.json`. `scripts/release-version.mjs` checks their agreement.
|
|
26
|
+
3. For a candidate, use a version such as `4.0.0-beta.1` and its exact
|
|
27
|
+
`v4.0.0-beta.1` tag. **`alpha` or `beta`, never `rc`**: electron-updater lets
|
|
28
|
+
an alpha or beta build take the newest release, stable included, but treats
|
|
29
|
+
any other name as a custom channel that only follows its own kind — everyone
|
|
30
|
+
who installed an `rc` would stay on it after the stable shipped.
|
|
31
|
+
`finalize-artifacts.mjs` refuses any other name for a desktop build. `release.yml` publishes with npm provenance to **next**, creates a draft
|
|
32
|
+
prerelease on GitHub, and leaves stable Homebrew and npm `latest` alone.
|
|
33
|
+
4. Run **Release desktop apps** with `publish: false` against the candidate.
|
|
34
|
+
Install the artifacts on clean machines and verify imports, old configuration,
|
|
35
|
+
approvals, terminal, transfers, groups and persistence after restart. The CI
|
|
36
|
+
smoke launches the packaged application with an isolated home, renders its
|
|
37
|
+
real interface, writes a group outside the application, and runs a native PTY.
|
|
38
|
+
5. Verify an actual desktop update from an earlier installed candidate. A build
|
|
39
|
+
or a download test alone does not prove quit/install/restart works. Confirm
|
|
40
|
+
servers, vault, saved commands and groups survive. Stable clients must not be
|
|
41
|
+
offered a candidate release.
|
|
42
|
+
6. Publish the desktop workflow against the **exact version tag** only when all
|
|
43
|
+
candidates pass. It builds without upload credentials, signs, notarizes and
|
|
44
|
+
staples, smoke tests, verifies signatures, regenerates final metadata and DMG
|
|
45
|
+
blockmaps, and uploads validated CI artifacts. A separate job waits for every
|
|
46
|
+
platform, verifies SHA256 manifests, uploads to the draft, then makes the
|
|
47
|
+
release public. An already public release cannot have its installers replaced;
|
|
48
|
+
use a new version.
|
|
49
|
+
7. For stable, repeat with `4.0.0`/`v4.0.0`. Apply the `homebrew-update` artifact
|
|
50
|
+
from the npm release as a pull request and run the formula workflow before
|
|
51
|
+
merging. The release workflow never pushes an unchecked commit onto `main`.
|
|
52
|
+
Publish `server.json` to the MCP Registry from the same tag only after npm is
|
|
53
|
+
available. Finally check npm dist-tags, GitHub assets/updater feeds, Homebrew
|
|
54
|
+
version and Registry version from a fresh machine. The Registry workflow skips
|
|
55
|
+
prereleases so a candidate cannot replace its stable listing.
|
|
56
|
+
|
|
57
|
+
The npm publish and desktop build are separate operations. If a desktop gate
|
|
58
|
+
fails after npm publication, npm may already be available but GitHub remains a
|
|
59
|
+
draft. Fix and re-run against the same unchanged tag, or issue a new version when
|
|
60
|
+
code changes; do not move a published version tag.
|
|
61
|
+
|
|
62
|
+
## macOS signing and notarization
|
|
63
|
+
|
|
64
|
+
The application is Electron; no Xcode project is involved. A Developer ID
|
|
65
|
+
Application certificate signs the app. Xcode command line tools provide
|
|
66
|
+
`codesign`, `notarytool` and `stapler`.
|
|
67
|
+
|
|
68
|
+
GitHub Actions uses the maintainer's existing secrets:
|
|
69
|
+
|
|
70
|
+
- `MAC_CERT_P12`: base64 encoded Developer ID certificate and private key.
|
|
71
|
+
- `MAC_CERT_PASSWORD`: its password.
|
|
72
|
+
- `APPLE_API_KEY`: base64 encoded App Store Connect `.p8` key.
|
|
73
|
+
- `APPLE_API_KEY_ID` and `APPLE_API_ISSUER`: the matching key and issuer IDs.
|
|
74
|
+
|
|
75
|
+
Never commit these files or values. The workflow imports the certificate into an
|
|
76
|
+
isolated runner keychain and removes temporary key files on completion.
|
|
77
|
+
|
|
78
|
+
Electron Builder notarizes/staples the app before packaging. The workflow also
|
|
79
|
+
submits and staples **each DMG**. Stapling changes its bytes, so updater hashes
|
|
80
|
+
and `.dmg.blockmap` files are regenerated afterwards by
|
|
81
|
+
`desktop/electron/finalize-artifacts.mjs`. The ZIP updater files and final DMGs
|
|
82
|
+
are retained together with SHA256 manifests.
|
|
83
|
+
|
|
84
|
+
`./scripts/verify-mac-build.sh "path/to/SSH Manager.app"` checks the Developer ID,
|
|
85
|
+
deep signature, Gatekeeper, stapled app and matching DMG, dependencies, interface,
|
|
86
|
+
tray icon and local terminal helper. It runs **after** the application smoke test:
|
|
87
|
+
normal use must not invalidate the signature.
|
|
88
|
+
|
|
89
|
+
For a local diagnostic build that must not use signing credentials:
|
|
90
|
+
|
|
91
|
+
```sh
|
|
92
|
+
npm ci
|
|
93
|
+
npm run build:ui
|
|
94
|
+
npm ci --prefix desktop/electron
|
|
95
|
+
cd desktop/electron
|
|
96
|
+
npm run prepare-engine
|
|
97
|
+
CSC_IDENTITY_AUTO_DISCOVERY=false npx electron-builder --mac --arm64 --dir --publish never -c.mac.identity=-
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
This produces an ad hoc signed developer build, not a distributable application.
|
|
101
|
+
|
|
102
|
+
## Windows signing
|
|
103
|
+
|
|
104
|
+
A successful Electron Builder log does **not** prove Authenticode was applied.
|
|
105
|
+
The workflow runs `scripts/verify-windows-build.ps1` against the NSIS installer
|
|
106
|
+
and both packaged application executables. Stable publication requires every
|
|
107
|
+
signature to have `Valid` status. Unsigned dry runs and prereleases are retained
|
|
108
|
+
with an explicit warning, for testing only.
|
|
109
|
+
|
|
110
|
+
The optional `WIN_CSC_LINK` and `WIN_CSC_KEY_PASSWORD` repository secrets are
|
|
111
|
+
passed to Electron Builder's Windows certificate support. They must contain real
|
|
112
|
+
signing credentials supplied by the maintainer; no Windows credential is bundled
|
|
113
|
+
or assumed to exist. Until a certificate or equivalent signing infrastructure is
|
|
114
|
+
configured and the verification passes, **stable desktop publication is blocked**.
|
|
115
|
+
Do not disable that check to make a release green.
|
|
116
|
+
|
|
117
|
+
## Data belongs outside the application
|
|
118
|
+
|
|
119
|
+
The shared groups file is `${SSH_MANAGER_HOME:-~/.ssh-manager}/groups.json`;
|
|
120
|
+
`SSH_GROUPS_FILE` overrides it. Reads fall back to a legacy `.server-groups.json`
|
|
121
|
+
next to an installed engine only when the shared file does not exist. The first
|
|
122
|
+
successful edit writes the shared file atomically and keeps the legacy file
|
|
123
|
+
unchanged. Starting the application or listing groups creates nothing.
|
|
124
|
+
|
|
125
|
+
MCP and desktop processes refresh this shared file before group operations.
|
|
126
|
+
They report persistence errors instead of claiming an unsaved edit succeeded.
|
|
127
|
+
For an old npm installation, back up package-local state **before replacing the
|
|
128
|
+
package**; an installer cannot recover a legacy file npm has already deleted.
|
|
129
|
+
See [MIGRATION.md](MIGRATION.md).
|
|
130
|
+
|
|
131
|
+
## Mac App Store
|
|
132
|
+
|
|
133
|
+
The release channel is Developer ID distribution through GitHub Releases.
|
|
134
|
+
A Mac App Store build would require a separate sandbox design for arbitrary local
|
|
135
|
+
file browsing, external tools such as rsync, host-key discovery and the local
|
|
136
|
+
control-plane service. It is outside the current release scope.
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
# Final V4 test before publication
|
|
2
|
+
|
|
3
|
+
This is a candidate review. A successful test does not publish a package, create
|
|
4
|
+
a release tag, or update existing users. Use the exact reviewed commit and its
|
|
5
|
+
**Release desktop apps** run with `publish: false`; keep that run URL with the
|
|
6
|
+
test results. The npm tarball and desktop installers must come from that commit.
|
|
7
|
+
|
|
8
|
+
## Start with an isolated preview
|
|
9
|
+
|
|
10
|
+
From the candidate checkout, install its dependencies and start a browser preview:
|
|
11
|
+
|
|
12
|
+
```sh
|
|
13
|
+
npm ci
|
|
14
|
+
node scripts/preview-candidate.mjs --engine .
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Open the local URL printed in the terminal. The launcher creates two servers,
|
|
18
|
+
`demo_app` and `demo_backup`, in a disposable profile, with a local SSH fixture
|
|
19
|
+
at `127.0.0.1` and an available port. Remote commands are simulated; SFTP uses
|
|
20
|
+
real temporary files. The sample upload path is printed in the terminal.
|
|
21
|
+
The profile isolates application state, not operating-system permissions: the
|
|
22
|
+
desktop's local terminal remains a real shell. Use only `pwd` and harmless
|
|
23
|
+
`echo` commands there during this review.
|
|
24
|
+
|
|
25
|
+
Keep the launcher running. Type **`r` + Enter** there to restart the candidate
|
|
26
|
+
with the same profile. **`q` + Enter**, Ctrl-C or quitting the candidate ends the
|
|
27
|
+
session and removes that profile. Record results before quitting. Do not select
|
|
28
|
+
personal SSH configuration, import real credentials, or connect to a production
|
|
29
|
+
server during this review. Stop the previous preview before starting another.
|
|
30
|
+
|
|
31
|
+
`SSH_MANAGER_HOME` alone is not a complete desktop sandbox: Electron's profile,
|
|
32
|
+
SSH files and the OS keychain have separate locations. Use the preview launcher
|
|
33
|
+
for the functional review. Use a disposable OS account or VM for a normal
|
|
34
|
+
installer launch and the platform checks below. A VM snapshot also gives an
|
|
35
|
+
unambiguous installer rollback.
|
|
36
|
+
|
|
37
|
+
## Review together: about 20 minutes
|
|
38
|
+
|
|
39
|
+
Record pass/fail and a short reproduction for each item. Redact authentication
|
|
40
|
+
URLs, tokens, credentials and private paths from screenshots and logs.
|
|
41
|
+
|
|
42
|
+
1. **SSH workspace:** open `demo_app`, then its terminal. Run `whoami`,
|
|
43
|
+
`hostname` and `pwd`; expect `demo`, `local-preview-fixture` and `/srv`.
|
|
44
|
+
On desktop, also open a local terminal and run `echo v4-local-ok`.
|
|
45
|
+
2. **Files:** open `/srv`, download `README.txt`, upload the printed
|
|
46
|
+
`upload-me.txt` sample into `/srv/uploads`, then download that copy. Check its
|
|
47
|
+
filename and contents. Use only the sample file and scratch directories.
|
|
48
|
+
3. **Persistence:** create a group, save `uptime` as a command, change theme and
|
|
49
|
+
list/grid view, then type `r` + Enter in the launcher. The servers, groups,
|
|
50
|
+
saved command and preferences remain available after the restart.
|
|
51
|
+
4. **Recovery:** create an encrypted recovery backup with a test passphrase.
|
|
52
|
+
Delete only `demo_backup`, preview the backup and cancel; the server stays
|
|
53
|
+
deleted. Preview again, restore, and confirm that server connects again.
|
|
54
|
+
Do this within the same launcher session: a new session has new fixture
|
|
55
|
+
credentials. Groups and preferences are not part of a recovery backup.
|
|
56
|
+
5. **Feedback and layout:** resize the window, navigate with Tab and Escape,
|
|
57
|
+
inspect the server form, terminal and vault panel. In the browser preview,
|
|
58
|
+
leave its page open and type `q` + Enter in the launcher. Connection loss must
|
|
59
|
+
be visible; the page must not present stale data as a live connection.
|
|
60
|
+
|
|
61
|
+
This populated preview skips onboarding and legacy import. The browser suite
|
|
62
|
+
checks those with fresh and legacy fixture profiles, including keyboard focus,
|
|
63
|
+
source-file preservation and advanced fields; see [TESTING-V4.md](TESTING-V4.md).
|
|
64
|
+
A manual first-launch/import check belongs in a clean test account with fixture
|
|
65
|
+
configuration, not the user's real configuration.
|
|
66
|
+
|
|
67
|
+
If the maintainer drives an MCP request against this isolated fixture, enable
|
|
68
|
+
approval and observe one prompt, then reject and approve separate requests.
|
|
69
|
+
A direct UI command does not exercise MCP approval. Record that distinction;
|
|
70
|
+
the automated security tests cover rejection and a disconnected control plane.
|
|
71
|
+
|
|
72
|
+
## Test the npm package without replacing a global installation
|
|
73
|
+
|
|
74
|
+
From a disposable checkout of the candidate, using Node 24:
|
|
75
|
+
|
|
76
|
+
```sh
|
|
77
|
+
npm ci
|
|
78
|
+
npm run test:published-upgrade
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
This installs the real registry 3.8.5 into temporary directories, upgrades to
|
|
82
|
+
the candidate tarball, then reinstalls 3.8.5. It verifies `.env`, TOML and process
|
|
83
|
+
environment configurations, 37 MCP tool schemas, source-file preservation and
|
|
84
|
+
headless behavior. It does not change the global npm package or MCP client
|
|
85
|
+
configuration. Record the command's exit status and candidate commit.
|
|
86
|
+
|
|
87
|
+
For a manual package installation in the disposable account, create an empty
|
|
88
|
+
`../v4-final-test` directory next to the checkout, then run:
|
|
89
|
+
|
|
90
|
+
```sh
|
|
91
|
+
npm pack --pack-destination ../v4-final-test
|
|
92
|
+
npm install --prefix ../v4-final-test/npm --no-audit --no-fund ../v4-final-test/mcp-ssh-manager-4.0.0.tgz
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Use the filename printed by `npm pack` if the candidate version differs. Test
|
|
96
|
+
this installed package without changing a real client's MCP entry:
|
|
97
|
+
|
|
98
|
+
```sh
|
|
99
|
+
node scripts/preview-candidate.mjs --engine ../v4-final-test/npm/node_modules/mcp-ssh-manager
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
A source-checkout preview alone does not prove the packed interface and
|
|
103
|
+
dependencies are present.
|
|
104
|
+
|
|
105
|
+
## Get the actual desktop installers
|
|
106
|
+
|
|
107
|
+
The maintainer supplies `RUN_ID` for the successful candidate run. Replace that
|
|
108
|
+
placeholder below. Download all three artifact sets from that same run into an
|
|
109
|
+
empty directory; do not mix retries or an older build with the same version.
|
|
110
|
+
|
|
111
|
+
Older rehearsals may include `builder-*.yml` diagnostic files with identical
|
|
112
|
+
names on every platform. For those runs, download into separate directories and
|
|
113
|
+
copy only files named in each release manifest into the verification directory.
|
|
114
|
+
The workflow now excludes these diagnostics; they are never release assets.
|
|
115
|
+
|
|
116
|
+
```sh
|
|
117
|
+
gh run view RUN_ID --json headSha,conclusion,url
|
|
118
|
+
gh run download RUN_ID --name validated-darwin --dir ../v4-final-test/artifacts
|
|
119
|
+
gh run download RUN_ID --name validated-win32 --dir ../v4-final-test/artifacts
|
|
120
|
+
gh run download RUN_ID --name validated-linux --dir ../v4-final-test/artifacts
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
Check every manifest, size and SHA256 against the checkout before opening an
|
|
124
|
+
installer. This command imports only the verifier; it does not publish:
|
|
125
|
+
|
|
126
|
+
```sh
|
|
127
|
+
node --input-type=module -e "import fs from 'node:fs'; import {execFileSync} from 'node:child_process'; import {verifyArtifacts} from './scripts/publish-desktop.mjs'; const version=JSON.parse(fs.readFileSync('package.json')).version; const commit=execFileSync('git',['rev-parse','HEAD'],{encoding:'utf8'}).trim(); console.log('Verified files:',verifyArtifacts('../v4-final-test/artifacts',version,commit).length)"
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
| Platform | Candidate to open in a disposable account/VM | Check |
|
|
131
|
+
| --- | --- | --- |
|
|
132
|
+
| macOS Apple silicon / Intel | Matching `*-arm64.dmg` / `*-x64.dmg`; copy the app into the test account's Applications directory | Download/open through the normal browser/Finder path; no Gatekeeper bypass. Check the app signature before and after the persistence test. |
|
|
133
|
+
| Windows x64 / arm64 | `*-setup.exe`; choose a separate per-user test installation | Check installer and installed app Authenticode status. An unsigned test build is not a signed-release success. |
|
|
134
|
+
| Linux x64 | Install the `.deb` in a disposable VM; test the executable `*.AppImage` separately. | Start the installed app and local terminal as an ordinary user. Record distribution/version and any AppImage sandbox or FUSE failure; do not disable the sandbox to obtain a pass. |
|
|
135
|
+
|
|
136
|
+
For the isolated functional review of an extracted/installed macOS app:
|
|
137
|
+
|
|
138
|
+
```sh
|
|
139
|
+
node scripts/preview-candidate.mjs --app "/absolute/path/SSH Manager.app"
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
On Windows or Linux, pass the actual unpacked/installed application executable
|
|
143
|
+
with its adjacent `resources` directory. Do not pass the NSIS installer, DMG,
|
|
144
|
+
AppImage container or ZIP to this launcher. It rejects older builds without
|
|
145
|
+
explicit preview isolation. Installer/Gatekeeper acceptance is tested separately
|
|
146
|
+
in the disposable OS account; preview launch alone does not establish it.
|
|
147
|
+
|
|
148
|
+
On macOS, set `SSH_V4_APP` to the installed candidate path, then run before and
|
|
149
|
+
after ordinary use:
|
|
150
|
+
|
|
151
|
+
```sh
|
|
152
|
+
codesign --verify --deep --strict "$SSH_V4_APP"
|
|
153
|
+
spctl --assess --type execute --verbose "$SSH_V4_APP"
|
|
154
|
+
xcrun stapler validate "$SSH_V4_APP"
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
Do not strip quarantine, disable Gatekeeper, or modify the bundle to turn a
|
|
158
|
+
failure into a pass. For Windows, use PowerShell's `Get-AuthenticodeSignature`
|
|
159
|
+
on the downloaded installer and installed `SSH Manager.exe`; record `Status`
|
|
160
|
+
and the certificate subject. Test native arm64/x64 machines where available;
|
|
161
|
+
a runner launch on one architecture does not exercise the other.
|
|
162
|
+
|
|
163
|
+
## Rollback and the update boundary
|
|
164
|
+
|
|
165
|
+
For the preview, record results, then type `q` + Enter in its launcher. It
|
|
166
|
+
removes the temporary profile; return to the untouched installed application or
|
|
167
|
+
client. For installer tests, quit the app and revert the disposable VM snapshot
|
|
168
|
+
or reinstall the retained previous build. Keep the test profile and its backup
|
|
169
|
+
outside the installation directory.
|
|
170
|
+
|
|
171
|
+
For the isolated npm installation above, a manual rollback is:
|
|
172
|
+
|
|
173
|
+
```sh
|
|
174
|
+
npm install --prefix ../v4-final-test/npm --no-audit --no-fund mcp-ssh-manager@3.8.5
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
3.8.5 uses the retained original `.env`/TOML, not credentials added only to a V4
|
|
178
|
+
vault. Its package-local groups may also differ from V4's user-state groups.
|
|
179
|
+
Before any later trial on a real installation, retain the original config,
|
|
180
|
+
package-local groups, user-state files, SSH key files and an encrypted recovery
|
|
181
|
+
backup; verify that backup can be restored. A vault file alone is not a portable
|
|
182
|
+
backup of its key. See [MIGRATION.md](MIGRATION.md).
|
|
183
|
+
|
|
184
|
+
Reinstalling a candidate proves replacement and persistence. It does not prove
|
|
185
|
+
automatic download, quit, installation and restart. A true updater test needs
|
|
186
|
+
two distinct candidate versions and an isolated test feed, followed by a check
|
|
187
|
+
that stable clients are not offered prereleases. Do not point normal clients
|
|
188
|
+
at a test feed. The preview disables automatic updates deliberately.
|
|
189
|
+
|
|
190
|
+
## Decision record
|
|
191
|
+
|
|
192
|
+
Attach the candidate commit, workflow URL, manifest verification result, tested
|
|
193
|
+
OS/architecture, npm upgrade result, checklist results and unresolved defects.
|
|
194
|
+
Installation, normal use after restart, signature checks and any updater test
|
|
195
|
+
must each have their own result. “Not tested” stays visible.
|
|
196
|
+
|
|
197
|
+
As checked on 2026-09-07, the repository has the five required macOS signing and
|
|
198
|
+
notarization secret names; their validity is proved only by the new build.
|
|
199
|
+
`WIN_CSC_LINK` and `WIN_CSC_KEY_PASSWORD` are absent. An unsigned Windows dry run
|
|
200
|
+
can support the functional review, but stable desktop publication remains
|
|
201
|
+
blocked until real signing is configured and verification passes. Linux also
|
|
202
|
+
needs its first complete candidate run. No certificate values belong in the
|
|
203
|
+
test record.
|
|
204
|
+
|
|
205
|
+
The latest public release, [v3.8.5](https://github.com/bvisible/mcp-ssh-manager/releases/tag/v3.8.5),
|
|
206
|
+
contains no desktop installer or updater feed. Old CI build artifacts do not
|
|
207
|
+
establish a released desktop upgrade path. Resolve the updater test plan before
|
|
208
|
+
claiming that path is validated. Publication remains a separate explicit
|
|
209
|
+
decision after this review; follow [DISTRIBUTION.md](DISTRIBUTION.md) then.
|