A web app lists pending requests with full detail, leases and the audit log grouped by request, and sends Web Push notifications that can answer requests. Approvers sign in through an OpenID Connect provider; policy can require a fresh passkey (`confirm = "passkey"`) to approve, which only the web app can then give. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
31 lines
870 B
Nix
31 lines
870 B
Nix
{ lib, rustPlatform, pkg-config, openssl, sqlite }:
|
|
let
|
|
inherit (lib.fileset) toSource unions;
|
|
in
|
|
rustPlatform.buildRustPackage {
|
|
pname = "slop-broker";
|
|
version = "0.1.0";
|
|
|
|
src = toSource {
|
|
root = ../.;
|
|
fileset = unions [ ../Cargo.toml ../Cargo.lock ../askama.toml ../src ../templates ../tests ../slop-tools.md ];
|
|
};
|
|
cargoLock.lockFile = ../Cargo.lock;
|
|
|
|
# OpenSSL for Web Push's payload encryption, SQLite for the web app's sessions
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ openssl sqlite ];
|
|
|
|
postInstall = ''
|
|
ln -s slop-broker $out/bin/slop-approve
|
|
install -Dm644 slop-tools.md $out/share/slop-broker/slop-tools.md
|
|
'';
|
|
|
|
meta = {
|
|
description = "Approval broker that runs privileged operations for coding agents";
|
|
license = lib.licenses.mit;
|
|
mainProgram = "slop";
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|