Repository navigation
Releases
v0.17.0
Highlights
- Shell keys.
ssh-gate line --shell-accesslets 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 invpn status, and abody_sha256for every script or content a
command sends.
Added
-
KOMANDO_APPROVAL_DEBUG: on a Mac, each approval window adds what it
saw toapproval-debug.login komando's run folder (0600): the keys,
the focus, handler errors, how it ended andosascript'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 withrestrict,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
andcluster shellstay refused, and every other command gets the
answer a key without--shell-accessgets.ssh-gate statusand
ssh-gate lineshowshell_access. Not with--read-only(USAGE).
ssh-gate opens the shell in its own process, after its checks;komando shellitself 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).--fromreads a known_hosts file's@cert-authority
and@revokedlines. A--login askserver is never trusted through a CA. -
komando vpn statusshows a WireGuard session's last handshake, its
age and the tunnel's state:up,idle(no handshake for 3 minutes
and nothing sent) ordead(no handshake for 3 minutes although
something was sent or a keepalive is set). JSON:last_handshake_at,
handshake_age_seconds,tunnel_stateandtunnel_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 asbody_sha256
in the audit record and inmetaof 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 defaultauto, 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 ora+="…"pieces count as one block), or a long run of
\xNNor 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 addanddoctorwarn when a secret's
value is a common word (only letters and shorter than 10 characters, or
a common password such aspassword1). 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-dangerousor
--revealopens 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 asclaude-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, soenv -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-accesskey 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) andsession; the end record addsduration_ms, why it
ended (end:exit,idle,hangup,lostorerror) and the
shell'sexit_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.dbcarry 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 withPOLICY_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 withSTORE_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(andwin-decode-runfor PowerShell),
stops a script or command that decodes hidden text and runs it: a
decoder (base64 -d, also as-dior-dw0,basenc -d,
python3 -m base64 -d,xxd -r,openssl enc -d,printfwith escapes
or%b,rev, a rot13tr)
piped into a shell or interpreter,eval "$(… base64 -d)", a
python -corperl -ethat runs decoded text, a decoded file that a
later step runs, andFromBase64Stringwithiexor
[scriptblock]::Create. It needs--allow-dangerousand 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 newENCODED_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 withFILE_CHANGEDbefore the file on the
server is touched, and the stop is in the audit log (C213). -
db restoretakes itsbody_sha256in the same read that seals the
file, for every caller, so...
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
v0.15.0
Highlights
- Passwords komando never stores.
--login askonhost add,host edit,conn addandconn 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(andjob 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 applyof a file that gives out rights, and aDELETEorUPDATEthat
keeps every row now need--allow-dangerous. - Output contract 2. Every error code means one thing and has one exit
code;meta.contractis 2. Scripts that read error codes should check
"Changed for scripts and agents". - New commands.
import securecrt,storage mkdir,storage mv,
storage chmod,cpbetween two remote places,--continuefor a cut-off
transfer,db killon MongoDB,svc --user-units, andfacts --only. - Releases name their version. The signature of
checksums.txtnow
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|FOLDERadds SecureCRT's SSH2 sessions,
from its exported settings (File > Export Settings, an.xmlfile) or
itsSessionsfolder: host, port, user and key file, with each
session's folder as a group. Other session types, a firewall and a
.ppkkey are listed with what to do. Stored passwords and key
passphrases are never read. -
komando pkg securityworks on zypper (security patches;pkg upgrade --securityrunszypper patch --category security), and on pacman
witharch-audit. Where the repositories publish no security notices
(apk, pacman withoutarch-audit, dnf/yum repositories such as
CentOS's) the list is no longer silently empty: the new
security_noticesfield is false,unclassified_updateslists every
pending update, and a warning says why.pkg upgrade --securitystops
there withSECURITY_UNSUPPORTED(exit 3) and changes nothing; apk,
zypper and pacman servers are no longer inmeta.skipped. -
--user-unitsonkomando svc status,list,start,stop,restart,
reload,enable,disableanddaemon-reloadmanages the login
user's own units (systemctl --user), without sudo. A user with no
systemd manager running stops with the new codeNO_USER_MANAGER
(exit 3); the hint namesloginctl enable-linger USER. -
komando docker prune --volumestakes--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--volumesnow always hasvolumes, empty when none would go. -
MongoDB conns take
komando db kill CONN OPID(stops the operation
db activityshows, withkillOp;--dry-runshows it first; no
--session),komando db user list(the users of every database, with
their roles, never their stored credentials) andkomando 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 grantand
db revokestop withNOT_SUPPORTED, whose hint says to send the
command withdb 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 withHOSTKEY_MISMATCHand
nothing is pinned. The answer hasexpected_fingerprintnext to
fingerprint; the approval rules for AI agents and--resetare as
before. -
komando secret set NAME --newstores a secret only when NAME is not in
the vault yet. A taken name stops withSECRET_EXISTS(exit 8) and
keeps its value,--dry-runincluded. 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 askandkomando 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 asksNAME: Password:(hidden); for an AI agent's command komando opens its own window on the person's screen, which names the agent, the server asuser@address:portand the command (or says it is hidden), and where they type it; the agent never sees it. Apps get the same question through the newengine.Call.AskPasswordhook. A script, an agent with no screen andssh-gategetNEEDS_PERSON(exit 6), and a cancelled window givesDECLINED(exit 6) whose hint iskomando login SERVER; after a cancel the window stays shut for that server for a minute (DECLINEDat once). These are new exit paths for every command that connects to such a server, includingtunnel 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 askserver, 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) getsNEEDS_PERSON(exit 6), which no flag lifts; a dry run names it inmeta.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 WinRMtls=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 getsNEEDS_PERSONand nothing is pinned. Each pin now keeps the login-ask servers a person logged in to with it (a new optionalloginslist in the pin record;host trust --resetclears it). An AI agent that startskomando login's background process (login-holder) itself getsNEEDS_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. Akomando login NAMEthat is still live is used without asking. -
komando conn add NAME URL --login askandkomando conn edit NAME --login ask(alsokomando db addand the otherKIND add): a conn whose password komando never stores, typed by a person at every connect through the same questions as a--login askserver (terminal, app window, komando's window for an AI agent with the same cool-down;NEEDS_PERSONfor a script or an agent with no screen;DECLINEDafter a cancel).--loginon conns takesask,passwordornone, the words of the newloginfield ofconn showandlist. Only a person sets where the password goes (NEEDS_PERSONfor an agent's add,--url,--via, turn to ask, or change to a server or VPN on its way). An agent'sdb dump/db restoreof such a conn getsNEEDS_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|agentonhost addandhost edit: the same words as the newloginfield ofhost show,host list(andlist),host addandhost edit, so what you read back is what you can write.passwordis a stored password (with--ask-passwordor--password-ref) and drops a key;keyneeds--keyor--identity;agentis ssh-agent and~/.sshonly and drops the key and the stored password. A flag that contradicts the word is aUSAGEerror. Switching toaskoragentunlinks the stored password but never deletes the secret:host editnames an unused one in the newsecrets_unusedfield.komando schema host addandhost editlist the new--loginflag (type string, no default). -
komando storage mkdir CONN PATHmakes 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, andstorage listnow shows such an empty folder instead ofFOLDER_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: theremvcopies 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,--overwritemoves the old one aside first and puts it back if the rename fails. A file or folder already at DST stops it withFILE_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) andSTORAGE_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 withSENSITIVE_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 PATHsets t...
v0.14.1
Highlights
- Security fix: a conn's URL settings (Postgres
host=/hostaddr=/service=, Redis sentinels, MongoDB seed hosts, RabbitMQmanagement=) 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~/.pgpassfor Postgres conns, and a SQLite conn can no longer open komando's own store or a credential database; an agent's SQLite query cannotATTACHorVACUUM 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, Redissentinels=, MongoDB more seed hosts and RabbitMQmanagement=, and an AI agent could add them withconn edit --urlwithout 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_timeoutand other timeouts). An agent's change of any of it stops withSECRET_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 dumpanddb restorerun their tools withoutPG*andMYSQL*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 apassfile=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, anddb dump --toanddb restore --fromrefuse the same paths for an agent. An AI agent's query on a SQLite conn may not useATTACHorVACUUM INTOeither (they create a file wherever they are told), andload_extensionstays 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 | shCheck a download: gh attestation verify FILE --repo sgnd/komando
v0.14.0
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 --revealand
key show --revealfrom 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.txtis
signed with the komando project's key.komando updatechecks 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.dbwent missing, a keychain that cannot answer stops changes
instead of guessing, and every store leaves astore.mademarker that
shows the folder had one. - Move everything in one sealed file.
komando export --sealedputs
your servers, secrets and (with--with-keys) private keys in one file
locked with a passphrase, andexport --for-phoneseals it for the
iPhone app. - More for apps and scripts.
cache keysshows each key's type and time
to live,--progresswrites how far a copy is as JSON lines,
cluster describeandcluster logsgive structured detail, and
komando schemalists the kinds eachaddtakes. - 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.mdhas 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 replaceandfs restoretake 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, asfs rmandexecgive:data.results[](host,ok,path,changedorwould_change,replacements,diff,backup,error) anddata.summary; For one server the fields moved:data.pathis nowdata.results[0].path,data.changedisdata.results[0].changed,data.would_changeisdata.results[0].would_change, and the same forreplacements,diff,backup,fromandnote. Error codes stay the same (NO_MATCH,BACKUP_NOT_FOUND...).fs writestays one server.
Added
- See a secret again from the Komando Mac app:
secret show NAME --revealfrom 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 throughssh-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 --revealprints 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:terminalorwindow) and the programs that started komando (started_from), and every refused--revealwith the secret's or key's name. komando export --sealed --to FILEmoves 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-keysadds the private keys the servers use.komando import komando FILEasks for the passphrase and puts the secrets into the vault, never over one that is there with another value unless--overwriteand the person says yes.komando export --for-phone --to FILEseals 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 getsNEEDS_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 indocs/design/sealed-file.md, with test vectors ininternal/sealfile/testdata/vectors.json.exportlists the secrets of a VPN's config and a server's environment variables insecrets_neededtoo, andexport --overwritereplaces the file as its help says (it stopped withFILE_EXISTS).cache keysgives each key's type and time to live, never its value: the JSON hasitems(key,type,ttl_seconds; -1 = no expiry, null = unknown) next to the unchangedkeys, and the text shows KEY, TYPE and TTL columns. On Redis and Valkey,TYPEandPTTLfor the whole page go in one round trip (one per master in a Cluster); on memcached the type isstringand 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 addandkomando schema conn add(anddb add,cache add,queue add,storage add,cluster add,registry add) list the kinds each takes underadd_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 whethervpn upopens 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 --helpnow shows its "Which flags go with which VPN kind" table from the same list, andvpn addrefuses a flag the list does not give that kind, as it did before.--progressonupload,download,cp,syncandstorage 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 isnullwhen komando cannot know it. The result on stdout is unchanged, and without--progress(or in text mode) nothing changes.cluster describe -o jsonof a Kubernetes object addsdata.detailfor a program to read:kind,name,namespace,status(a pod's phase,ready 2/3for a workload),created_at,labels,conditions[]andevents[](type,reason,message,count,last_seen_at). It never holds a Secret's values.cluster logs -o jsonaddsdata.lines[](logged_at,pod,container,text) anddata.truncated(alsometa.truncated) when a pod sent--limitlines. The fields there before stay as they were.job start --stdin-file FILEgives the job's command FILE as its input,job start --sudo-user USERruns it as USER withsudo -u(both as inexec), andjob start --timeout 2hstops the job after that long. A timed-out job iskilledwithtimed_out: trueinjob status, andjob waitsays the timeout stopped it. Whenexectimes out with--sudo-useror--stdin-file FILE, its hint now names the matchingjob startline.komando statuslists 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 asaws sso logoutdoes: AWS is told to end the token and the login in~/.aws/sso/cacheis deleted. Before,komando logout awswas read as a server named aws.- Docs: "Restore from a backup" in the import guide: which backups of
~/.komandoopen on this computer and on a new one (passphrase,store.key, keychain), and what to do aboutSTORE_OLD_COPYafter a restore. registry rmand 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 prunereads repositories of up to 10000 tags (it stopped above 1000 withTOO_MANY_TAGS), asking for the tags' digests 8 at a time.key revoke --all-users(with sudo) removes the key from theauthorized_keysof 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_idleto a longer time, or to0(never close), now counts as a safety setting likelogin_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.pubnext to the key file, assshuses it) is offered at login, then the key alone, so servers that trust an SSH certificate authority let komando in. `key add --cer...
v0.13.0
Highlights
- People type commands too. The plain-language menu is gone. Type a
command likekomando 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.
listis 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 schemasays 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-ycan no
longer be read as komando's--yes. - Breaking for scripts: old names are removed, not kept. For example
recipe add --sudois--needs-sudo,db dump --onis--run-on,
pkg security --applyispkg upgrade --security,-nin the cluster
commands is--namespace, andsecret rm,key rm --delete-fileand
fs rmneed--allow-dangerous.komando sealis 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 applyno 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_FOUNDis anssh_keyor acache_key, and so on).meta.would_need: under--dry-run, the flags the real run needs
(--allow-dangerous,--yes).meta.truncated:truewhen a list stopped at its--limit.meta.not_simulated: under--dry-run, the steps the dry run could not
try.- In
komando schema:confirmon each command (its approval tiers and
the flag each needs) anddefault_fromon 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(andcluster run -- apply --force-conflicts) takes over fields another field manager owns, as
kubectl apply --server-side --force-conflictsdoes. Without it,
apply no longer takes them over: an autoscaler's replicas or a
kubectl editstop it withK8S_CONFLICT, which names the manager
and the fields, and nothing is applied. A protected cluster still
needs a person's yes either way.error.suggestionholds 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
suggestskomando docker ps TARGET,kubectlkomando cluster run TARGET -- ...,psqlandmysqlkomando db query CONN,get
komando list,delete web1komando host rm web1.- docs/features/error-codes.md has a table of the codes that mean the
same (PROTECTED_HOSTandPROTECTED_TARGET,TARGET_EMPTYand
NO_MATCHING_TARGETS, ...) and which one new e...
v0.12.0
Highlights
- Upgrading: run
komando sealonce. komando now keeps everything in
one sealed file,store.db. A folder from an earlier komando must be
moved first: until a person runskomando sealin their own terminal,
every other command stops withNEEDS_SEAL, for AI agents too. It reads
everything back before switching, keeps the old files in a sealed
archive, andkomando seal --undoputs 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 withSTORE_OLD_COPY. - Windows: komando runs natively on Windows, with Credential Manager
and its own "Allow once" window. ssh-commandkeeps 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 --shortshowsvpn:N(how many VPNs are
up, not their names), a missing database privilege exits 5, and
job wait --wait-timeoutis 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 withSTORE_NEWER.
komando works only on the sealed store. komando sealmoves 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 andkomando seal --undoputs them back. A
person at a terminal only. A folder of before must be sealed before
use: until then every other command (exceptdoctor,version,help,
guideandschema) stops withNEEDS_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 withSTORE_OLD_COPY(exit 6) until a
person runskomando 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.zipreleases.
Removed
- OpenVPN OS mode (
vpn add --os-mode), which ran theopenvpnprogram
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 upstops withVPN_OS_MODE_REMOVEDuntil
you add it again withkomando vpn add NAME openvpn --config FILE.ovpn --check HOST:PORT --overwrite. job wait --wait-timeoutis gone: use--timeout(still 10m when not
given). The hidden--targetflag ofkomando listandhost exportis
gone too: give the target as the argument.komando testresults no longer carryname: readhost, as with
factsandexec.- A server saved with the 0.1.0 field
jumpis no longer moved tovia
on load. - The files of before as a way of working:
state.json,vault.json,
vault.key,known_hosts,audit.jsonland key files underkeys/are
only read, bykomando seal.key gen --overwriteis 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/httppackage. 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), anduser lock/user rmrefuse root and the user
komando logs in as. net httptakes only http:// and https:// URLs. A URL that started
with-reached curl as an option.tunnel start -Ron 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), soaudit --failedshows
them.guide installis audited too. - An AI agent cannot run
secret keychain; it needs a person, as
secret passphrasealready did. It used to wait on the keychain prompt.
Changed
komando host ssh-commandon 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-commandgives 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 withSSH_AGENT_NEEDED. Keys
made bykomando key genhave no file any more (key shownames 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 instore.db;config showlists 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 uploadandstorage downloadareuploadand
download.svc logsanddocker logsarelogs --unitandlogs --container.
- Old names for one release. These still work, print
komando: use X now, and go away in the next release:script TARGET FILEis nowexec TARGET --script FILE.host importisimport ssh-configorimport komando, and
host exportisexport(export kind:hostfor servers only).promptisstatus --short.db query --csv/--tsvaredb query -o csv/-o tsv. An export
has every row; one larger than--max-outputfails instead of being
cut.
- Removed: the aliases
ops,snippet,snippetsanddiag(use
recipe),inspectforfacts,systemdforsvc, the hidden
policy allow(usepolicy rm), and the built-in recipes that a
command already does (recipe run portsnow namesnet ports). - One error code, one exit code. Codes that exited differently in
different places now always use the exit inkomando schema:
DB_AUTH,QUEUE_AUTH,STORAGE_AUTHandDB_CONNECTexit 4;
DB_PRIVILEGE,PERMISSION_DENIED,QUEUE_ERROR,TOOL_FAILEDand
UNSAFE_PATHexit 5;NOT_A_FOLDERexits 8. A vault that cannot be
opened for a server's password givesVAULT_LOCKED/VAULT_KEY/
VAULT_DECRYPTinstead ofSECRET_UNRESOLVED. listandlswork 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 addand the other family adds refuse another
family's URL (WRONG_KIND), andcluster add k8s://...asks for the
kubeconfig it needs.- The names aws, gcp and azure are kept for
komando login; a server
cannot take them. policyrule ids come from the pattern (custom-1a2b3c4d), so
removing one rule no longer renumbers the others.registry rmneeds 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 uninstallandvpn upsay what the real run
would need;registry copy --dry-runchecks both registries; a
--write --dry-runon 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 ofNAME; 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 --tailon a big file reads its end;
cpandsyncaccepttag:,label:andkind:and keep the port
ofuser@addr:port;--env KEY=a,bkeeps the comma; a script whose
#!line usesenv -Sruns the right interpreter; uploading a file
that holds a[hidden]value is refused everywhere;
upload CONN DIR -rputs the folder under its own name. - Databases and caches: memcached keys with a TTL over 30 days no...
- Dry runs: a previewed edit says "would change", not "changed";
v0.11.0
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 PATHputs the backup
back, andfs replace/fs write --backupprint 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 addandregistry addopen the same form asconn 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 | shCheck a download: gh attestation verify FILE --repo sgnd/komando
v0.10.0
Highlights
- GlobalProtect with a browser sign-in, including Prisma Access with
the Cloud Authentication Service:vpn upopens 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 upnow 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 mvandconn mv(washost edit --renameandconn edit --rename).recipe add --mutatingis 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 addno longer says a VPN needsopenconnectandocproxywhen
komando's own client is the one that will run it.- A second
komando vpn up NAMEthat 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 | shCheck a download: gh attestation verify FILE --repo sgnd/komando
v0.9.0
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 andshellrun 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 withdb query,schema,explain,infoand 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-dangerousor--reveal.
A password pasted with an address is taken out before it is shown. komando host add,conn addandvpn addtyped 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-passwordand--ask-psk: type the VPN login password or
the pre-shared key (l2tp, ipsec, ikev2) once, hidden, as withhost add;
they are stored assecret:NAME-passandsecret:NAME-psk. AI agents get
NEEDS_PERSON.- Windows servers over OpenSSH:
komando host add win1 Administrator@10.0.0.9 --os windowsmarks 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/disableandshellwork; other
commands stop withNOT_SUPPORTEDand 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-passwordreaches a Windows server
through WinRM (what Ansible uses) with komando's own client: HTTPS on
port 5986 with the certificate checked (?ca=secret:NAMEfor a private
CA,?tls=skip-verifyonly when asked), NTLM login (?auth=basicfor
local accounts),--viabastions and VPNs. The same Windows commands
work as over OpenSSH. os:windowsandos:linuxtarget selectors.- Windows (SMB) shares as storage conns:
smb://alice@fileserver/team/reports?domain=CORP
(orcifs://, orCORP;alice@for the domain) reaches a Windows file
server, Samba, a NAS or Azure Files with the samestorage ls,cat,
download,uploadandrmas the other kinds, also--viaan SSH host
or a VPN. komando speaks SMB 2 and 3 itself (nosmbclientneeded), 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, andstorage link
answersNOT_SUPPORTED.komando doctorwarns 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-refor another secret reference is taken
(azure-kv:shop-vault/db-password, or.../NAME/VERSIONfor an older
version). komando signs in to Azure itself, without theazprogram: 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-reflogs in with
your Azure login, asaz acr logindoes: 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 asazure-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=falseor?tls=skip-verifyneeds
--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-reflog in with your Google login: komando gets a
fresh access token each time and logs in asoauth2accesstoken, as
gcloud auth configure-dockerdoes, with the credentials it already uses
forgs://storage andgcp-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, givesGCP_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,--viaan SSH server or a VPN like any conn).
queue info,ls,describe,groupsandlagread the brokers,
topics, partitions and consumer groups;queue peekreads the newest or
oldest messages without joining a consumer group, so no application's
position moves.queue sendandqueue createchange;queue rmand
queue purgedelete messages and need--allow-dangerous. Every change
has a real--dry-run(createasks 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(oramqp://--via an SSH server; the
path is the vhost,%2Ffor/), with?management=15671to also use
the management HTTP API.queue infoanddescribework over AMQP
alone;queue ls,queue peek, the nodes and the cluster totals need
the management API.queue peektakes 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_NEARbefore a message gets close to its delivery limit.
queue sendpublishes a persistent message and waits for the server's
confirm;queue create --type classic|quorum|streammakes a durable
queue (--config x-max-length=1000for its arguments);rmandpurge
need--allow-dangerous.amqp://straight over the network is refused
likeredis://unless?insecure=1. New error codesQUEUE_NOT_FOUND,
QUEUE_EXISTSandDELIVERY_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(ornats://--via an SSH server),
logging in with a user and--password-ref, a token (a password
reference without a user), or a.credsfile kept in the vault
(?creds=secret:NAME);?domain=for a leaf node's JetStream.
queue lslists streams,describeshows a stream with its limits,
cluster and consumers,groupsandlagshow consumers (pending, ack
pending, waiting).queue peekreads 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 sendtakes a subject, checks that a stream keeps it, and waits
for the stream's acknowledgement;queue createmakes a stream
(--config subjects='orders.>' --config max_age=7d,--replicas);
rmandpurgeneed--allow-dangerous.nats://straight over the
network is refused likeredis://unless?insecure=1. New error codes
STREAM_NOT_FOUND,STREAM_EXISTSandCONSUMER_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 withkomando login aws), an access key ID in the URL (sqs://AKIA...@eu-west-1)
with the secret key from `-...