Skip to content

v0.14.1

Choose a tag to compare

@github-actions github-actions released this 16 Nov 03:59
· 838 commits to main since this release
d9b8457

Highlights

  • Security fix: a conn's URL settings (Postgres host=/hostaddr=/service=, Redis sentinels, MongoDB seed hosts, RabbitMQ management=) could send its stored password somewhere other than the address komando showed. An AI agent's change of any of them now needs a person.
  • komando ignores PG* environment variables and ~/.pgpass for Postgres conns, and a SQLite conn can no longer open komando's own store or a credential database; an agent's SQLite query cannot ATTACH or VACUUM INTO.

Security

  • A conn's URL settings could send its stored password somewhere other than the address komando showed and guarded. Postgres reads host=, port=, hostaddr=, service= and fallback hosts from the URL, Redis sentinels=, MongoDB more seed hosts and RabbitMQ management=, and an AI agent could add them with conn edit --url without the yes that a new address needs. The place a conn's password goes is now every address its driver logs in at, read as the driver reads the URL, plus every URL setting except the few that move nothing (application_name, connect_timeout and other timeouts). An agent's change of any of it stops with SECRET_DESTINATION, and the window shows the settings.
  • komando no longer reads PG* environment variables for a Postgres conn: from its own environment an AI agent could make komando trust its certificate (PGSSLROOTCERT) and get the password. db dump and db restore run their tools without PG* and MYSQL* variables.
  • A Postgres conn with no password of komando's own no longer logs in with the password in ~/.pgpass, which an agent could collect with a conn to a server it controls. A URL that names a passfile= still uses it.
  • A SQLite conn could open komando's own store or a credential database (gcloud's credentials.db, anything in ~/.ssh, ~/.aws, ~/.config/gcloud, ~/.azure, ~/.kube, ~/.docker), so an AI agent could read, copy or delete its rows. komando's own folder is now refused as a SQLite conn for everyone, and for an AI agent so are those login folders and every file the agent guard keeps from it, links followed (SENSITIVE_FILE). The check runs when the conn is added or changed and again whenever it is opened, and db dump --to and db restore --from refuse the same paths for an agent. An AI agent's query on a SQLite conn may not use ATTACH or VACUUM INTO either (they create a file wherever they are told), and load_extension stays off for everyone.

Update: komando update (sudo komando update when komando is in
/usr/local/bin). From 0.6.0 or older, or to install, run:

curl -fsSL https://raw.githubusercontent.com/sgnd/komando/main/install.sh | sh

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