Repository navigation
v0.16.0
Highlights
- Run a local program with vault secrets.
komando secret run --env KEY=secret:NAME -- COMMANDputs secrets in a program's environment, never
in its command line, and masks its output. An AI agent needs a person's
yes for every secret, and its program gets a clean environment. - pg_dump archives.
db restorerefuses tar and directory archives with
a clear message, and refuses a custom archive it cannot read instead of
approving it unchecked. - Smaller fixes to masking of very long output lines, the pod-security
label check, docker target errors and~/.kubepaths on macOS and Windows.
Added
komando secret run --env KEY=secret:NAME -- COMMANDstarts a program on
this computer with vault secrets in its environment, never in its command
line. Its output is masked and komando exits with its exit code. An AI
agent needs a person's yes for every secret, and may not set variables
that make the program load other code (LD_PRELOAD,NODE_OPTIONS, ...).
SIGTERMandSIGHUPgo on to the program, a second Ctrl-C ends it
with komando, and a program ended by signal N makes komando exit 128+N
on Linux and macOS.
Security
komando secret runfor an AI agent with secrets: its plain--env
values may add variables but never replace one komando sets (HOME,
PATH,USER,LANG, ..., in any case), and may not name a pager, an
editor, an askpass helper, an rc file (PSQLRC), a proxy, orGIT_*,
SSH_*orXDG_*settings. Before,-e HOME=/tmp/xwon over the
account'sHOME, so the program could read an rc file the agent wrote.komando secret runrefuses every secret reference form in the
program's arguments (env:,vault:,op://, ...), not onlysecret:.komando secret runfor an AI agent on Linux gives the program an empty
temporaryHOMEwhen the account is not in/etc/passwd, instead of the
HOMEfrom the agent's environment.- Streamed output lines over 256 KiB (
exec,secret run, service logs)
are no longer cut inside a hidden value, which printed it as two
unmasked halves. cluster apply -fandcluster run -- apply|create -fread the label
pod-security.kubernetes.io/enforce=privilegedon a Namespace with the
same rule ascluster label: case and spaces around the value do not
matter, so the manifest needs--allow-dangerouseither way.- A docker command whose target komando cannot find now stops with that
error before the rating, instead of rating it without reading the
compose files on the server. db restorerefuses a pg_dump custom archive whose table of contents
komando cannot read (BAD_FILE). Before, it was approved as
sql-opaque, so a person could approve SQL nobody had checked.- Reading an archive's table of contents no longer allocates a string's
full stated length (up to 64 MiB) before its bytes arrive.
Fixed
- On macOS and Windows, an AI agent's
import kubeconfigaccepts the
files it names under~/.KUBE(any case), as it does under~/.kube. db restorenames pg_dump tar (-Ft) and directory (-Fd) archives and
refuses them withUSAGE, saying to dump with-Fcor-Fp. Before, a
tar archive was read as plain SQL (with a misleadingUNSAFE_BACKUP, or
a check that passed and a restore that then failed), and a directory
archive failed withBAD_FILE"is a directory".
Update: komando update (sudo komando update when komando is in
/usr/local/bin). From 0.6.0 or older, or to install, run:
curl --proto '=https' --tlsv1.2 -fsSL https://raw.githubusercontent.com/sgnd/komando/main/install.sh | shCheck a download: gh attestation verify FILE --repo sgnd/komando