Skip to content

v0.16.0

Choose a tag to compare

@github-actions github-actions released this 19 Nov 06:17
· 186 commits to main since this release
f84df60

Highlights

  • Run a local program with vault secrets. komando secret run --env KEY=secret:NAME -- COMMAND puts 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 restore refuses 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 ~/.kube paths on macOS and Windows.

Added

  • komando secret run --env KEY=secret:NAME -- COMMAND starts 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, ...).
    SIGTERM and SIGHUP go 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 run for 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, or GIT_*,
    SSH_* or XDG_* settings. Before, -e HOME=/tmp/x won over the
    account's HOME, so the program could read an rc file the agent wrote.
  • komando secret run refuses every secret reference form in the
    program's arguments (env:, vault:, op://, ...), not only secret:.
  • komando secret run for an AI agent on Linux gives the program an empty
    temporary HOME when the account is not in /etc/passwd, instead of the
    HOME from 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 -f and cluster run -- apply|create -f read the label
    pod-security.kubernetes.io/enforce=privileged on a Namespace with the
    same rule as cluster label: case and spaces around the value do not
    matter, so the manifest needs --allow-dangerous either 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 restore refuses 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 kubeconfig accepts the
    files it names under ~/.KUBE (any case), as it does under ~/.kube.
  • db restore names pg_dump tar (-Ft) and directory (-Fd) archives and
    refuses them with USAGE, saying to dump with -Fc or -Fp. Before, a
    tar archive was read as plain SQL (with a misleading UNSAFE_BACKUP, or
    a check that passed and a restore that then failed), and a directory
    archive failed with BAD_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 | sh

Check a download: gh attestation verify FILE --repo sgnd/komando