Skip to content

Releases

v0.17.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 05:21
0d27c4e

Highlights

  • Shell keys. ssh-gate line --shell-access lets a key open a login
    shell on one server; ssh-gate checks, audits and limits it.
  • A steadier approval window on macOS. It stays open when another app
    takes the focus, and a window that fails is reported as its own error
    (APPROVAL_WINDOW_FAILED), never as a Deny.
  • Agent recognition by process ancestry. komando reads the processes
    above it, so an agent that clears its variables is still an agent.
  • SSH certificate authorities for host keys (host ca), a handshake
    view in vpn status, and a body_sha256 for every script or content a
    command sends.

Added

  • KOMANDO_APPROVAL_DEBUG: on a Mac, each approval window adds what it
    saw to approval-debug.log in komando's run folder (0600): the keys,
    the focus, handler errors, how it ended and osascript's exit and error
    output, never the texts it shows (C237). A key is named (Tab, Return,
    Esc, Space, an arrow, Page Up, Page Down, Home, End) only while one of
    the window's own controls has focus; otherwise, as in a selectable text
    field, the log writes only a class: digit, letter, Tab, arrow or other
    (C256).

  • komando ssh-gate line --shell-access: a key that may change things
    may also open a login shell on one server, ssh -t HOST komando shell SERVER. Its line starts with restrict,pty,, so sshd gives it a
    terminal when it asks for one. ssh-gate refuses the shell on a
    protected server, a Windows server or this computer, with any other
    word or flag, and without the terminal (SSH_GATE_REFUSED); db shell
    and cluster shell stay refused, and every other command gets the
    answer a key without --shell-access gets. ssh-gate status and
    ssh-gate line show shell_access. Not with --read-only (USAGE).
    ssh-gate opens the shell in its own process, after its checks; komando shell itself still opens none for an AI agent or a key. When the key's
    terminal changes size, the server's terminal follows. A shell key is
    full control of the server it opens on, outside komando's per-command
    policy, masking and audit.

  • komando host ca add|list|rm|revoke: trust servers through the SSH
    certificate authority that signs their host keys (@cert-authority),
    with no pin per server (C38b). A pattern names at least the domain
    (CA_HOSTS_INVALID); only a person at a terminal can add a CA
    (NEEDS_PERSON). --from reads a known_hosts file's @cert-authority
    and @revoked lines. A --login ask server is never trusted through a CA.

  • komando vpn status shows a WireGuard session's last handshake, its
    age and the tunnel's state: up, idle (no handshake for 3 minutes
    and nothing sent) or dead (no handshake for 3 minutes although
    something was sent or a keepalive is set). JSON: last_handshake_at,
    handshake_age_seconds, tunnel_state and tunnel_dead.

  • A command that sends a script or content (exec --script,
    --stdin-file, fs write, an upload, queue send, cluster apply,
    db restore, recipe run) records its full SHA-256 as body_sha256
    in the audit record and in meta of its JSON output, so a person can
    match the 16 hex characters the approval window shows to the exact
    file (C197). Safety (History) says what each command's hash covers.

  • The approval window speaks Indonesian (C191): komando config set approval_language id, or the default auto, which follows the system
    language. Every line komando writes in the window is translated, the
    risk words of each built-in rule too; the command and script are not.

  • The approval window names encoded data it cannot show in a readable
    way (C208): a block of base64, base32 or hex of 64 or more characters
    (a heredoc or a+="…" pieces count as one block), or a long run of
    \xNN or octal escapes, gets a risk line with its kind, size, decoded
    size and lines, in English and Indonesian. A 64-digit hash on a line
    that names it and public PEM blocks do not count.

Changed

  • secret set, import, vpn add and doctor warn when a secret's
    value is a common word (only letters and shorter than 10 characters, or
    a common password such as password1). The warning names the secret,
    never the value. Such a value is easy to guess, and one of 6 or more
    characters is hidden wherever that word appears in komando's output
    (C186).
  • The safety docs now say what the approval window and the approval code
    stop: an agent that works through komando or is held in a sandbox. A
    program that runs freely as you can read the vault key (keychain or
    store.key) and so every secret; a passphrase or the agent's own sandbox
    is the boundary.
  • The approval window an AI agent's --yes, --allow-dangerous or
    --reveal opens on macOS and Windows is a plain system window, 440
    points of text wide, with no icon: the action as the title ("Run a
    command on db-2.example.test", "Change 4 servers"), then "Asked by"
    the agent, "Status: Protected", one "Risk:" line per risk in plain
    words ("Deletes a system folder recursively (rm -rf)", no rule ids),
    "Skips:" only for a check the other lines do not name, "Options:" for
    every flag that changes what runs or where (an --env value never),
    and "Command:" with what runs. A script shows its line count, size,
    the first 16 digits of its SHA-256 and every line, as before (a longer
    one opens no window).
    Deny stays the default and the Esc key, and the window still closes
    itself after 2 minutes.

Security

  • An AI agent is no longer a person because it cleared its variables.
    komando also reads the processes above it (macOS and Linux): a parent
    with the agent's variables, or a harness known by name or command line
    (claude, codex, cursor-agent, gemini, opencode, a node
    package such as claude-code, and others; Safety lists them), makes
    the call an agent's. A terminal from an ssh login from this computer
    no longer counts as a person. The shell refusal
    (NEEDS_TERMINAL), the ssh-gate refusal of an agent caller
    (SSH_GATE_REFUSED), the login and approval windows and the agent
    home folder all follow the caller, so env -i komando ... from an
    agent no longer reaches them. A program that leaves the process tree
    first (the system adopts a helper that outlives its parent) still goes
    unseen; see Safety, Limits.

  • ssh-gate: no --shell-access key opens a shell while a deny rule of
    your own is set (extra_deny_patterns, SSH_GATE_REFUSED): komando
    does not see what is typed in a shell, so a shell would get past them.

  • ssh-gate: each shell session of a key is in the audit log when it
    starts and when it ends, with the key's name (ssh_gate), the server
    (hosts) and session; the end record adds duration_ms, why it
    ended (end: exit, idle, hangup, lost or error) and the
    shell's exit_code. Both are written even when the audit setting is
    off, and no shell opens when the start record cannot be written. If
    the gate's process is killed, there is no end record; the start record
    still shows the session.

  • ssh-gate: started by an AI agent on the komando computer instead of
    by sshd for a key, the gate runs nothing (SSH_GATE_REFUSED); the
    agent runs komando directly, under its own rules.

  • ssh-gate: a key's shell with no input and no output for 30 minutes
    ends (SHELL_IDLE_TIMEOUT, exit 7).

  • komando shell: when komando's terminal closes or a signal stops it,
    the session on the server is closed too (CANCELLED).

  • The safety rows of store.db carry a policy MAC (C187, C234): the
    protected marks of servers, conns and VPNs, the other server, conn and
    VPN settings komando asks a person for (forward_agent,
    proxy_command, a trusted login program, mfa, legacy_crypto,
    allow_pap), the deny rules and safety settings, the approval code
    settings, pinned and revoked host keys, trusted host CAs and the
    settings row's sealed copy. It is an HMAC-SHA256 under a policy key made
    from the store's key, checked on every read and write; komando writes it
    again with each change it makes. A row changed outside komando stops
    every command with POLICY_MAC_FAILED, naming the row. The store's
    keys now come from its key under one label each (row, value, runtime,
    ticket, policy), and records are sealed under a new row key: a program
    given the row key alone opens no secret value, makes no ticket and
    cannot change a safety row unseen. A store made by an older komando
    gets its MAC once, on its first open; after that an older komando
    stops with STORE_NEWER, so update every komando that uses the folder
    and restart VPN sessions, tunnels and server logins started before.

  • A new deny rule, decode-run (and win-decode-run for PowerShell),
    stops a script or command that decodes hidden text and runs it: a
    decoder (base64 -d, also as -di or -dw0, basenc -d,
    python3 -m base64 -d, xxd -r, openssl enc -d, printf with escapes
    or %b, rev, a rot13 tr)
    piped into a shell or interpreter, eval "$(… base64 -d)", a
    python -c or perl -e that runs decoded text, a decoded file that a
    later step runs, and FromBase64String with iex or
    [scriptblock]::Create. It needs --allow-dangerous and a person's yes,
    like the other rules (C208).

  • A script or command that holds a private key (its BEGIN line is
    enough, or a PuTTY key file header) is refused, for AI agents and
    people alike, with the new ENCODED_SECRET_INVALID: the key would
    reach the approval window, the audit log and the server (C208).

  • An upload of one file hashes the bytes as they are sent. When an
    agent's approval window showed other bytes (the file changed after the
    yes), the upload stops with FILE_CHANGED before the file on the
    server is touched, and the stop is in the audit log (C213).

  • db restore takes its body_sha256 in the same read that seals the
    file, for every caller, so...

Read more

v0.16.0

Choose a tag to compare

@github-actions github-actions released this 19 Nov 06:17
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

v0.15.0

Choose a tag to compare

@github-actions github-actions released this 18 Nov 18:26
0ac7d7f

Highlights

  • Passwords komando never stores. --login ask on host add, host edit, conn add and conn edit: a person types the password when it is
    needed, and an AI agent cannot move where it goes.
  • Strict read-only. exec --read-only (and job start, docker exec,
    cluster exec, read-only recipes) runs a command only when komando knows
    it cannot change anything, on every server.
  • Riskier changes need a person. db grant, db user add, cluster apply of a file that gives out rights, and a DELETE or UPDATE that
    keeps every row now need --allow-dangerous.
  • Output contract 2. Every error code means one thing and has one exit
    code; meta.contract is 2. Scripts that read error codes should check
    "Changed for scripts and agents".
  • New commands. import securecrt, storage mkdir, storage mv,
    storage chmod, cp between two remote places, --continue for a cut-off
    transfer, db kill on MongoDB, svc --user-units, and facts --only.
  • Releases name their version. The signature of checksums.txt now
    covers the version, so an older release cannot pass as a newer one.
  • Many security fixes for AI agents, VPNs, file transfers and approval
    windows; see Security.

Added

  • komando import securecrt FILE|FOLDER adds SecureCRT's SSH2 sessions,
    from its exported settings (File > Export Settings, an .xml file) or
    its Sessions folder: host, port, user and key file, with each
    session's folder as a group. Other session types, a firewall and a
    .ppk key are listed with what to do. Stored passwords and key
    passphrases are never read.

  • komando pkg security works on zypper (security patches; pkg upgrade --security runs zypper patch --category security), and on pacman
    with arch-audit. Where the repositories publish no security notices
    (apk, pacman without arch-audit, dnf/yum repositories such as
    CentOS's) the list is no longer silently empty: the new
    security_notices field is false, unclassified_updates lists every
    pending update, and a warning says why. pkg upgrade --security stops
    there with SECURITY_UNSUPPORTED (exit 3) and changes nothing; apk,
    zypper and pacman servers are no longer in meta.skipped.

  • --user-units on komando svc status, list, start, stop, restart,
    reload, enable, disable and daemon-reload manages the login
    user's own units (systemctl --user), without sudo. A user with no
    systemd manager running stops with the new code NO_USER_MANAGER
    (exit 3); the hint names loginctl enable-linger USER.

  • komando docker prune --volumes takes --older-than. Docker has no age
    filter for volumes, so komando prunes with the age filter, then removes
    only the unused anonymous volumes made before the cut-off, by name; the
    dry run lists exactly those, and the answer lists them in
    volumes_removed. A volume whose age komando cannot read stays. A dry
    run with --volumes now always has volumes, empty when none would go.

  • MongoDB conns take komando db kill CONN OPID (stops the operation
    db activity shows, with killOp; --dry-run shows it first; no
    --session), komando db user list (the users of every database, with
    their roles, never their stored credentials) and komando db user show CONN USER (roles, and the actions they give). The JSON has the same
    shape as for SQL databases. db user add, passwd, rm, db grant and
    db revoke stop with NOT_SUPPORTED, whose hint says to send the
    command with db query --write (it needs --allow-dangerous).

  • komando host trust NAME --fingerprint SHA256:... pins a server's key
    only when the server shows the key with that fingerprint: compare and
    pin in one step. Any other key stops with HOSTKEY_MISMATCH and
    nothing is pinned. The answer has expected_fingerprint next to
    fingerprint; the approval rules for AI agents and --reset are as
    before.

  • komando secret set NAME --new stores a secret only when NAME is not in
    the vault yet. A taken name stops with SECRET_EXISTS (exit 8) and
    keeps its value, --dry-run included. The check and the write are one
    step of the store, so of several komando commands creating one name at
    once exactly one wins.

  • komando host add NAME ADDRESS --login ask and komando host edit NAME --login ask: a server whose password komando never stores. A person types it whenever komando connects (every command, fleet run, jump host, shell, cp, sync, job and tunnel), and it is used for that command only: at a terminal komando asks NAME: Password: (hidden); for an AI agent's command komando opens its own window on the person's screen, which names the agent, the server as user@address:port and the command (or says it is hidden), and where they type it; the agent never sees it. Apps get the same question through the new engine.Call.AskPassword hook. A script, an agent with no screen and ssh-gate get NEEDS_PERSON (exit 6), and a cancelled window gives DECLINED (exit 6) whose hint is komando login SERVER; after a cancel the window stays shut for that server for a minute (DECLINED at once). These are new exit paths for every command that connects to such a server, including tunnel start, which asks before it starts the tunnel and hands the password to the tunnel's process on its input (that process keeps it in memory for the tunnel's life). Only a person sets where the password goes: an AI agent that adds a --login ask server, turns one to --login ask, changes its address, port, user, --via, proxy command or transport, or changes a server or VPN on its way (edit, vpn add --overwrite, import, or replacing the vault secret that holds an OpenVPN profile) gets NEEDS_PERSON (exit 6), which no flag lifts; a dry run names it in meta.would_be_blocked. The window names the way komando dials (VPN, each jump host with its address, proxy command). The first connection to such a server (a host key nobody has seen, host_key_policy off, or WinRM tls=off/skip-verify) needs a person at a terminal, and so does a key that is pinned but that nobody has logged in to this server with (pins are by address, and any server added at that address can pin one): an agent gets NEEDS_PERSON and nothing is pinned. Each pin now keeps the login-ask servers a person logged in to with it (a new optional logins list in the pin record; host trust --reset clears it). An AI agent that starts komando login's background process (login-holder) itself gets NEEDS_PERSON. One command asks once per server; a refused password is asked again on the next connection. The typed password is hidden in all output and never written to disk, the audit log or a program's environment; komando zeroes its own copy when the command ends. A komando login NAME that is still live is used without asking.

  • komando conn add NAME URL --login ask and komando conn edit NAME --login ask (also komando db add and the other KIND add): a conn whose password komando never stores, typed by a person at every connect through the same questions as a --login ask server (terminal, app window, komando's window for an AI agent with the same cool-down; NEEDS_PERSON for a script or an agent with no screen; DECLINED after a cancel). --login on conns takes ask, password or none, the words of the new login field of conn show and list. Only a person sets where the password goes (NEEDS_PERSON for an agent's add, --url, --via, turn to ask, or change to a server or VPN on its way). An agent's db dump/db restore of such a conn gets NEEDS_PERSON (the dump tool would get the password in its environment). SQLite files and clusters refuse --login ask (USAGE). The guided database forms offer "Yes, and I type it each time".

  • --login ask|password|key|agent on host add and host edit: the same words as the new login field of host show, host list (and list), host add and host edit, so what you read back is what you can write. password is a stored password (with --ask-password or --password-ref) and drops a key; key needs --key or --identity; agent is ssh-agent and ~/.ssh only and drops the key and the stored password. A flag that contradicts the word is a USAGE error. Switching to ask or agent unlinks the stored password but never deletes the secret: host edit names an unused one in the new secrets_unused field. komando schema host add and host edit list the new --login flag (type string, no default).

  • komando storage mkdir CONN PATH makes a folder (and any missing parents) in a bucket or on a file server. On S3, Google Cloud and Azure, which have no real folders, it stores an empty folder marker, as their consoles do, and storage list now shows such an empty folder instead of FOLDER_NOT_FOUND.

  • komando storage mv CONN SRC DST [--overwrite] moves or renames inside one conn. File servers (SFTP, FTP, FTPS, WebDAV, SMB) rename on the server, folders too. S3, Google Cloud and Azure cannot rename: there mv copies the object on the server, checks the copy's size and checksum, and deletes the original only after that check (method: copy_then_delete). Where a file server cannot rename over a file, --overwrite moves the old one aside first and puts it back if the rename fails. A file or folder already at DST stops it with FILE_EXISTS (exit 8). New error codes: MOVE_FAILED (exit 5: the copy did not check out, so the original was kept, or the original could not be deleted after a good copy) and STORAGE_UNSUPPORTED (exit 2). For an AI agent, a file that is secret by its name (.env, a private key, a key store) keeps such a name: renaming it to another kind of name stops with SENSITIVE_FILE. An FTP server whose listing hides dot files is asked for the file itself, so a hidden file at DST is not replaced without --overwrite.

  • komando storage chmod CONN MODE PATH sets t...

Read more

v0.14.1

Choose a tag to compare

@github-actions github-actions released this 16 Nov 03:59
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

v0.14.0

Choose a tag to compare

@github-actions github-actions released this 14 Nov 06:15
098eacd

Highlights

  • The apps can run several commands at once. Inside, each command now
    runs as a call of its own, with its own output, flags, approvals and
    environment, so the Mac and iPhone apps can run a person's command and an
    AI agent's command side by side in one process.
  • See a secret or key again from the Mac app. secret show --reveal and
    key show --reveal from a program without a terminal ask the person in
    komando's own window and show the value only after Allow once. An AI
    agent still never gets a value.
  • Signed releases. This is the first release whose checksums.txt is
    signed with the komando project's key. komando update checks that
    signature before it downloads anything, so someone who replaced a
    release's files cannot make it install them. Releases up to 0.13.0 are
    unsigned: go back to one with the install line.
  • Your store is safer. A dry run never makes a new, empty store where
    store.db went missing, a keychain that cannot answer stops changes
    instead of guessing, and every store leaves a store.made marker that
    shows the folder had one.
  • Move everything in one sealed file. komando export --sealed puts
    your servers, secrets and (with --with-keys) private keys in one file
    locked with a passphrase, and export --for-phone seals it for the
    iPhone app.
  • More for apps and scripts. cache keys shows each key's type and time
    to live, --progress writes how far a copy is as JSON lines,
    cluster describe and cluster logs give structured detail, and
    komando schema lists the kinds each add takes.
  • More ways in. SSH certificates, security keys (FIDO2), agent
    forwarding per server, post-quantum key exchange, and imports from PuTTY,
    MobaXterm and AWS EC2.
  • The paid boundary is written down and tested. komando's own code
    never checks a plan, account or licence; a test fails if the binary links
    the sync library or a Komando Cloud client. Plus over 20 fixes, many for
    safety, among them links in a download folder and hidden terminal text.

Changed for scripts and agents

  • AGENTS.md has a new rule 11, the paid boundary: an agent that changes komando's own code never adds a plan, account or licence check, and gives a paid service only a neutral, open capability (an open format, a signature check, a local socket). The old rules 11 and 12 are now 12 and 13. A new test (internal/boundary) fails when the komando binary links the sync library or a Komando Cloud client, or names a komando-owned address (any scheme, or a bare host name) other than the release site.
  • fs replace and fs restore take a TARGET: on a group (@web) every server gets the same edit, or puts back its own newest backup. Their JSON is now one result per server, as fs rm and exec give: data.results[] (host, ok, path, changed or would_change, replacements, diff, backup, error) and data.summary; For one server the fields moved: data.path is now data.results[0].path, data.changed is data.results[0].changed, data.would_change is data.results[0].would_change, and the same for replacements, diff, backup, from and note. Error codes stay the same (NO_MATCH, BACKUP_NOT_FOUND ...). fs write stays one server.

Added

  • See a secret again from the Komando Mac app: secret show NAME --reveal from a program without a terminal now asks the person in komando's own window (with the approval code when it is on) instead of stopping, and shows the value only after Allow once. The window names the secret, the command and the programs that started komando. At a terminal nothing changes; an AI agent, and a key through ssh-gate, still never get a value and get no window. A Linux or BSD desktop gets the window only with the approval code.
  • key show NAME --reveal prints the private key of a key komando made (kept in its sealed store, with no file), for a person only, under the same rules; for a key added from a file it names the file.
  • Every value shown is in the audit log with how the person allowed it (via: terminal or window) and the programs that started komando (started_from), and every refused --reveal with the secret's or key's name.
  • komando export --sealed --to FILE moves everything, passwords included, in one sealed file: komando asks a person at the terminal for a passphrase twice (15 or more characters, hidden), seals the export and the secrets its records use with scrypt and AES-256-GCM, and prints a six-word check phrase. --with-keys adds the private keys the servers use. komando import komando FILE asks for the passphrase and puts the secrets into the vault, never over one that is there with another value unless --overwrite and the person says yes. komando export --for-phone --to FILE seals the same to the iPhone app's one-time key (HPKE, X25519 and AES-256-GCM), after checking the key against the key check the phone shows. Only a person makes or opens a sealed file: an AI agent gets NEEDS_PERSON; a dry run says what would be sealed. New codes: SEALED_FILE_INVALID, SEALED_FILE_UNSUPPORTED, PHONE_KEY_INVALID, KEY_FAILED. The format is in docs/design/sealed-file.md, with test vectors in internal/sealfile/testdata/vectors.json.
  • export lists the secrets of a VPN's config and a server's environment variables in secrets_needed too, and export --overwrite replaces the file as its help says (it stopped with FILE_EXISTS).
  • cache keys gives each key's type and time to live, never its value: the JSON has items (key, type, ttl_seconds; -1 = no expiry, null = unknown) next to the unchanged keys, and the text shows KEY, TYPE and TTL columns. On Redis and Valkey, TYPE and PTTL for the whole page go in one round trip (one per master in a Cluster); on memcached the type is string and the time to live comes from the LRU crawler's listing, with the server's clock read in the same round trip.
  • komando schema vpn add and komando schema conn add (and db add, cache add, queue add, storage add, cluster add, registry add) list the kinds each takes under add_kinds: for a VPN its ID, display name, family (portal, config file, server and pre-shared key, auth key, system, proxy), the flags it needs and may take, and whether vpn up opens a browser to sign in; for a conn its ID, display name, family, URL schemes, an example URL and the same flag lists. An app can build its add forms from it. vpn add --help now shows its "Which flags go with which VPN kind" table from the same list, and vpn add refuses a flag the list does not give that kind, as it did before.
  • --progress on upload, download, cp, sync and storage upload/download: with -o json, komando writes how far the copy is to stderr, one JSON object per line, at most about four a second ({"event":"progress","file":…,"bytes_done":…,"bytes_total":…,"files_done":…,"files_total":…}), then one {"event":"done",…,"ok":…} line, so an app or agent can draw a progress bar. A total is null when komando cannot know it. The result on stdout is unchanged, and without --progress (or in text mode) nothing changes.
  • cluster describe -o json of a Kubernetes object adds data.detail for a program to read: kind, name, namespace, status (a pod's phase, ready 2/3 for a workload), created_at, labels, conditions[] and events[] (type, reason, message, count, last_seen_at). It never holds a Secret's values. cluster logs -o json adds data.lines[] (logged_at, pod, container, text) and data.truncated (also meta.truncated) when a pod sent --limit lines. The fields there before stay as they were.
  • job start --stdin-file FILE gives the job's command FILE as its input, job start --sudo-user USER runs it as USER with sudo -u (both as in exec), and job start --timeout 2h stops the job after that long. A timed-out job is killed with timed_out: true in job status, and job wait says the timeout stopped it. When exec times out with --sudo-user or --stdin-file FILE, its hint now names the matching job start line.
  • komando status lists the AWS IAM Identity Center (SSO) logins of the profiles in ~/.aws/config, with the profiles that share each one, when its token runs out and whether it renews itself (data.aws_logins). komando logout aws --profile NAME (or --all) ends one as aws sso logout does: AWS is told to end the token and the login in ~/.aws/sso/cache is deleted. Before, komando logout aws was read as a server named aws.
  • Docs: "Restore from a backup" in the import guide: which backups of ~/.komando open on this computer and on a new one (passphrase, store.key, keychain), and what to do about STORE_OLD_COPY after a restore.
  • registry rm and its dry run check every tag of the repository (up to 10000) for other tags on the image it deletes; they read only the first 200. registry prune reads repositories of up to 10000 tags (it stopped above 1000 with TOO_MANY_TAGS), asking for the tags' digests 8 at a time.
  • key revoke --all-users (with sudo) removes the key from the authorized_keys of every user on the server, not only the login user's or one --user's: someone who left may have put it into another account. The dry run names each user whose file holds it (users), and each file is read and written as its own user.
  • config set vpn_idle to a longer time, or to 0 (never close), now counts as a safety setting like login_for: at a terminal komando asks first, and an AI agent needs a person's yes (SAFETY_SETTING). A VPN an agent can keep up for ever is a way into the network that nobody closes. A shorter time asks nothing.
  • SSH user certificates: a key's OpenSSH certificate (KEY-cert.pub next to the key file, as ssh uses it) is offered at login, then the key alone, so servers that trust an SSH certificate authority let komando in. `key add --cer...
Read more

v0.13.0

Choose a tag to compare

@github-actions github-actions released this 13 Nov 09:53
7ed1e12

Highlights

  • People type commands too. The plain-language menu is gone. Type a
    command like komando db query; komando asks only for what is missing,
    with a list to pick from, shows the full command, and asks
    Run it? [y/N, d] before a change. After it works, Next: names the
    usual next step. AI agents see no change in how they are asked.
  • One command standard. list is the listing verb everywhere (ls
    still works), flags and short letters mean one thing everywhere, and
    removing something asks you to type its name. komando schema says what
    each command needs before it runs (confirm).
  • Remote commands go after --. komando exec web1 -- apt-get install -y nginx: words after -- belong to the server, so apt's -y can no
    longer be read as komando's --yes.
  • Breaking for scripts: old names are removed, not kept. For example
    recipe add --sudo is --needs-sudo, db dump --on is --run-on,
    pkg security --apply is pkg upgrade --security, -n in the cluster
    commands is --namespace, and secret rm, key rm --delete-file and
    fs rm need --allow-dangerous. komando seal is gone: a folder from
    before 0.12 is no longer read. The full list is under "Changed for
    scripts and agents" and "Removed".
  • Safer. Over 35 security fixes, among them: an AI agent could take a
    VPN password through a program it placed in PATH; root could be made to
    write through a link another user planted on the server; the approval
    window now shows a whole script, and every Linux desktop needs the
    approval code; password-manager tokens leave the environment; on Windows
    komando's folder is yours alone.
  • Clearer. Every message follows one style (what happened, why, the
    command to run next), and the documentation is rewritten for beginners,
    with an install page for Windows too.
  • Also: cluster apply no longer takes over fields another tool owns
    unless you add --force-conflicts, and SQL Server certificates with a
    negative serial number are accepted.

Changed for scripts and agents

This release makes every command follow one standard. meta.contract
stays 1. komando is used internally only, so a few answers changed shape
instead of keeping an old one beside the new (listed below under
"Removed"); every other JSON field of 0.12 is unchanged. What a script or
an AI agent may notice is listed here; the sections below say more about
each change.

New fields, all additive (left out when they have nothing to say):

  • error.suggestion: the name komando thinks you meant, when a command,
    server, conn, group, secret, setting or flag is misspelled. The hint is
    then the whole command line with it in place.
  • error.thing: which kind of item a shared not-found code is about
    (KEY_NOT_FOUND is an ssh_key or a cache_key, and so on).
  • meta.would_need: under --dry-run, the flags the real run needs
    (--allow-dangerous, --yes).
  • meta.truncated: true when a list stopped at its --limit.
  • meta.not_simulated: under --dry-run, the steps the dry run could not
    try.
  • In komando schema: confirm on each command (its approval tiers and
    the flag each needs) and default_from on a flag whose default comes
    from a setting.

Values in komando schema that changed (field names are the same):

What Before Now
flags[].type of --env (host add/edit), --label (10 commands), --option (8) stringSlice stringArray: repeat the flag, commas are kept
flags[].type of --ttl, --warn, --older-than (3 commands) string duration
flags[].type of cache get --limit int64 int
--limit on 34 list commands not there int, default 0 (all) where there was no limit
flags[].type of --max-output and every --max-bytes int, int64 or string bytes (256KiB, 1MB; KB means 1024)
default of a duration 1h0m0s 1h
default of --timeout, --connect-timeout, --parallel, --host-key-policy, --max-output the value 0 or empty, with default_from naming the setting
default of queue --partition, --partitions, --replicas -1 none (the help says "the broker's")
kind of storage link and cluster forward read change
shorthand -n on cluster events, cluster logs, cluster list --limit --namespace (as on the other 17 cluster commands, which gain it)
path and usage of renamed commands secret get, ... ls, ... mv, db grants, pkg security --apply secret show, ... list, ... rename, db user show, pkg upgrade --security
command in the envelope and the audit log of renamed commands secret.get, fs.ls (and the six other .ls), host.mv (and the five other .mv), db.grants, pkg.security for pkg upgrade --security secret.show, fs.list, host.rename, db.user.show, pkg.upgrade
usage argument words KEY for several things, HOST, NAME one meaning per word (OBJECT, SETTING, SERVER, USER, JOB, TUNNEL, TYPE/NAME, ...)

Synonyms (ls, mv, get, keys, plurals) stay for good, and
komando schema describes the command they run; db grants and pkg security --apply are gone. The retired flags are gone (komando is used
internally only): db dump/restore --on (now --run-on), --from on
db user, db grant and db revoke (--from-host), fs list --max
(--limit), fs restore --from (--copy), storage rm --limit and
-n (--max-remove), vpn add/edit --address (--proxy-address),
rename --prefix, --notes, --labels (--starts-with,
--in-notes, --in-labels), recipe add --sudo (--needs-sudo),
cron --sudo/-s (--user root), queue peek --wait (--idle),
cluster rollback --to (--revision), policy check --for
(--conn-kind), db query --csv/--tsv (-o csv/-o tsv),
key gen --overwrite, pkg security --apply and --keep-going (pkg upgrade --security), and docker logs --priority and svc logs --timestamps, which did nothing there. Each is an unknown flag
(USAGE, exit 2). A bare number of seconds for svc --wait and
reboot --wait (--wait 10) and -1 for queue --partition,
--partitions and --replicas are usage errors too.

Exit and error codes that changed:

Command Before Now
exec, job start, docker exec/compose/raw, cluster exec/shell/run, cache run with words for the server and no -- ran (and took komando flags such as -y from those words) USAGE, exit 2; nothing runs
cluster events/logs/list -n 50 a limit of 50 USAGE, exit 2 (-n is the namespace; use --limit 50)
--option a=on,b=x (any KEY=VALUE flag with a comma before another KEY=) two options USAGE, exit 2 (repeat the flag)
update web1 (a server or conn name) tried to install version web1 USAGE, exit 2, hint komando pkg upgrade
host add aws ... (gcp, azure; conn add and vpn add too) added USAGE, exit 2 (the names are kept for komando login aws)
secret rm, key rm --delete-file, fs rm ran POLICY_BLOCKED, exit 6, until a person agrees and --allow-dangerous is added
storage link, cluster forward through a read-only ssh-gate key ran SSH_GATE_READ_ONLY, exit 6
host trust --reset (or a changed key) from an agent or a script SAFETY_SETTING, exit 6, lifted by --yes NEEDS_PERSON, exit 6; no flag lifts it
a person answers no to a filled-in command (a person only: no agent or script is asked, so the agent recording has no row for it) exit 1 DECLINED, exit 6
forward ..., script, prompt, host import, host export, db grants ran unknown command, USAGE, exit 2 (use tunnel, exec --script, status --short, import, export, db user show)
storage rm -n 10 and the other retired flags listed above ran unknown flag, USAGE, exit 2
cluster apply (and cluster run -- apply) on a field another field manager owns took the field over (server-side apply with force) K8S_CONFLICT, exit 8, naming that manager; nothing is applied; --force-conflicts takes it over

Text output (-o text) is not part of the contract, but agents read it:
the next: lines moved to stderr (data.next is unchanged), tables say
yes or - for a yes-or-no column and show times with their zone, and
an empty list reads no <things> yet or no <things> match ....

error.message and error.hint are free text, and this release rewrites
many of them in plainer words (see "Changed" below); error codes and exit
codes are the same. A script that matches message text (invalid port,
must be, unknown column, data.results) should match the code
instead.

Added

  • cluster apply --force-conflicts (and cluster run -- apply --force-conflicts) takes over fields another field manager owns, as
    kubectl apply --server-side --force-conflicts does. Without it,
    apply no longer takes them over: an autoscaler's replicas or a
    kubectl edit stop it with K8S_CONFLICT, which names the manager
    and the fields, and nothing is applied. A protected cluster still
    needs a person's yes either way.
  • error.suggestion holds the name komando thinks you meant when a
    command, server, conn, group, secret, setting or flag is misspelled,
    and the hint is then the whole command line with it in place (run it again with exec: komando exec web1 -- uptime). Additive. Words from
    other tools get the komando command that does that job: komando ps
    suggests komando docker ps TARGET, kubectl komando cluster run TARGET -- ..., psql and mysql komando db query CONN, get
    komando list, delete web1 komando host rm web1.
  • docs/features/error-codes.md has a table of the codes that mean the
    same (PROTECTED_HOST and PROTECTED_TARGET, TARGET_EMPTY and
    NO_MATCHING_TARGETS, ...) and which one new e...
Read more

v0.12.0

Choose a tag to compare

@github-actions github-actions released this 11 Nov 16:31
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...
Read more

v0.11.0

Choose a tag to compare

@github-actions github-actions released this 11 Nov 01:11
4711682

Highlights

  • A simpler menu: pick a thing, then what to do with it. komando
    now shows your servers, databases and services, and VPNs first, then
    Add something, Check everything, History and undo, and Settings and
    help. Picking a server shows plain tasks such as Read logs, Restart a
    service or Edit a file. "All features" is gone; every feature is still
    reachable, and a test keeps it that way.
  • Undo for file edits: komando fs restore HOST PATH puts the backup
    back, and fs replace/fs write --backup print the undo line.
  • Errors for people: text output starts with what happened and that
    nothing was changed, then the hint, then the code. JSON is unchanged.
  • Plain words: db add, cache add, queue add, storage add,
    cluster add and registry add open the same form as conn add, and
    "conn" no longer appears in menus, forms or messages.

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

v0.10.0

Choose a tag to compare

@github-actions github-actions released this 10 Nov 17:39
155210b

Highlights

  • GlobalProtect with a browser sign-in, including Prisma Access with
    the Cloud Authentication Service: vpn up opens a browser window for
    the password and one-time code, then picks the best gateway from the
    portal's list.
  • GlobalProtect sessions last the whole login. They no longer drop
    after about 18 minutes: the tunnel is kept alive and set up again by
    itself.
  • Old flag names are gone (--jump, --force, --param, --lines,
    and others kept since 0.1 to 0.3). See Removed for the new names.

Added

  • GlobalProtect with a browser sign-in. komando vpn up now logs in to
    GlobalProtect portals that use a web sign-in (SAML, or Palo Alto's Cloud
    Authentication Service, as Prisma Access does): it opens a window of
    Chrome, Edge, Brave or Chromium with an empty temporary profile, you sign
    in there with your password and one-time code, and komando reads the
    result and connects. It also reads the portal's list of gateways and
    takes the best one for your region; before, the portal address had to be
    the gateway itself. Add such a VPN with only --portal. A gateway
    with a sign-in of its own is shown in the same window. Tried against a
    real Prisma Access gateway. Not built yet: gateways behind a load
    balancer (the error names the portal's other gateways) and the device
    report (HIP).

Removed

  • Old flag names kept as aliases since 0.1 to 0.3 are gone. Use the new
    names: --via (was --jump), --overwrite (was --force), recipe run --var (was --param), logs -n/--limit (was --lines), fs cat --line-numbers (was --number), job logs --max-bytes (was --limit),
    --target (was --host), host mv and conn mv (was host edit --rename and conn edit --rename). recipe add --mutating is gone too:
    a recipe counts as a change unless you save it with --read-only.

Fixed

  • A GlobalProtect VPN no longer drops after about 18 minutes. komando
    now sends the keepalive the gateway expects, sets the tunnel up again
    before the gateway's own tunnel timeout, and after a drop reconnects
    with the same login (for up to 5 minutes) instead of ending the session.
  • vpn add no longer says a VPN needs openconnect and ocproxy when
    komando's own client is the one that will run it.
  • A second komando vpn up NAME that waits for another one (which may be
    waiting for a sign-in) now says so instead of standing still.

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

v0.9.0

Choose a tag to compare

@github-actions github-actions released this 10 Nov 10:31
75300fd

Highlights

  • Every feature as plain questions: type komando, pick Add or All
    features, and answer one question at a time. Add has a form for every
    kind of server, database, cache, queue, storage, cluster, registry and
    VPN, and the last screen shows the exact commands before anything runs.
  • Windows servers, over OpenSSH or WinRM: test, exec, script,
    facts, files, services and shell run PowerShell there, with Windows
    forms of the destructive rules.
  • komando queue: message queues. Kafka, RabbitMQ, NATS JetStream,
    Amazon SQS and Google Cloud Pub/Sub: look at topics, queues and lag, peek
    at messages without removing any, send, create, and delete only with
    --allow-dangerous.
  • Five more databases: SQL Server, Oracle, ClickHouse, Snowflake and
    BigQuery work with db query, schema, explain, info and the rest,
    read-only unless you add --write.
  • Windows (SMB) shares as storage, with komando's own SMB 2 and 3
    client.
  • Azure and Google logins in more places: azure-kv: reads secrets
    from Azure Key Vault, and registry conns for Azure Container Registry,
    Google Artifact Registry and Container Registry log in with your cloud
    login.

Added

  • Every feature as questions, for people at a terminal. Type komando,
    pick Add or All features, and answer one plain question at a time (a
    name, an address, a user ...), each with an example, a default Enter
    takes, and a check before the next question. Add has a form for every
    kind: Linux and Windows servers (OpenSSH or WinRM), PostgreSQL, MySQL,
    SQL Server, Oracle (service name or SID), MongoDB, ClickHouse, Snowflake
    (key pair or token), BigQuery (your Google login), SQLite, Redis,
    Memcached, Kafka, RabbitMQ, NATS, Amazon SQS, Google Pub/Sub, S3 (AWS,
    MinIO, R2, Wasabi, Spaces, B2), SFTP, FTP, Google Cloud Storage, Azure
    Blob, WebDAV, Windows shares (SMB), Kubernetes, container registries
    (also Amazon ECR, Azure and Google with their own logins) and every VPN
    kind.
    All features lists every command by area and asks for what it needs,
    picking servers, databases and VPNs from your list. The last screen shows
    the exact command lines before anything runs, and offers Try it first
    (--dry-run) for a change. Forms never hold a password (the command asks
    for it hidden) and never add --yes, --allow-dangerous or --reveal.
    A password pasted with an address is taken out before it is shown.
  • komando host add, conn add and vpn add typed alone at a terminal ask
    the same questions; with any argument or flag, or for an AI agent, they
    work as before.
  • vpn add --ask-password and --ask-psk: type the VPN login password or
    the pre-shared key (l2tp, ipsec, ikev2) once, hidden, as with host add;
    they are stored as secret:NAME-pass and secret:NAME-psk. AI agents get
    NEEDS_PERSON.
  • Windows servers over OpenSSH: komando host add win1 Administrator@10.0.0.9 --os windows marks a Windows server. komando then
    runs PowerShell there: test, exec, script, facts (Windows version
    and support dates, updates, pending reboot, ports), fs ls/stat/cat/write,
    upload, download, cp (single files), svc status/list/start/stop/restart/enable/disable and shell work; other
    commands stop with NOT_SUPPORTED and a hint before anything runs. See
    docs/features/windows.md.
  • Windows servers over WinRM: komando host add win2 winrm://Administrator@10.0.0.9 --ask-password reaches a Windows server
    through WinRM (what Ansible uses) with komando's own client: HTTPS on
    port 5986 with the certificate checked (?ca=secret:NAME for a private
    CA, ?tls=skip-verify only when asked), NTLM login (?auth=basic for
    local accounts), --via bastions and VPNs. The same Windows commands
    work as over OpenSSH.
  • os:windows and os:linux target selectors.
  • Windows (SMB) shares as storage conns: smb://alice@fileserver/team/reports?domain=CORP
    (or cifs://, or CORP;alice@ for the domain) reaches a Windows file
    server, Samba, a NAS or Azure Files with the same storage ls, cat,
    download, upload and rm as the other kinds, also --via an SSH host
    or a VPN. komando speaks SMB 2 and 3 itself (no smbclient needed), logs
    in with the password from --password-ref, signs every message and
    encrypts when the server asks for it. A guest login is refused, a key
    cannot climb out of the conn's folder with .. (between / or \), an upload
    replaces a file only once the new one is complete, and storage link
    answers NOT_SUPPORTED. komando doctor warns about SMB conns that cross
    the network, since their encryption depends on the server.
  • azure-kv:VAULT/NAME[#JSON_KEY] reads a secret from Azure Key Vault,
    everywhere a --password-ref or another secret reference is taken
    (azure-kv:shop-vault/db-password, or .../NAME/VERSION for an older
    version). komando signs in to Azure itself, without the az program: with
    a service principal (AZURE_TENANT_ID, AZURE_CLIENT_ID,
    AZURE_CLIENT_SECRET), a workload identity on AKS, a token the Azure CLI
    saved while it lasts, or the managed identity on Azure. The token goes
    only to Key Vault hosts, and komando keeps no token.
  • A registry conn for Azure Container Registry
    (registry://myregistry.azurecr.io) without --password-ref logs in with
    your Azure login, as az acr login does: komando trades an Azure token for
    a fresh registry login each time, like it already does for Amazon ECR. It
    uses the same Azure logins as azure-kv:. Without one, the error is
    AZURE_LOGIN_REQUIRED. The Azure token is good for the whole
    subscription, so it goes only over https with the registry's certificate
    checked: a conn with ?tls=false or ?tls=skip-verify needs
    --password-ref.
  • Registry conns for Google Artifact Registry (REGION-docker.pkg.dev) and
    Container Registry (gcr.io, eu.gcr.io, us.gcr.io, asia.gcr.io)
    without --password-ref log in with your Google login: komando gets a
    fresh access token each time and logs in as oauth2accesstoken, as
    gcloud auth configure-docker does, with the credentials it already uses
    for gs:// storage and gcp-sm:. With no Google login at all, public
    images are read without one; an expired login, or a key file that is set
    but missing or broken, gives GCP_LOGIN_REQUIRED.
    The token goes only over https with the registry's certificate checked.
  • komando queue: message queues, starting with Apache Kafka (and
    what speaks its protocol: Redpanda, Amazon MSK, Confluent Cloud). Add a
    cluster as a conn, kafka://USER@BROKER1:9092,BROKER2:9092?tls=true&sasl=scram-sha-512
    (SASL PLAIN or SCRAM with --password-ref, a private CA with
    ?ca=secret:NAME, --via an SSH server or a VPN like any conn).
    queue info, ls, describe, groups and lag read the brokers,
    topics, partitions and consumer groups; queue peek reads the newest or
    oldest messages without joining a consumer group, so no application's
    position moves. queue send and queue create change; queue rm and
    queue purge delete messages and need --allow-dangerous. Every change
    has a real --dry-run (create asks the brokers to check the topic
    only). Design: docs/design/queue.md; guide: docs/features/queues.md.
  • RabbitMQ in komando queue: add a server as a conn,
    amqps://USER@HOST:5671/VHOST (or amqp:// --via an SSH server; the
    path is the vhost, %2F for /), with ?management=15671 to also use
    the management HTTP API. queue info and describe work over AMQP
    alone; queue ls, queue peek, the nodes and the cluster totals need
    the management API. queue peek takes the first messages of a queue and gives every
    one back, so nothing is removed (RabbitMQ marks them redelivered); on a
    quorum queue each peek counts as a delivery, so peek stops with
    DELIVERY_LIMIT_NEAR before a message gets close to its delivery limit.
    queue send publishes a persistent message and waits for the server's
    confirm; queue create --type classic|quorum|stream makes a durable
    queue (--config x-max-length=1000 for its arguments); rm and purge
    need --allow-dangerous. amqp:// straight over the network is refused
    like redis:// unless ?insecure=1. New error codes QUEUE_NOT_FOUND,
    QUEUE_EXISTS and DELIVERY_LIMIT_NEAR. Built on
    github.com/rabbitmq/amqp091-go (BSD-2).
  • NATS JetStream in komando queue: add a server as a conn,
    tls://USER@HOST:4222,HOST2:4222 (or nats:// --via an SSH server),
    logging in with a user and --password-ref, a token (a password
    reference without a user), or a .creds file kept in the vault
    (?creds=secret:NAME); ?domain= for a leaf node's JetStream.
    queue ls lists streams, describe shows a stream with its limits,
    cluster and consumers, groups and lag show consumers (pending, ack
    pending, waiting). queue peek reads messages by their sequence number,
    the newest or (--oldest) the first ones, with no consumer and no
    acknowledgement, so nothing is removed, also from a work-queue stream.
    queue send takes a subject, checks that a stream keeps it, and waits
    for the stream's acknowledgement; queue create makes a stream
    (--config subjects='orders.>' --config max_age=7d, --replicas);
    rm and purge need --allow-dangerous. nats:// straight over the
    network is refused like redis:// unless ?insecure=1. New error codes
    STREAM_NOT_FOUND, STREAM_EXISTS and CONSUMER_NOT_FOUND. Built on
    github.com/nats-io/nats.go and github.com/nats-io/nkeys (Apache-2.0).
  • Amazon SQS in komando queue: add a region as a conn,
    sqs://eu-west-1, logging in like komando's other AWS clients: the
    conn's --option aws_profile=NAME (SSO included, renewed with komando login aws), an access key ID in the URL (sqs://AKIA...@eu-west-1)
    with the secret key from `-...
Read more