Skip to content

v0.12.0

Choose a tag to compare

@github-actions github-actions released this 11 Nov 16:31
· 1426 commits to main since this release
2331e34

Highlights

  • Upgrading: run komando seal once. komando now keeps everything in
    one sealed file, store.db. A folder from an earlier komando must be
    moved first: until a person runs komando seal in their own terminal,
    every other command stops with NEEDS_SEAL, for AI agents too. It reads
    everything back before switching, keeps the old files in a sealed
    archive, and komando seal --undo puts them back.
  • Sealed local store: servers, secrets, pinned host keys and the audit
    log are sealed record by record, so a record edited, swapped or removed
    outside komando is noticed. With the key in the OS keychain, an older
    copy of the folder put back stops commands with STORE_OLD_COPY.
  • Windows: komando runs natively on Windows, with Credential Manager
    and its own "Allow once" window.
  • ssh-command keeps working with keys komando made: the key goes to
    your running ssh-agent for an hour and is never written to a file.
  • Simpler and safer: one command for each job (old names print what to
    use and go away in the next release), over 150 bugs fixed after a
    hands-on review of every command, and new stops against locking
    yourself out of a server.
  • Changed output: status --short shows vpn:N (how many VPNs are
    up, not their names), a missing database privilege exits 5, and
    job wait --wait-timeout is gone (use --timeout).

Added

  • Sealed local store for every new komando folder: one file,
    store.db, keeps servers, conns, VPNs, keys, recipes, settings,
    secrets, remembered fingerprints and the audit log, each record sealed
    and bound to its ID, kind and version, so a record edited, swapped or
    removed outside komando is found. Its key is kept the three ways the
    vault key is: the OS keychain, a key file (store.key) or
    KOMANDO_VAULT_PASS. With a passphrase, every command needs it, reads
    included. A store made by a newer komando stops with STORE_NEWER.
    komando works only on the sealed store.
  • komando seal moves a folder of an earlier komando into the sealed
    store, after reading everything back and comparing it; the old files are
    kept in a sealed archive and komando seal --undo puts them back. A
    person at a terminal only. A folder of before must be sealed before
    use: until then every other command (except doctor, version, help,
    guide and schema) stops with NEEDS_SEAL, for agents too.
  • Old copies are noticed: with the store's key in the OS keychain, the
    keychain also remembers how many changes the store has had. An older
    copy put back stops commands with STORE_OLD_COPY (exit 6) until a
    person runs komando doctor --accept-old-copy. When the keychain does
    not answer in time, komando reads but changes nothing
    (KEYCHAIN_SLOW).
  • Windows: komando builds and runs natively on Windows, with the vault
    key in Windows Credential Manager, a native "Allow once" window that
    counts only a real mouse or keyboard, and .zip releases.

Removed

  • OpenVPN OS mode (vpn add --os-mode), which ran the openvpn program
    with sudo and changed your computer's routes, is gone; komando's own
    OpenVPN client does the work without sudo. A VPN saved with it is never
    run another way: komando vpn up stops with VPN_OS_MODE_REMOVED until
    you add it again with komando vpn add NAME openvpn --config FILE.ovpn --check HOST:PORT --overwrite.
  • job wait --wait-timeout is gone: use --timeout (still 10m when not
    given). The hidden --target flag of komando list and host export is
    gone too: give the target as the argument.
  • komando test results no longer carry name: read host, as with
    facts and exec.
  • A server saved with the 0.1.0 field jump is no longer moved to via
    on load.
  • The files of before as a way of working: state.json, vault.json,
    vault.key, known_hosts, audit.jsonl and key files under keys/ are
    only read, by komando seal. key gen --overwrite is no longer needed
    (keys komando makes live in the store) and does nothing.

Security

  • Built with Go 1.27.4. It fixes GO-2026-6859 in the standard
    net/http package. Building from source now needs Go 1.27.4 or newer.
  • No more ways to lock yourself out. Stopping or disabling the SSH
    service is blocked on Debian and Ubuntu too (ssh.service, with any
    systemctl options), and user lock/user rm refuse root and the user
    komando logs in as.
  • net http takes only http:// and https:// URLs. A URL that started
    with - reached curl as an option.
  • tunnel start -R on a protected server needs a person's yes, like
    every other change there.
  • Every blocked attempt is in the audit log (exit 6 stops, including
    safety settings and secrets sent somewhere), so audit --failed shows
    them. guide install is audited too.
  • An AI agent cannot run secret keychain; it needs a person, as
    secret passphrase already did. It used to wait on the keychain prompt.

Changed

  • komando host ssh-command on a sealed folder gives OpenSSH a private
    copy of the pinned host keys (for a person only; an AI agent gets
    NEEDS_PERSON). A key komando made lives sealed in the store and is
    never written to a file: host ssh-command gives it to the running
    ssh-agent (SSH_AUTH_SOCK) for one hour and the line picks it by its
    public key; with no ssh-agent it stops with SSH_AGENT_NEEDED. Keys
    made by komando key gen have no file any more (key show names them
    sealed:<id>).
  • On a sealed folder, komando status --short (the shell prompt line)
    counts what runs instead of naming it: vpn:2 tun:1, not
    vpn:office,lab. It reads only process numbers kept beside the sealed
    store, so no VPN name sits in a plain file and the prompt never opens
    the keychain on each Enter.
  • Running VPN sessions, server logins, jobs and tunnels live in
    runtime.json (sealed), apart from the inventory in store.db; config show lists it. A background VPN marking itself used no longer rewrites
    the inventory.
  • One command for each job. Shortcuts that stay now run the same code
    as the main command, with the same flags:
    • cp, storage upload and storage download are upload and
      download.
    • svc logs and docker logs are logs --unit and logs --container.
  • Old names for one release. These still work, print
    komando: use X now, and go away in the next release:
    • script TARGET FILE is now exec TARGET --script FILE.
    • host import is import ssh-config or import komando, and
      host export is export (export kind:host for servers only).
    • prompt is status --short.
    • db query --csv/--tsv are db query -o csv/-o tsv. An export
      has every row; one larger than --max-output fails instead of being
      cut.
  • Removed: the aliases ops, snippet, snippets and diag (use
    recipe), inspect for facts, systemd for svc, the hidden
    policy allow (use policy rm), and the built-in recipes that a
    command already does (recipe run ports now names net ports).
  • One error code, one exit code. Codes that exited differently in
    different places now always use the exit in komando schema:
    DB_AUTH, QUEUE_AUTH, STORAGE_AUTH and DB_CONNECT exit 4;
    DB_PRIVILEGE, PERMISSION_DENIED, QUEUE_ERROR, TOOL_FAILED and
    UNSAFE_PATH exit 5; NOT_A_FOLDER exits 8. A vault that cannot be
    opened for a server's password gives VAULT_LOCKED/VAULT_KEY/
    VAULT_DECRYPT instead of SECRET_UNRESOLVED.
  • list and ls work for every list. Each command that lists takes
    both words.
  • A list for a TARGET that picks nothing of its kind fails with
    NO_MATCHING_TARGETS (exit 3) instead of an empty success
    (vpn list web1, host list kind:db).
  • db add, cache add and the other family adds refuse another
    family's URL
    (WRONG_KIND), and cluster add k8s://... asks for the
    kubeconfig it needs.
  • The names aws, gcp and azure are kept for komando login; a server
    cannot take them.
  • policy rule ids come from the pattern (custom-1a2b3c4d), so
    removing one rule no longer renumbers the others.
  • registry rm needs a tag or digest; it used to pick :latest.

Known limits

  • Any program of your user can read the store's key from the keychain
    (macOS through /usr/bin/security, Windows Credential Manager, an
    unlocked Linux keychain), and on macOS can lower the change count. An
    agent running as your user is such a program. See "What the keychain
    does not protect against" in docs/features/settings.md.
  • On macOS a program with Accessibility permission can click "Allow once".
    Use the approval code, or keep that permission away from agent terminals.

Fixed

  • Over 150 bugs found by a hands-on review of every command. The main
    ones:

    • Dry runs: a previewed edit says "would change", not "changed";
      sync --delete, guide uninstall and vpn up say what the real run
      would need; registry copy --dry-run checks both registries; a
      --write --dry-run on a missing SQLite file no longer creates it;
      Windows servers show the Windows command.
    • Errors: "not found" names the right kind ("web1 is a server") and
      never suggests the name you typed; hints name your real server or
      service instead of NAME; an AI agent reading text output gets the
      same advice as in JSON; a stray argument says the command takes none.
    • Files and commands: fs cat --tail on a big file reads its end;
      cp and sync accept tag:, label: and kind: and keep the port
      of user@addr:port; --env KEY=a,b keeps the comma; a script whose
      #! line uses env -S runs the right interpreter; uploading a file
      that holds a [hidden] value is refused everywhere;
      upload CONN DIR -r puts the folder under its own name.
    • Databases and caches: memcached keys with a TTL over 30 days no
      longer expire at once; PRAGMA journal_mode=DELETE is not called a
      mass delete; statements that load code (CREATE EXTENSION, LOAD)
      count as destructive; cache run "SET a 1" in one argument works;
      XREAD is a read; MONITOR/SUBSCRIBE are refused instead of
      hanging.
    • Clusters: --timeout now bounds every cluster and registry call
      (an unreachable cluster no longer hangs for minutes); import kubeconfig reads $KUBECONFIG, resolves relative certificate paths
      from the kubeconfig's folder and no longer gives one context's name to
      another; cluster status checks StatefulSets and DaemonSets.
    • Servers: docker logs --sudo uses sudo; reboot refuses Windows
      servers before it starts; cert check no longer fails at random on
      servers that reject post-quantum key shares; pkg update refuses
      package names it would have ignored.
    • VPNs and settings: vpn up that fails is audited as failed;
      vpn mv moves the VPN's own secrets to the new name, and adding a VPN again after vpn rm reuses them; vpn edit
      can change --portal; config show JSON lists every setting;
      doctor notices an agent guard that points to a missing program;
      guide uninstall checks first, then removes, so a stop changes
      nothing.
    • Menu and forms: Add something > Database no longer crashes;
      komando db add alone opens the database form; "Protect or unprotect"
      can unprotect; the review shows exactly the command that runs; Check
      everything runs doctor even when a server fails; a group's tasks
      leave out one-server tasks; risky tasks (fs rm, docker prune,
      user rm) get the "cannot be undone" warning.
  • Running now is what runs on this computer. It lists and counts
    VPNs, logins and port forwards only. Background jobs run on the servers
    and keep going without this computer, so they sit under "Background
    jobs" (the same list as on a server) and are not counted; its count
    leaves out jobs that ended: komando remembers a job ended whenever it checks it (job status,
    wait, list --refresh, rm) and leaves out jobs whose server left
    your list. "Check which jobs still run" asks every server.

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