M2: server — workspace, hosts, SSH execution, runs, audit log #3

Closed
opened 2026-11-15 23:51:23 +01:00 by schmidt.florian · 1 comment
Owner

apps/server: workspace notebooks API, hosts.yaml, SSH via ssh2 (bash -euo pipefail -s, sudo -n, timeouts), strict host keys with TOFU, per-host run queue, streaming over /api/events, audit.jsonl, artifacts/uploads. Spec §4 and protocol.ts.
Done when: run/check steps work against a test SSH server in integration tests.

apps/server: workspace notebooks API, hosts.yaml, SSH via ssh2 (bash -euo pipefail -s, sudo -n, timeouts), strict host keys with TOFU, per-host run queue, streaming over /api/events, audit.jsonl, artifacts/uploads. Spec §4 and protocol.ts. Done when: run/check steps work against a test SSH server in integration tests.
Author
Owner

Landed on main (6926526 + integration b7051d2, b50d49b): workspace notebooks API (traversal-safe, content-hash versions, 409 on stale saves), hosts.yaml, ssh2 executor (bash -euo pipefail -s on stdin, sudo -n, timeouts), strict host keys with TOFU (unknown/changed/accepted), per-host FIFO queue, /api/events hub, captures, artifacts/uploads via SFTP, audit.jsonl without secrets (secrets go as stdin export lines and are redacted). Integration tests run against an in-process ssh2 server. Integration fix: a failing script is reported via run.finished only, not run.error. Done-when criteria met; closing. Not yet exercised: a real SSH host (lands with the CT 501 deploy, #6).

Landed on main (6926526 + integration b7051d2, b50d49b): workspace notebooks API (traversal-safe, content-hash versions, 409 on stale saves), hosts.yaml, ssh2 executor (`bash -euo pipefail -s` on stdin, `sudo -n`, timeouts), strict host keys with TOFU (unknown/changed/accepted), per-host FIFO queue, /api/events hub, captures, artifacts/uploads via SFTP, audit.jsonl without secrets (secrets go as stdin `export` lines and are redacted). Integration tests run against an in-process ssh2 server. Integration fix: a failing script is reported via run.finished only, not run.error. Done-when criteria met; closing. Not yet exercised: a real SSH host (lands with the CT 501 deploy, #6).
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: FinalFactory/ShellBook#3