8 Commits
Author SHA1 Message Date
jackos1998andClaude Opus 5.5 76eb39fb7e demo: Add a binary cache for slop build
The box VM holds the cache's store in a `cache` account, set up by
`services.slop-broker-cache`, and the demo's broker pushes to it, so
`slop build` can be tried by hand. The broker's key is only known at
boot, so the module exposes its forced command for keys it can't list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 13:27:48 +00:00
jackos1998andClaude Opus 5.5 3f024cd115 demo: Move the host side out of devenv.nix
The demo's host side is a devenv module of its own,
`nix/demo/host.nix`, which `devenv.nix` imports, so `devenv.nix` is
only the development environment. The VMs' settings are grouped with
comments, and the longer scripts are broken into steps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 13:27:48 +00:00
jackos1998andClaude Opus 5.5 474d9fa7e1 demo: Read the builder's store through the ssh wrapper
Deploys and builds read built paths from the builder's store over
`ssh-ng`, with the `ssh` the broker's `nix` finds on its `PATH`. The
demo's wrapper wasn't named `ssh`, so `nix` used the real one, which
couldn't resolve `builder`. The wrapper is now `bin/ssh`, and also
handles how Nix calls it: the host as `builder@builder`, a control
master check and the `LocalCommand` it waits for.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 13:27:48 +00:00
jackos1998andClaude Opus 5.5 2df7cd3dee ssh: Show approvers the stdin a command runs with
CI / Check (pull_request) Successful in 5m14s
CI / Check (push) Successful in 5m15s
`slop ssh` forwarded stdin only after approval, so a script piped to
`bash -s` reached the box without an approver or the audit log ever
seeing it. `slop` now reads all of stdin (unless it's a terminal)
and sends it with the request. Approvers see it in full, the audit
log keeps it, and the command gets exactly those bytes. Stdin that
isn't UTF-8, or a command and stdin too long to show whole, is
refused.

The command is shown as the line the remote shell runs (the words
joined with spaces, as `ssh` sends them) rather than shell-quoted,
which suggested quoting the remote shell never sees; multi-line
commands are shown as text.

`Operation::Ssh` gains `stdin`, so the protocol version goes to 2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 00:51:12 +00:00
jackos1998andClaude Opus 5.5 58e064924d docs: Draw the demo's parts
Also nest the repository section's bullets, and say the demo's targets
are the repository's deploy-rs nodes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 23:38:08 +00:00
jackos1998andClaude Opus 5.5 9d54664f5c demo: Deploy to the box VM
The demo repository's flake gets a deploy-rs node, `box`, with a small
custom profile whose activation writes its version, using nixpkgs'
deploy-rs so builds are quick, and its nixpkgs locked to this
repository's. The box VM lets `box` use `sudo` and copy unsigned
paths, and the broker's policy covers the builder and deploys, so a
pushed branch can be deployed and its package changes approved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 02:01:35 +00:00
jackos1998andClaude Opus 5.5 ddee51d092 demo: Add a repository, a builder and secrets
`devenv up` seeds a bare repository with an agenix rules file and two
secrets, encrypted to the demo person and the broker; a pre-receive
hook protects `master`, and `demo-merge` moves it. The agents' VM
clones it over a QEMU guestfwd to `git daemon`, and the broker reaches
`slop-broker builder` through an `ssh` wrapper, so secret requests
work as in a real deployment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 01:42:48 +00:00
jackos1998andClaude Opus 5.5 313c028ad9 nix: Add a demo
A setup for trying the broker by hand, laid out like a deployment.
`devenv up` runs the broker from the checkout with its web app, Pocket
ID for approvers to sign in with, and a box VM for the SSH targets; a
setup task creates the approver, their group and the broker's OIDC
client through Pocket ID's API. `demo` boots the agents' VM on the
terminal, which reaches the broker only over vsock.

Approvers use `slop-approve` in the devenv shell, or the web app after
signing in with a link from `demo-sign-in`, so passkey approvals can
be tried without deploying anything.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 00:39:36 +00:00