Repository navigation
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
longer expire at once;PRAGMA journal_mode=DELETEis not called a
mass delete; statements that load code (CREATE EXTENSION,LOAD)
count as destructive;cache run "SET a 1"in one argument works;
XREADis a read;MONITOR/SUBSCRIBEare refused instead of
hanging. - Clusters:
--timeoutnow bounds every cluster and registry call
(an unreachable cluster no longer hangs for minutes);import kubeconfigreads$KUBECONFIG, resolves relative certificate paths
from the kubeconfig's folder and no longer gives one context's name to
another;cluster statuschecks StatefulSets and DaemonSets. - Servers:
docker logs --sudouses sudo;rebootrefuses Windows
servers before it starts;cert checkno longer fails at random on
servers that reject post-quantum key shares;pkg updaterefuses
package names it would have ignored. - VPNs and settings:
vpn upthat fails is audited as failed;
vpn mvmoves the VPN's own secrets to the new name, and adding a VPN again aftervpn rmreuses them;vpn edit
can change--portal;config showJSON lists every setting;
doctornotices an agent guard that points to a missing program;
guide uninstallchecks first, then removes, so a stop changes
nothing. - Menu and forms: Add something > Database no longer crashes;
komando db addalone opens the database form; "Protect or unprotect"
can unprotect; the review shows exactly the command that runs; Check
everything runsdoctoreven when a server fails; a group's tasks
leave out one-server tasks; risky tasks (fs rm,docker prune,
user rm) get the "cannot be undone" warning.
- Dry runs: a previewed edit says "would change", not "changed";
-
Running now is what runs on this computer. It lists and counts
VPNs, logins and port forwards only. Background jobs run on the servers
and keep going without this computer, so they sit under "Background
jobs" (the same list as on a server) and are not counted; its count
leaves out jobs that ended: komando remembers a job ended whenever it checks it (job status,
wait,list --refresh,rm) and leaves out jobs whose server left
your list. "Check which jobs still run" asks every server.
Update: komando update (sudo komando update when komando is in
/usr/local/bin). From 0.6.0 or older, or to install, run:
curl -fsSL https://raw.githubusercontent.com/sgnd/komando/main/install.sh | shCheck a download: gh attestation verify FILE --repo sgnd/komando