3.3 KiB
3.3 KiB
Working notes (WIP, not for merge)
Notes for whoever picks up the broker next: where the work stands and what comes next. They live
in their own change on the wip bookmark, at the head of the work in progress; move it to sit on
top of whatever is next, and never merge it. Durable facts go in docs/; drop this file when the
work is done.
State
As of 2026-11-25.
main(up topolicy: Type operation names and the fields rules match) is reviewed, and nixfilesmasterlocks it; no--override-inputis needed any more.- Secrets are done and deployed on
palace. Structured request details are done; check them in the web app on a real deploy and secret request. - Home Assistant notifications are removed (
ha: Remove Home Assistant notifications); the web app's Web Push replaces them.palaceruns it. - The demo has a repository with a protected
master, a builder, secrets and deploys to the box VM (docs/demo.md); tried end to end withslop-approve. - SSH targets come only from the main branch's deploy-rs nodes (
ssh: Find deploy targets on the main branch), so SSH needsdeploy. The VM test covers the lookup with a real builder. Not yet run in the demo, whose nodes moved into its repository's flake: an existing demo needsdemo-reset(or a new commit with the nodes) to get them. - SSH stdin (PR #1, bookmark
ssh-show-stdin, under this change): approvers never saw a script piped tobash -s, because stdin was only forwarded after approval.slop sshnow sends all of stdin with the request, approvers and the audit log see it, andPROTOCOL_VERSIONis 2.- Being tried on
palaceandslop-cannonfrom the nixfiles branchtest-slop-ssh-stdin, which pins slop-broker to the PR branch. Once it merges, nixfiles relocksmainand that branch goes. - Every box with
slopneeds the new version together withpalace, or gets a protocol version error (for examplecastle, which requests too).
- Being tried on
Next
- Merge PR #1 and relock nixfiles, deploying
palacewith every requester. - Containers aren't SSH targets. Agents asked for
shill.container-middlemanand the like, whichslop sshrefuses: a container is a profile on its host's deploy node, not a node. Either acceptnode.container-<name>and run through the host (likessh-machine), or say inslop-tools.mdhow to reach one through the host. - A requester's
Stdinmessages for an operation that doesn't read stdin fill the server's stdin channel, after which its reader blocks and no longer notices a disconnect. Drop them instead. - The builder's store is small and slow.
palacebuilds everyslop deployandslop buildinto its own/nix, an ext4 volume on the 500 GB SATA SSD (themainthin pool). Move builds somewhere bigger and faster, such as a store oncellar's NVMe or another builder box. That's nixfiles work, thoughservices.slop-broker-buildermay need options. - The demo has no binary cache, so
slop buildisn't configured there. Adding one means the box VM'sservices.slop-broker-cachetaking a broker key made at run time, not build time. - DNS, previews and forwards.
- Once Dev is happy with everything: screenshots of the web app (pending list, a request's
detail, the audit log, on a phone and a desktop) in
README.mdanddocs/design.md.