Repository navigation
feat: sudo-secretspec privilege-boundary companion - #1
Conversation
Add a single Rust binary that mediates SecretSpec access through a root-owned broker, fail-closed SQLite audit, metadata-only doctor checks, and explicit install/adopt/rollback. Include Homebrew packaging and downstream release tooling without privileged install side effects.
Require successful service user/group lookups, metadata-only vault file checks via symlink_metadata, and /private/var/db realpath validation before reporting a successful dry-run.
Require non-empty reasons, treat audit write failures as hard errors, report unknown outcomes when mutation restore fails, avoid rewriting adopted vault ownership, and force dotenv://$vault/.env so ambient cwd/.env cannot become the secret store.
Make install usable as `sudo-secretspec install` / `--adopt-existing` with auto-detected declarations and TTY prompts. Prefer system SQLite, chown the audit ledger to the vault owner, classify legacy vault clutter, and document the downstream companion for humans and later AIs.
Privilege-boundary security review (
|
Summary
sudo-secretspecbinary that mediates SecretSpec access through a root-owned broker pathTest plan
cargo test -p sudo-secretspec-cli --locked(58 passed)pytest -q tests/sudo_packaging(9 passed)brew style packaging/homebrew/sudo-secretspec.rb/var/db/stayturgid-secrets(operator)Notes
v0.19.1viasudo-main0.19.1-djbclark.1