Repository navigation
stile v0.1.0 — capabilities, not credentials
stile v0.1.0 — capabilities, not credentials
stile is a capability-oriented secret broker for Linux. It lets an
untrusted process — an AI coding agent, a CI job, a helper script —
perform narrowly defined lifecycle operations on secrets (rotate,
verify, reconcile, status, list, provider-assisted import) while the
secret values stay behind a privilege boundary the caller cannot cross.
BAD: agent → "give me the deploy token" → agent makes arbitrary requests
BETTER: agent → stile rotate example-app/session-key
→ broker rotates, deploys, reloads, verifies
→ agent receives a structured report, never the token
What this is
- A privileged Linux daemon (
stile-brokerd, systemd unit included)
that owns every stage of a secret's life, backed by
SOPS-encrypted stores (age). - An unprivileged CLI (
stile) that speaks only logical operations
over a Unix socket (SO_PEERCRED-authenticated) and can print only
structured reports. There is deliberately noget/show/reveal
/execcommand, and the wire protocol's types cannot express a
value-returning operation. - Everything the broker may do — commands, URLs, paths, users, modes —
is declared in a root-owned registry; the caller controls only a
logical secret id. No arbitrary URLs, no command execution with
injected credentials, no environment injection, no generic
authenticated HTTP proxying. - Every operation is audited (caller uid/gid/pid, stages, duration)
without ever recording values.
Security posture
- Reducing credential exposure does not make a capability harmless:
a caller who can rotate a secret holds real authority over it. Grant
access only to callers you trust with that much. - stile is early-stage, security-sensitive, and not independently
audited. It is designed to keep secret values behind the broker
boundary; it does not prove anything. Read
THREAT_MODEL.md
for the real boundary, attacker model, per-operation capability
inventory and known limitations before trusting it with real
credentials.
Installing
- Download
stile-v0.1.0-<target>.tar.gzand verify against
SHASUMS256.txt(static musl binaries:x86_64,aarch64). - Or build from source:
cargo build --release --locked(Rust 1.85+). - Setup guide, example registry/config and hardened systemd unit:
README.md.
Reporting vulnerabilities
Please use
private vulnerability reporting —
do not open public issues for undisclosed vulnerabilities. See
SECURITY.md.