Repository navigation
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 errors use. All of them
stay. -
error.thingsays which kind of item a shared not-found code is
about:KEY_NOT_FOUNDisssh_keyorcache_key,NOT_FOUNDa Swarm
service, stack or other object,REGISTRY_NOT_FOUNDarepositoryor
animage_tag,K8S_NOT_FOUNDak8s_object,k8s_podor
k8s_container,CONN_NOT_FOUNDaconnor aselectorthat picked
none. Additive; codes are unchanged. docs/features/error-codes.md
lists the values and the codes a later contract splits them into. -
vpn add/edit --label KEY=VALUEand--protected, andvpn edit --unset(user, password-ref, psk-ref, id, remote-id, ca, check, notes),
as on host and conn.vpn editandvpn rmtake several names or a
selector (NAME|TARGET...);vpn rmlists the VPNs inremoved
(would_removeunder--dry-run), even for one. A protected VPN needs--yes(a person's
yes) to be changed, replaced or removed (PROTECTED_TARGET);
--protected=falseand--mfa=falseneed it too (SAFETY_SETTING).
vpn editof several VPNs prints{"vpns": [...], "changed": [...]};
one VPN prints{"vpn": ...}as before. -
fs write --value TEXTworks as another name for--content. -
komando rename OLD NEWrenames one entry of any kind: the server,
conn, VPN, secret, key or group named OLD, through that kind's own
rename (same checks, same envelope, e.g.host.rename). When two kinds
share the name it names both commands (usage error); a name nothing
has is a usage error, as before, whose hint shows--starts-with.
rename --starts-with OLD NEWrenames by prefix. -
komando schema NAMEdescribes the command a second name runs:
an alias (schema fs ls), a command ID as the envelope writes it
(schema secret.show,schema host.rename) or a hidden synonym (schema group show). Before, hidden names gave
COMMAND_NOT_FOUND. -
More names find the command you mean, each for good and silently:
plurals and help words for every noun (servers,server,
databases,dbs,files,vpns,caches,queues,clusters,
registries,tunnels,policies,crons,services,
containers);cache list/ls(=cache keys);group show GROUP,
job show,tunnel show TUNNEL,recipe show NAME,policy add
(=deny),secret add(=set);describeondocker inspect
andregistry inspect;createonuser addanddb user add;
copyoncpandsecret cp;job stop(=kill);
secret passwd(=passphrase);cluster info TARGET
(=cluster status TARGET). The envelope'scommandis that of the
command they run. -
Every list command takes
-n/--limit(--limitonly incluster,
where-nis the namespace):list,host/conn/vpn/key/secret/ recipe/policy/job/tunnel/group list,svc/user/cron list,
docker ps/images/stats,pkg installed/upgradable,net ports,
db user ls,db activity,db locks,queue groups,
cluster historyandcluster helm ls/history. Where there was no
limit the default is 0, all, as before. A list that stops at its limit
setsmeta.truncated: true(new, additive), and in text mode one line
on stderr saysshowing N of more; use --limit 0 for all. On commands
that run on several servers the limit counts per server. -
fs lscounts with-n/--limit(default 1000, as before; 0 lists
everything);--maxthere is gone.
job logstakes-n/--limit Nfor the last lines, and--tailworks
on every log reader (logs,svc logs,docker logs,
cluster logs,job logs) as another name for--limit. -
An unknown short flag gets a did-you-mean:
-nwhere a command counts
with--limit,-it(komando runs one command;komando shellor
komando cluster shellfor a shell),-L/-R/-D(port forwarding
iskomando tunnel start),-wfor--wait, and otherwise the long
flags that start with the same letter. -
fs mkdir -p(and--parents) is accepted and changes nothing:
fs mkdiralways makes the missing parents. -
More short flags, each with the meaning it has everywhere else:
cluster apply -f FILE;-cfor--containeronlogsand
cluster deploy;-afor--alloncache info,
cluster helm values,db activity,user listandguide;
docker compose -C DIR;host add/edit -e KEY=VALUE. A command that
changes things gets no-a(fs replace,tunnel stop,vpn down,
logoutkeep--allonly). -
komando schemanames where a flag's real default comes from:
--timeout,--connect-timeout,--parallel,--host-key-policyand
--max-outputcarrydefault_from(setting:default_timeoutand so
on), and their help names the setting. Help texts give example values
as "e.g. 30m", so they are not read as defaults. -
upload,downloadandcpshow the progress of a file of 8 MiB or
more going to or from one server on stderr, at a person's terminal only. -
A Secrets page: save, use, check, rename,
copy and remove secrets, where the key is kept, and what an AI agent
runs or gets at each step. -
job start --script FILE(with--argand--interpreter) runs a
script from this computer as a background job, asexec --scriptdoes
in the foreground. A longexec --scriptthat times out names it. -
komando schemagives each command aconfirmlist (additive): the
approval tier it always has, then each tier it reaches only sometimes,
with the flag an AI agent or a script adds (--allow-dangerous,--yes,
none for a person-only step) and when. It comes from the same rule table
as komando's own stops. -
A dry run that could not try a step says so in the new
meta.not_simulated(additive):db query --dry-runwith a statement
that commits by itself (MySQL DDL, sqlite VACUUM, CREATE DATABASE ...)
lists it there; its result already saidskipped.
Changed
-
The docs are rewritten for beginners: every feature page starts with the
most common task as a command, shows what komando asks when something
is left out, and ends with its limits and troubleshooting. The README is
short, installing (also on Windows) has its own page, and the rules
komando follows are indocs/design/principles.mdand the command
standard. Design notes and reviews left the repository. -
Commands named in hints, help and Next: lines use the words of the
command they name:komando test TARGET(wastest CONNandtest NAME; komando fills in the name you gave, a VPN's too),komando shell SERVER,komando conn rm TARGET,komando storage download CONN OBJECT,komando registry rm CONN IMAGE,komando cluster history TARGET TYPE/NAME,komando user lock web1 USER,komando policy rm RULE,komando queue lag CONN CONSUMERand others. The
groupshost,conn,vpn,key,secret,group,job,fs,
policy,config,db userandcluster helmshow examples that
walk look, dry run, change. -
Examples use one set of sample names: servers
web1,web2,db1,
@web; databasesprod-db,staging-db; cacheprod-redis; queue
prod-kafka; storagebackups; registriesghcr,harbor;
clustersprod-k8s,swarm1; VPNoffice; usersalice,app. A
conn is never named after its family (cache,events), and cluster
objects are writtenTYPE/NAME(pod/api-7d9f-x2). -
Help says "conn" for a database, cache, queue, storage, cluster or
registry komando talks to (conn kinds,conn rename,list, the
name check of the add questions), never "service" or "resource", which
mean a systemd unit or a cluster object. -
Every change command's
--helphas a generatedSafety:line after
its first paragraph, from the same rule table askomando schema's
confirm(what it asks of a person, an AI agent and a script).
Person-only commands end their summary with "(person only)". Help text
is wrapped at 76 columns. Each change command shows a--dry-run
example, and an example with--yes,--allow-dangerousor
--revealcomes right after its dry run and ends with# after a person's yes. -
Command summaries (
Short, the line in every list) follow one shape:
a verb phrase with no flags, semicolons or approval notes ("needs
--allow-dangerous" is gone from them; the generated Safety line in the
help says it). Group summaries name the area and its main jobs in plain
verbs (Services on servers: check, start, stop, read logs).
Inventoryrmcommands end with "(from komando only)", andsecret rmsays the value goes for good.host list,conn test,svc logs
and the other second spellings say what they do; "Same askomando ..." moved to the first line of their help. -
komando --helpstarts with Start (host add,conn add,import ssh-config,list,test TARGET,guide install), and a new
Inventory group holdshost,conn,group,import,exportand
rename, which Setup no longer crowds.komandoalone at a terminal
shows the same groups. -
Usage lines give each argument word one meaning (
komando schema's
usagevalues change; every command takes the same arguments as
before). SSH keys arekey deploy NAME TARGETandkey revoke NAME TARGET; a storage object isOBJECTand a settingSETTING, soKEY
is only a cache key;queue lag CONN CONSUMER; thefscommands that
take one server andshellsaySERVER;login [SERVER],logout [SERVER...],net check TARGET ADDRESS:PORT...,net dns TARGET DOMAIN; accounts areUSER(user add TARGET USER,db user add CONN USER);job ... JOB,tunnel stop [TUNNEL...],cron set/rm TARGET NAME,policy rm RULE; cluster objects areTYPE/NAME(TYPE NAME
still works); what runs after--is-- COMMAND...or-- ARGS...;
a required flag shows with its value (db restore CONN --from FILE,
cron set ... --schedule SCHEDULE,ssh-gate line PUBLIC_KEY --name NAME,db user add/passwd ... --password-ref REF,tunnel start TARGET (-L SPEC | -R SPEC | -D SPEC));host add NAME [[USER@]ADDRESS[:PORT]],host/conn/vpn editandrm TARGET...,
registry inspect/rm CONN IMAGE,cert check TARGET|URL.... -
A person asked for a TARGET reads which kinds it takes (
Target (servers),Target (clusters),Target (servers or file storage)),
and the picker and Tab offer only those.fs catand the other
one-server commands pick one server. -
More error hints name the komando command to run:
AMBIGUOUS_MATCH
(komando fs cat),BUILTIN_RULE(komando policy list),
CACHE_AUTHandDB_CONNECT(komando conn show),
CONNECTION_REFUSED(komando host show, now in backticks),
DOCTOR_FAILED,KEY_UNREADABLE,NO_MATCHING_TARGETS,
PORT_IN_USE,RECIPE_EXISTS,UNKNOWN_SETTING,VPN_IN_USEand
STORE_NEWER(komando update). -
An unknown command word suggests at most two names, within one typo
for a word of four letters or fewer and two for a longer one:komando psno longer suggests cp, db, fs, pkg and vpn. The hint names a
command only when there is one suggestion. -
Commands in hints use the words of the command they name, and komando
fills them in: drivers saykomando test CONN(waskomando conn test NAME), andkomando login SERVER,komando shell SERVER,
komando fs stat SERVER ~/.sshandkomando net check TARGET ADDRESS:443replace HOST. The target the command was given now fills
SERVER (a server) and NAME (in a command of its own noun, such as
komando conn edit NAME) as well as TARGET and CONN. -
Every safety stop a flag lifts is built by one helper, so its hint
reads the same wherever it comes from, results per server included
(check with --dry-run, ask the user; once they agree, run it again with --yes).komando schema'serror_codesshows that hint for
POLICY_BLOCKED,PROTECTED_*,SAFETY_SETTING,
SECRET_DESTINATION,OPEN_BINDandCONFIRM_REQUIRED. The
PROTECTED_HOSTmessage says "server" (was "host"). Advice a hint
carried (log in as another user first, trusting a kubeconfig program)
is in the message now. "re-run with" reads "run it again with". -
Error hints say only the next step. What happened ("nothing was
changed", "nothing was renamed", "the file was not changed") moved to
the end oferror.message, and every retry reads "run it again"
(was "try again", "re-run", "run the command again").RESTORE_FAILED
says what the database holds per engine (PostgreSQL: nothing changed;
MySQL: the statements before the line stay) and its hint is the
komando db restoreline to run again. A person's no (DECLINED) and
Ctrl-C (CANCELLED) hints say to run it again. Codes and exits are
unchanged. -
A name komando does not find is worded one way in
error.message:
no server named "web9",no topic named "orders",no cache key named "x"(washost "web9" not found,topic orders does not existand others). The word is the one people read (server, SSH key,
VPN), neverhost.error.messageis free text; codes are unchanged. -
Every error code is written out in the source:
HOST_EXISTS,
CONN_EXISTSandVPN_EXISTS(and the not-found codes ofhost,
conn,vpn,job,key,recipe,secretandtunnel) were
built from the kind and missing fromkomando schema's
error_codes; they are listed now. Codes and exits are unchanged. -
Every safety stop that a flag lifts now has one hint wording, naming
every flag the real run needs. An AI agent readscheck with --dry-run, ask the user; once they agree, run it again with --yes (komando then asks them in a window on their screen); a script readscheck with --dry-run, then run it again with --allow-dangerous:followed by its own command
line with the flag filled in (the flag goes before--). In a dry
run,meta.would_be_blocked.hintsays to run it again without
--dry-run. Codes, messages and exit codes are unchanged; a few
messages gained the advice their hint carried (a credential plugin, a
proxy command, an open tunnel address, trusting a kubeconfig program). -
storage linkandcluster forwardarekind: changeinkomando schema(wereread): they hand out access and already stopped on a
protected target. An ssh-gate key added with--read-onlyis refused
them (SSH_GATE_READ_ONLY, as before); a full key still runs them. At a
terminal a filled-in one asksRun it?like any change. -
Replacing a pinned host key is for a person at a terminal only.
komando host trust NAME --resetshows the old and new key and asks
once (one question for a group, with "(protected)" when it is). An AI
agent or a script getsNEEDS_PERSON(exit 6; wasSAFETY_SETTING,
which--yeslifted), before anything is fetched when a key is pinned,
and no flag lifts it; the hint names the command for a person to run.
A server with no pin yet is pinned as before. -
At a terminal,
registry pruneasks you to type the repository whose
old images go (Type the name shop/api), not the conn's name. -
secret rm,key rm --delete-file(a key komando made) and every
fs rmnow need--allow-dangerousfrom an AI agent or a script:
what they delete has no copy. Without it they stop with
POLICY_BLOCKED(exit 6);--dry-runshows what would go and lists
the flag inmeta.would_need. At a terminal a person types the name
of what goes instead.fs rmon a protected server stops with
POLICY_BLOCKEDfirst now (wasPROTECTED_HOST), and its hint names
--yesas well.cron rmandpkg rm(not an essential package) need
no flag, as before. -
A command komando filled in at a terminal asks
Run it?and then, for
a step that cannot be undone, the typed name once, in the command
itself; before, a promptedcache rmorcluster rmasked for a name
twice (and two different ones).cron rm,pkg rm(not an essential
package) anddb killask for the name of what goes instead ofRun it?; they still need no flag from an agent or a script. -
At a terminal, a step that cannot be undone asks you to type the name
of what goes (the key, file, secret, topic, image or user), or how many
when several go (Type 37 (objects under daily/ in backups) to continue), or the server's or conn's name for a whole-target step;
never the word yes. On a protected target that one question covers the
protection too, so komando no longer asks a [y/N] after it. A policy hit
on a--proxy-commandor a cluster login program asks for the name
instead of [y/N]. The questions use three forms:NAME (protected): ... Continue? [y/N],Dangerous: ...with the typed name, andThis turns off a komando safety check: ... Continue? [y/N]. -
A destructive step on a protected target: the POLICY_BLOCKED hint now
names both flags (--allow-dangerous and --yes), and a dry run lists
every flag the real run needs in the newmeta.would_need
(["--allow-dangerous","--yes"]); before, a dry run stopped looking at
the first stop. -
A person who answers no when komando asks before running a filled-in
command (Run it?, the typed name) gets exit 6, like a no at any safety
question, with the new codeDECLINEDandCancelled. Nothing was changed.(wasCANCELLED, exit 1). Ctrl-C there staysCANCELLED,
exit 1, and now saysStopped.. AI agents and scripts are never asked,
so nothing changes for them. -
aws,gcpandazureare reserved names for conns and VPNs too, as
for servers and asallis:conn add,vpn add,renameand
importrefuse them (usage error, exit 2). An older entry with such a
name keeps working;komando login awsstays the cloud login and notes
on stderr (and inmeta.warnings) how to rename it, anddoctorwarns. -
komando update NAMEwith the name of a server or conn (or a selector
like@web) is a usage error (exit 2) whose hint is
komando pkg upgrade NAME; before, it was taken as a version to
install. A version (update v0.6.0) works as before. -
Security updates are installed with
komando pkg upgrade TARGET --security(with--keep-goingand--refresh): the same rollout
as before, one server at a time with a check before and after, the
same stops, andpkg.upgradein the envelope and the audit log (was
pkg.security).pkg securitynow only looks;pkg security --apply
is gone. -
vpn add/edit --proxy-addressis the address of a SOCKS or HTTP proxy
VPN (was--address, which onhost addis the server's address), and
policy check --conn-kind KINDrates a statement for a conn kind (was
--for, while--kindelsewhere is a list). The old names are gone. -
recipe add --needs-sudomarks a saved recipe as one that runs with
sudo (was--sudo, which elsewhere runs the command itself with sudo),
andcronreads root's crontab with--user root(--sudo/-sthere
is gone). The old flags are gone. -
db dumpanddb restorename the server that runs pg_dump,
mysqldump or pg_restore with--run-on HOST(was--on, which on
db grantnames what the privileges are on).--onon dump and
restore is gone. -
komando renameswitches read as switches:--starts-with(was
--prefix, which elsewhere takes a value),--in-notes(was
--notes) and--in-labels(was--labels). The old names are gone. -
host edit,conn editandvpn editshow--add-groupand
--add-tagin help;--group/-gand--tag/-tstill work there, for
good, and are no longer listed. -
docker logsno longer shows--priority(a container log has none)
andsvc logsno longer shows--timestamps(the journal always has
times). Neither command takes that flag any more. -
queue peek --idle 10sis how long a Kafka peek waits with no new
message (was--wait, which elsewhere means "wait for the result").
--waitis gone. -
cluster rollbacktakes the revision as--revision N(kubectl's
--to-revisionworks too, for good).--tois gone. -
--fromnow always means a file on this computer (db restore,
fs write,queue send). The MySQL account host is--from-hoston
db grant,db revoke,db user show/add/passwd/rm, and the backup
copyfs restoreputs back is--copy PATH. The old--fromthere is
gone. -
The top-level
komando forward(another name fortunnel, easy to
mix up withcluster forward) is gone: usekomando tunnel(orpf). -
db user show CONN USERshows what a database user may do (was
db grants, one letter fromdb grant, which is gone); the envelope's
commandisdb.user.show(wasdb.grants). -
listis the one listing verb:cluster list,cluster helm list,
db user list,fs list,queue list,registry listand
storage listare the names in help, hints and docs.lskeeps
working on every list command for good. The envelope'scommandis
fs.listand so on (wasfs.ls,cluster.ls,cluster.helm.ls,
db.user.ls,queue.ls,registry.ls,storage.ls). -
secret show NAMEis the name for checking a secret (it never prints
the value to an agent);secret getkeeps working for good. The
envelope'scommandissecret.show(wassecret.get), and an
agent's output is masked as before. -
Renaming an item is
rename:host rename,conn rename,
vpn rename,key rename,secret renameandgroup rename OLD NEW.
mvkeeps working there for good and prints nothing extra. The
envelope'scommandishost.renameand so on (washost.mv,
conn.mv,vpn.mv,key.mv,secret.mv,group.mv).fs mvis
unchanged. -
cache get --limitis listed asintinkomando schema(was
int64); the values it takes are the same. -
storage rm --prefixnames its safety cap--max-remove(default
1000), so it is not taken for a list's--limit.--limitand-n
there are gone.
TheTOO_MANYmessage and hint name--max-remove. -
In
clustercommands,-nis now--namespace, as in kubectl, on
all 20 commands that take a namespace.cluster events,logsand
lskeep--limit, now without a short form. A number after-n
there (-n 50, the old count) is refused (exit 2) with the hint
"--limit 50, or--namespace=50for a namespace named 50", so an
old command line never reads 50 as a namespace. -
--env(host add/edit),--labeland--optiontake one KEY=VALUE
each time and no longer split on commas. Repeat the flag for more:
--label team=ops --label env=prod. A value keeps its commas, and
--option a=on,b=x(two pairs in one) is now a usage error (exit 2)
that shows the repeated form, never one option.komando schemalists
these flags asstringArray. -
queue peek/send --partitionandqueue create --partitions/--replicas
no longer show-1as their default: their help says "default: the
broker's", andkomando schemalists no default for them. Leaving them
out means the broker decides;-1is a usage error. -
Every size flag reads sizes the same way:
--max-output, and
--max-bytesonfs cat,storage cat,job logs,db queryand
db explain, take bytes or256KiB,10MB,1GB(KB = KiB = 1024).
--max-output 256KiBwas refused before.komando schemalists them
with typebytes. -
Every flag that takes a time (
--timeout,--connect-timeout,
--wait,--interval,--expires,--ttl,--warn,--older-than)
reads it the same way:30s,10m,2hor7d, and0. Days now
work everywhere, a time below 0 is refused while the flags are read, and
komando schemalists these flags with typedurationand short
defaults (10m, not10m0s).svc restart --wait 10andreboot --wait 600need a unit now (10s,600s). -
One rule table now says what a command needs before it runs; the
stops stay in the commands, and a test checks each recorded stop
against the table. At a terminal, a command komando asked you to fill in asks you to type the
target's name for every change that stops an AI agent as dangerous:
reboot,svc stopof sshd,sync --deleteanddb killnow ask
for the name instead ofRun it?. What AI agents and scripts get is
unchanged. -
The test that records what AI agents and scripts get now also records
every safety stop komando can show without a server (50 command lines:
dangerous commands, protected servers and conns, safety settings,
write flags, a large group and person-only commands), so a later change
cannot quietly drop one. -
At a terminal,
group rmnow ends with the way back:
Next: komando group add GROUP TARGET.... Deleting a group of more than
3 members still needs--yesfrom an AI agent or a script. -
Commands that hand words to another program now need
--before
them:exec,job start,docker exec,docker compose,
docker raw,cluster exec,cluster shell,cluster runand
cache run.komando exec web1 apt-get install -y nginxread-y
as komando's own--yes, and a trailing--dry-runwas taken by
komando while the rest ran; such a line is now a usage error (exit 2)
that runs nothing and shows the form with--. komando's flags still
go anywhere before--, and-cand--scriptare unchanged.
job start TARGET COMMANDwithout--andcache run CONN "GET k"
are refused too: writejob start TARGET -- COMMANDand
cache run CONN -- "GET k". -
A flag synonym (
--tail,--to-revision,--value,-g/-ton
edit) is a hidden spelling of the same flag, so every safety check (the
ssh gate's read-only keys included) sees the flag under either name. A
test checks each spelling. A short alias such asxforexecprints
nothing extra. -
Every command now carries an ID (its dotted path, such as
fs.list), and the envelopes, the audit log, personal-data hiding, the
ssh-gate tables and the other checks keyed by command use it. A test
lists every ID and checks that every table key is one, so a rename that
forgets a table fails. Audit records written before keep the ID of
their time. -
komando --helpnow lists the commands under the same headings as
komandoalone: Servers, Data, Platform, Access, Overview and Setup. -
At a person's terminal, many more commands end with a
Next:line of
what usually comes next (svc statussuggestslogs web1 --unit UNIT --since 30m), andgroup list GROUP,key show,job status,secret getandconfig getnow end with the commands for that item, as
host showdoes. A conn's list fits its kind (a SQLite database has no
db user ls); a Windows server and a Swarm manager get their own. -
A test now records what AI agents and scripts get from every command
typed with too few arguments (stdout, stderr and exit code, in JSON and
text). It guards the move from the menu to typed commands that ask a
person for what is missing: agents and scripts must see no change. -
Shell completion now offers your databases for
db dumpand
db restore. Questions that pick a saved recipe, a--viaserver or
VPN, a--keyor a setting now show a list of the ones you have
instead of a blank line. -
New: komando's line-by-line questions for a person at a terminal (a
value by its real name, a numbered list to pick from,Run it? [y/N, d = --dry-run first], type a name to confirm). They are only ever
asked when stdin, stdout and stderr are terminals, no AI agent runs
komando, CI is not set, TERM is not dumb and the output is text. -
A person at a terminal who types a command with something missing is
now asked for it instead of getting a usage error:komando logsasks
TARGET:with a numbered list of your servers,komando db query
uses your only database and asksSQL:,komando fs replace web1 /etc/xasks--old:and--new:. komando then shows the whole line
($ komando logs web1) and runs it. A change asksRun it? [y/N, d = --dry-run first]first; one that deletes for good asks you to type the
target's name; a protected target asks its usual [y/N] instead. A
protected server is never picked for you. A command typed in full, and
everything AI agents and scripts get, stays exactly as before. -
komando host add,conn add,vpn add,db add,cache add,
queue add,storage add,cluster addandregistry addtyped alone
at a terminal now ask their questions line by line in the normal screen
(which kind, name, address or the parts of the URL, how to log in,
production), show the commands, askRun it?, and run them. A password
pasted with the address is never drawn. When the test after an add
fails, komando says the three commands to change, test again or remove
it, instead of a menu. -
At a terminal, a
--proxy-commandor a cluster's login program that the
dangerous-command filter blocks now asksBlocked by policy: ... Run it anyway, this once? [y/N](No by default) instead of failing; the other
dangerous commands still ask you to type the name. A yes you give at the terminal is recorded in
komando auditasconfirm: tty. Nothing is asked, and no answer
counts, when CI is set. AI agents get exit 6 as before. -
komandoalone at your terminal now prints what komando does, by
group (START, SERVERS, DATA, PLATFORM, ACCESS, OVERVIEW, SETUP), with
examples, and says how to add your first server when nothing is added
yet. New help topics:komando help safety,environment,
exit-codes,output. At your terminal,host show,conn showand
vpn showend with the commands that work on that item, and after a
command ends well komando may say what usually comes next (Next:) and,
when it asked you for something, the line to type next time. All of
this goes to stderr, and only at a person's terminal. -
What to run next is on stderr only.
next:lines are gone from
stdout (host add,conn add,vpn add,import,update,
registry list; job start's "follow it with:" and policy deny's "try
it:" lines). A person sees oneNext:line on stderr, at most three
commands, filled in:host add web1givesNext: komando test web1 · komando host show web1 · ...,job startthe real job IDs. JSON keeps
data.next(anddata.next_steps) as before. A script that read the
next:line from-o textreadsdata.nextinstead. -
Every add, edit, rename and rm says what comes next: add →
testand
show, edit →showandtest, rename →show NEW, rm →list
(fs rm→fs list,docker rm→docker ps --all).tunnel show
andrecipe showend with the commands for that tunnel or recipe. -
A list with nothing in it says so in one wording on stdout:
no SSH keys yet: `komando key gen NAME`,no conns yet: `komando conn add NAME URL`,no cache keys match "user:*",no audit entries match --failed (fewer filters show more).conn list,vpn listandhost listwith none of their kind,docker ps/images,fs listof an empty folder,cluster historyandcluster helm history
printed only a header or(none)before. JSON still returns an empty
array. -
Text tables read one way: a yes-or-no column says
yesor-(vpn statusUP,net checkOPEN,recipe listREAD ONLY,user list
ADMIN GROUP and LOCKED, where?is unknown,renamePROTECTED,
RabbitMQ consumers ACTIVE; they saidyes/no); a time carries its
zone (2026-11-07 14:30 WIBinaudit,fs list,storage listand
registry prune, where storage times were UTC shown without one); an
age is3h(vpn statusSINCE); headers are words with spaces (USED BYinkey listandsecret list). A script that greps-o text
fornoin these columns reads-o jsoninstead, which is unchanged. -
Change commands say what they did in words with
-o text, never raw
JSON keys:host add/edit,conn add/edit,key gen/addandsecret setlist each field as words (password ref: secret:web1-pass, was
password_ref) and each warning aswarning: ...;secret rename/cp
(renamed secret s1 to s2),secret rm,tunnel stop,host trust
(would fetch the host key of web1 ... and remove 1 pinned key) have
a line of their own. JSON is unchanged. -
The skill,
komando guideand AGENTS.md use each command's primary
name (secret show,host rename,fs list,storage list,pkg upgrade --security,db dump --run-on,rename --starts-with) and
teach the--before the words for another program on every command
that takes them.komando doctorsays when an AI agent's skill is from
another komando version; runkomando guide installagain. -
komando's own lines on stderr start with a capital or a fixed label:
Hint:,Warning:,Note:,Dry run:,Skipped,Nothing to show
(were lower case). A stop readsStopped: <what>; nothing was changed,
every cut list or output saysNote: showing the first N; ..., and at
a terminal errors, hints, warnings and notes wrap at 80 columns without
breaking a backticked command. An AI agent and a pipe still get each on
one line. -
Ctrl-C reads the same everywhere:
Stopped. Nothing was run.at a
question,Stopped (Ctrl-C) before the end; what already ran stays as it iswhile a command runs, andStopped (Ctrl-C); the login was not kept
inkomando login. A no atdoctor --accept-old-copysays what stayed in the message and the command to
run again in the hint (the hint said "nothing was changed in ..."). -
Status words in
-o textare lower case:ok, exit 0,failed: exit 3,
failed: timed out,failed: <why>(wereok exit=0,FAILED ...),
audit log broken at line N, and a failed server's block in a
several-server result ends withError: <what> (code CODE)andHint:
(waserror [CODE]:andhint:). -
The typed question for a step that cannot be undone starts
This <what it does>.(wasDangerous: <what>.), and every rule reason reads after
"This":deletes / or the home folder recursively(wasrecursive delete of / or home),starts a fork bomb ...,changes the owner of / recursively,removes every row (DELETE without WHERE),restores a backup, which can overwrite existing data,matches your deny rule ...(wasmatches custom deny pattern ...). These are also the
reasonvalues ofkomando policy listand part ofPOLICY_BLOCKED
messages; rule IDs are unchanged. -
Error messages and hints say what is true about the input, never blame:
"x y" cannot be a server name,the port "0" in the conn URL is not a number from 1 to 65535,komando cannot read the conn URL ...,the kafka tls option takes true or skip-verify, not "yes"(wereinvalid ...,bad ...,... must be ...). "unknown" appears only with the
known values (db grant --privilegeslists them). Hints use "for
example" (not "e.g."), "server" and "conn" (not "host" or "service"),
"your list" (not "inventory"), and plain words before JSON paths and
stream names:each server's result has its exit code and error output (data.results in -o json),read the error output (stderr) ....
Flag errors say what a flag takes (--limit takes 1 or more, was
--limit must be 1 or more). -
The questions komando asks for a missing argument say "conn" for a
database, cache or other conn (To which server or conn?,No conns yet: ...) and "like" for an example (Name, like web1:, wasName, e.g. web1:). -
Help says "your list" for the servers, conns and VPNs komando knows
(host add,host rm,doctor, the target words inkomando schema),
and flag help gives examples with "like" or "for example", never
"e.g.". -
komando doctornames each check in words (komando folder,audit log,servers,SSH keys,AI agent skill,VPN office needs openconnect) and, at a terminal, wraps a long detail at 80 columns (a
pipe or a script gets each check on one line).-o jsonkeeps
the check names (state,audit_log, ...).
Removed
- The old command names
forward(nowtunnel),script(exec --script),prompt(status --short),host import(import ssh-configorimport komando),host export(export) anddb grants(db user show). komando is used internally only, so a renamed
command no longer keeps its old name; each is now an unknown command. - The retired flags:
db dump/restore --on,--fromondb user,db grantanddb revoke,fs list --max,fs restore --from,storage rm --limitand-n,vpn add/edit --address,rename --prefix,
--notesand--labels,recipe add --sudo,cron --sudo/-s,
queue peek --wait,cluster rollback --to,policy check --for,
db query --csv/--tsv,key gen --overwrite,docker logs --priorityandsvc logs --timestamps. Each is an unknown flag now. pkg security --applyand--keep-going:pkg upgrade TARGET --securityinstalls the security updates and audits aspkg.upgrade.
A bare number of seconds forsvcandreboot --wait, and-1for
queue--partition,--partitionsand--replicas.recipe runof a built-in recipe removed in 0.12 (ports,dns,
failed-units...) no longer names the command that replaced it; it is
RECIPE_NOT_FOUNDlike any unknown recipe. Typingops,snippet,
snippets,diagorpolicy allowno longer suggests the command
that took the name;inspectandsystemdstill suggestfactsand
svc.import komandoreads only the export file (komando-export/1, or the
envelopekomando exportprints); a plain list of hosts or the
{"hosts": [...]}thathost exportprinted before 0.12 is refused.- Command IDs that kept a renamed command's old path:
host.mv,
conn.mv,vpn.mv,key.mv,secret.mv,group.mv,secret.get,
cluster.ls,cluster.helm.ls,db.user.ls,fs.ls,queue.ls,
registry.ls,storage.lsanddb.grantsare nowhost.rename...
secret.show,cluster.list...storage.listanddb.user.show, the
command's path. - Answers kept in an old shape beside the new one: under
--dry-run,
host rm,conn rmandkey rmprint onlywould_remove(no longer
removedtoo);vpn rmalways lists the VPNs (one VPN was a string);
host trust NAMEanswers withdata.resultsanddata.summary, as
for several servers (one server was a flat object). - Homes from before 0.12 are no longer read:
komando sealandseal --undo, theNEEDS_SEALandSEAL_UNFINISHEDcodes, and the readers
ofstate.json, a plainruntime.json,vault.json(withvault.key,
a keychain key or a passphrase, and the old scrypt cost),known_hosts,
keys/and a plain Tailscaletailscaled.stateare gone (every
internal home hasstore.db). A home withoutstore.dbstarts empty,
as a new install does; one that had a store (store.key,
runtime.pidsor the keychain's change count) and loststore.db
still stops withSTATE_CORRUPT, and the hint says to putstore.db
back from a backup.doctorno longer warns about old files beside
store.db. meta.deprecatedand the code behind it: nothing uses an old spelling
now, so no command sets it.komando schemano longer resolves old
names (an alias, a command ID and a hidden synonym still resolve), and
komando doctorno longer lists the old spellings a stale AI agent
skill teaches (it still says the skill is from another version).- The menu that
komandoalone opened at a terminal, its task lists and
the full-screen forms and review screen (owner decision 2026-11-12:
person mode is commands). Everything it did is a command:komando
alone shows them by group,host showlists the commands for a server,
and a command typed with something missing asks for it. Running now is
komando status, History and undo iskomando audit, Check everything
iskomando test allandkomando doctor.
Fixed
-
komando schema(confirm), the commands' Safety line and the tier
table in docs/features/safety.md now name every stop an AI agent meets:
host ssh-commandandsecret keychain(moving the key in) are for a
person only (NEEDS_PERSON);--yes(SAFETY_SETTING) for an agent's
--proxy-commandonhost addandhost edit, a server with a proxy
command inimport, a kubeconfig context whose login runs a program or
sends a file (import kubeconfig),recipe add --overwrite --read-only
on a recipe that was not read-only, a first host key pin under strict
host keys (host trust) andguide uninstall. The stops are unchanged;
an agent that planned fromconfirmmet them unannounced. -
import komandoandimport csvtyped at a terminal without FILE ask
for it (they have no usual file); before, the run stopped with "give the
file to import". -
SQL Server: a certificate with a negative serial number, which SQL
Server makes for itself, failed withx509: negative serial number.
komando now parses it (x509negativeserial=1); the chain and the host
name are still checked. -
On Windows, komando's folder (
KOMANDO_HOME) gets an access list of its own when komando makes it, as does every folder above it that komando has to make: only you and SYSTEM may open it and everything inside. A folder made underC:\used to let every user of the computer read it, since file modes do nothing on Windows.komando doctornow reads the access lists there and names any file others may open, with theicaclscommands that fix it (they set the folder's access list whole, so no entry for another account stays). -
On Windows, komando knew no running VPN session, tunnel or
komando loginas its own: it askedpswhich program a process runs, and Windows has nops. It now asks Windows, sovpn status,tunnel listandstatussee them andvpn downstops them. -
On Windows,
login awsand a VPN's web sign-in open your browser (they printed the address only), and a VPN sign-in that komando watches finds Chrome, Edge or Brave where Windows installs them. -
On Windows, a server's
--proxy-commandruns in cmd.exe; it called/bin/sh, which Windows does not have.%h,%rand%ngo in bare or in double quotes, and a server whose address, user or name holds%,"or a line break stops withPROXY_FAILEDinstead of running. -
On Windows, a server with no user logs in as you (
USERNAME; komando read onlyUSER, which Windows does not set), the audit log names you as the actor, and itsos_useris your account instead ofuid -1. -
A SQLite conn takes a Windows path:
sqlite://C:\data\app.db(andsqlite:///C:/data/app.dbon Windows).C:used to be read as a server name: the URL was refused, orsqlite://C:/data/app.dbopened/data/app.db. -
In a Windows console, the red PROTECTED mark and a question that hides a pasted password show as meant: komando turns on the console's escape sequences while it runs (they showed as text like
←[1;31m). A console too old for them gets no colour, and the hidden line is redrawn without them. -
An ssh-gate key gets the same answer for
cluster info,group show,tunnel showandrecipe showas for the command each names (cluster status,group list,tunnel list,recipe list); they were refused as komando's own plumbing. -
The approval hint a script or a person gets (
check with --dry-run, then run it again with --allow-dangerous: ...) repeats the command line only when it holds no value that may be a secret: words after--, free text such as SQL, a value the mask hides, or the value of a flag such as--contentor--password. Those get the same sentence without the line, so a password typed for a server command no longer lands inerror.hintor a CI log. -
When komando fills in
cron rm,pkg rmordb killfor a person, the name to type counts only what goes: written as an alias (cron remove), a plural (crons rm) or after-o text, the command's own words were counted too ("Type 3" for one task). -
The hidden synonyms
cluster info,group show,tunnel showandrecipe showget every check of the command they name: an AI agent withKOMANDO_HOMEset to another folder needs a person's yes (SAFETY_SETTING), and a command that writes the audit log stops when it cannot (AUDIT_UNAVAILABLE). They used to skip both, like komando's own background commands. -
An s3, gcs or azblob conn with
?insecure=1now needs a person's yes when an AI agent adds it, like the other kinds: an AWS session token would travel in clear. -
On a terminal without Unicode, a result's text (a file, a row, a log line) is no longer rewritten in ASCII; only komando's own lines are.
-
vpn statuscould show a SOCKS, proxy or system VPN as down when it
answered: the row was written over after the check filled it in. -
queue purgeandqueue rmname what they would delete: the person's
"Dangerous:" prompt, the approval window and the agent'sPOLICY_BLOCKED
message now saydeletes every message in orders-retry, not only "a
topic, queue or stream" on the conn. -
queue lsshows at most--limit(-n, default 1000) topics, queues or
streams, the first by name, and marks a longer list"truncated": true
with a hint to narrow it. On SQS and Kafka it no longer reads every
queue's counts first, so a big account answers within the time limit. -
queue peek --idleon RabbitMQ, NATS, SQS or Pub/Sub is refused
(NOT_SUPPORTED) instead of being ignored: only a Kafka peek waits. -
queue peekon a RabbitMQ quorum queue takes no more messages once one
is near its delivery limit, so a single peek no longer counts down the
deliveries of every message behind it. -
komando queue --helpshows examples of the usual journey. -
komando statusand the restart list aftersecret passwdno longer
count a tunnel whose process id now belongs to another program (after a
crash or a restart) as running. -
komando db ls,cache show NAME,queue edit NAME,storage test NAME
and the like now say which shared command does it (komando list kind:db,komando conn show,komando conn edit,komando test,
komando conn rm,komando conn mv) instead of only "unknown command". -
A blocked command given a selector (
host rm @prod,tag:edge) now
records the servers and conns it picked in the audit log instead of-,
sokomando audit --failed --target web2finds it. -
The
VAULT_KEYhint for a server's password reference, and the
NO_PASSPHRASEentry in the error catalog, named the old vault.key file;
they now say store.key, where the sealed store keeps the key. -
conn addandconn editrefuse ans3://,gs://orazblob://conn
whosehttp://endpoint crosses the network (INSECURE_PROTOCOL), as
they already did forsqs://andpubsub://: the files and the AWS
session token would travel unencrypted. Use https,--via HOST, or add
?insecure=1; an endpoint on this computer is fine.komando doctor
now flags such gs:// and azblob:// conns too. -
secret setandqueue sendread at most 1 MiB from stdin and stop
with a clearUSAGEerror beyond it, so a wrong pipe cannot fill memory.
fs writefrom stdin is not capped. -
A second Ctrl-C now ends komando at once when the clean stop after the
first one hangs; before, every later Ctrl-C was ignored. -
Secret masking for AI agents no longer hides words in komando's own
messages: "Would re-encrypt 3 secrets: the vault's key" and
"KOMANDO_KEYCHAIN=off: ..." now read whole. Real values aftersecrets:
orNAME=are still hidden. -
Text output on a terminal that cannot show Unicode (
TERM=dumb, or a
locale such asLANG=Cthat is not UTF-8) now writes komando's marks in
ASCII (+for ✓,*for ●,->for →) instead of broken characters. -
job rm --killon a protected server asks first (PROTECTED_HOSTfor
an agent), asjob killdoes; it stopped the job without asking. The
stop is in the audit log, and a job it could not stop (started with
--sudo) keeps its record and sayskomando job kill ID --sudo. -
fs chmodworks on servers with BSDchmod(FreeBSD, macOS): the
--came after the mode, which BSD reads as a file name.fs mkdir
andfs chmodnow say what they did (made: PATH,mode 640: PATH)
instead of printing nothing on one server, andfs mvintoDIR/no
longer prints a double slash. -
policy denysays the new rule's id and the commands that follow:
komando policy check 'COMMAND'to try it andkomando policy rm IDto
undo it. Its JSON gainsidandnext. -
fscommands refused withPERMISSION_DENIEDgive the same command
line with--sudoadded as their hint (it said only "retry with
--sudo"). With--sudoalready given, the hint no longer suggests it. -
execthat times out, or loses its connection, now gives the exact
komando job start TARGET ... -- 'COMMAND'line in its hint, with the
same--sudo,--dirand--env, instead of "usekomando job start". -
job starton several servers printskomando job wait ID ID ...with
the real IDs (it printed<id>), and so doesnextin its JSON. A
job waitfor several jobs that are still running says
komando job wait ID ...to wait again. It pointed atdata.results,
which job results do not have, and in text it suggestedjob start.
A lost job's hint gives the exactjob startline to run it again. -
ssh-gate: a key that may change things can now runfs restore, the
undo offs replace --backupandfs write --backup, on a server.
It was refused as if it changed komando's own setup. -
Ctrl-C now stops
upload,download,cpandsync(servers, and
SFTP, FTP and SMB storage conns). komando caught the signal and went on
copying to the last byte; a big upload ran for 20 s after Ctrl-C, and
synchad to be killed. The copy now stops within a moment with
CANCELLED(exit 1), and the file being copied is not left behind. -
A folder upload (
upload -r,cp -r) writes each file under a
temporary name and moves it into place, assyncdoes, so an
interrupted upload no longer leaves a file on the server cut short. -
A download refused with
FILE_EXISTSno longer prints
"downloaded 1 file (0 B)" above the error, and its JSON result no longer
counts the file. -
upload -r,cp -randsynccopy a folder given as a symbolic link
(./current -> releases/42) as the folder it names. They sent nothing
and still reported success ("skipped 1 file: ."). -
Redis Cluster:
cache rmwith keys in different hash slots failed with
CROSSSLOT; it now deletes them one by one.cache run -- DBSIZE
counted one master only; it now adds up every master.SCAN,
RANDOMKEY,KEYS,FLUSHALL,FLUSHDBandSWAPDB, which would reach
one master only, stop withNOT_SUPPORTEDbefore any approval is asked,
and aCROSSSLOTerror says what to do. -
komando cache(the bare group) shows examples of the usual journey;
its questions for a person name commands (komando cache add,
--dry-run) instead of menu rows. The caches page showscache add, what
happens when an argument is left out, how to test, change, rename and
remove a cache, and how to save a Redis snapshot. -
policy check --conn-kind memcachedrates the words memcached reads, like
cache run: a line with a newline or other control character is
dangerous (new rulememcached-line), andmg "key T30"is a write. -
cache keys --limit 0listed no keys yet said more matched, and
cache get --limit 0(or a negative limit) quietly showed 100 items;
both now stop withUSAGEbefore connecting. -
cache runon Redis: more commands that change a cluster or Sentinel
setup (CLUSTER MEET,ADDSLOTS,FLUSHSLOTS,REPLICATE,SENTINEL SET,FAILOVER,REMOVE,CONFIG SET...) and that delete keys
another way (FT.DROPINDEX ... DD,FT.DROP,SET/GETEXwith an
EXAT/PXATalready past) now need--allow-dangerousas well as
--write. Read-onlyCLUSTER REPLICAS,CLUSTER LINKS,SENTINEL MASTERS,SENTINEL GET-MASTER-ADDR-BY-NAMEandSENTINEL CONFIG GET
no longer need--write. -
cache runon memcached:stats reset(clears the counters) and
stats detail on|off(switches per-prefix counting on the server) now
need--write; they were taken as reads.stats detail dumpstill reads. -
Security:
cache runon memcached now rates the words memcached will
read. An argument holding a newline (get "a\r\nflush_all") used to
pass as a read and runflush_allwithout--writeor
--allow-dangerous; such a line now stops withUSAGEbefore anything
is sent. Arguments are split at spaces as memcached does (mg "key T30"
is a touch, so it needs--write), the command word is sent in lower
case (memcached ignoresGET), andwatch, which never returns, stops
withNOT_SUPPORTED. -
import kubeconfignotes a context that skips the API server's
certificate check (insecure-skip-tls-verifywithout a CA), and a
kubeconfig with both a CA andinsecure-skip-tls-verifynow checks the
server against the CA instead of checking nothing. -
cluster rmandcluster scale ... 0at a person's terminal ask to
type the object's name (Type the name web to continue). Before,
Kubernetes asked for the cluster's name and Swarm for "yes", so the
answer did not say what would go. Scripts and agents are unchanged
(--allow-dangerous). -
Cluster commands refuse
.and..as an object or namespace name
before anything is sent (K8S_INVALID): as a path segment,cluster rm prod pod ..named another object than the one typed. -
A cluster whose kubeconfig logs in with a program that is not installed
(kubelogin,oidc-login...) now stops withTOOL_MISSING(exit 3)
and the kubeconfig's owninstallHint, and a login program that fails
withLOGIN_FAILED(exit 4), instead ofK8S_UNREACHABLEand a hint to
test the network. -
cluster applysends the whole file to the server as a dry run before
it applies anything: when the cluster refuses one object, nothing in the
file is applied (K8S_INVALID, "nothing was applied: ..."). Before, the
objects above the refused one were applied and the file was left half
done. -
On a Mac whose user has no default keychain (a changed
HOME:sudo -E,
a sandbox, CI, a test run), komando no longer makes macOS show a
"Keychain Not Found" dialog. It askssecurity default-keychainfirst
(no dialog); without one, a new store keeps its key instore.key, the
change count is not kept in the keychain, andsecret keychainsays
"no default macOS keychain for this user". -
An AI agent reading
secret passphrase --dry-runandsecret keychain --dry-runas text saw words of komando's own sentences as[hidden]
("3 secrets: [hidden] vault's key", "KOMANDO_KEYCHAIN=[hidden]"); the
sentences are reworded so nothing is masked. -
secret passphrase --dry-runpreviews for an AI agent or a script too
(what would change, how many secrets, whether the current key opens
them) withmeta.would_be_blocked: NEEDS_PERSON, assecret keychain
does, instead of stopping: a dry run is never blocked. -
secret rm A Bremoves every name in one change of the vault, or none:
a failure part way no longer leaves some removed without an audit entry,
and a reference another komando adds meanwhile is seen before the
secret goes. -
komando secret --helpand the Settings and Moving pages named
vault.jsonandvault.key, the files of an earlier komando; they now
saystore.dbandstore.key. The help also lists the other places a
-refflag can read a password from (env:,file:,vault:,
aws-sm:,gcp-sm:,azure-kv:,op://,bw://,kdbx:). -
secret set NAME --from-env VARrefuses an empty (or blank) variable
withUSAGE, as an empty pipe is refused, instead of storing an empty
password. -
secret setandsecret checknever ask an AI agent for a value at a
hidden prompt, also when the agent runs komando under a terminal: it
getsNEEDS_PERSONat once instead of a prompt that waits forever.
secret set NAME --dry-runwithout a value previews (replaced,
would_set) withmeta.would_be_blocked: NEEDS_PERSONinstead of
stopping. -
tunnel stopnever signals a process that is not komando: after a
crash or a restart a tunnel's pid may belong to another program, which
it used to end.tunnel listshows such a tunnel as down and forgets it. -
A
--viapath that names a server or VPN twice (office,office,
a,b,a) is refused withVIA_CYCLEand the path without the repeat;
a VPN named twice got the wrong hint "put the VPN first", and a repeated
server was accepted. -
vpn down NAME --allandtunnel stop ID --allare refused with
USAGE, aslogout HOST --allis; the names, even unknown ones, were
ignored.tunnel stopis now in the audit log. -
tunnel start -L/-R/-Dtakes IPv6 addresses in brackets, as ssh does
(-L 8080:[::1]:80); they were refused as an invalid spec. An open IPv6
bind ([::]) still needs a person's yes. -
Ctrl-C while
vpn up(or a command that connects a VPN by itself)
waits for the VPN's session now stops it at once (CANCELLED); the wait
of up to 75 seconds ignored it, so the VPN could come up after the
person cancelled. -
Ctrl-C while
tunnel startwaits for its tunnel now stops the
background process and forgets the tunnel (CANCELLED); it was ignored,
so the tunnel could still come up after the person cancelled. -
komando login HOST --dry-runwith nobody at a terminal (an AI agent)
now prints the plan withwould_log_in: falseandNEEDS_TERMINALin
meta.would_be_blocked, instead of failing: a dry run is never blocked. -
vpn down(and its--dry-run) now says what the disconnect does to
the servers and conns that use the VPN: with a person's login they stop
answering untilkomando vpn up NAME; otherwise their next command
connects it again (new JSON fieldaffects). -
vpn testandvpn upof a SOCKS or HTTP proxy VPN without--check
now connect to the proxy itself and fail withVPN_DOWNwhen it does
not answer; they said ok for a dead proxy whilevpn statussaid it was
down. -
A VPN session no longer drops a connection that is still open when
vpn_idle(30m) passes: ashell,logs --followortunnelthrough
a WireGuard, OpenVPN, IPsec or SSL VPN session was cut after 30 minutes
because only new logins counted as use. -
Security:
docker execandlogs --containerrefuse a CONTAINER that
is not a container name or ID. One starting with-reached docker as an
option, sodocker exec web1 -- --privileged -u root api shran a
privileged exec (a way out of the container) without
--allow-dangerous. -
Security:
net dnsrefuses a name that is not a host name or an
address. A name starting with-reacheddigas an option, so
net dns web1 --type MX -- -f/etc/passwdread a file on the server
through a read-only command. -
user addanduser rmon a server withoutuseraddoruserdel
(Alpine without theshadowpackage) now fail withTOOL_MISSING
(exit 3) and the hintkomando pkg install TARGET shadow, like
user lockandunlock, instead of a generic remote failure (exit 5).
The JSON result keeps its shape. -
Menu and guided forms: Esc from the review screen goes back one
question at a time, and Esc on the first question now leaves the form
(nothing runs). Before, it went round to the review again, so Esc
never got you out; only q or Ctrl-C did. -
Guided forms, lists that also take typing (a secret's name, a group,
servers): what you type is now a row of its own at the top, and Enter
takes it. Before, Enter took the first row that contained the text, so
typing a new secret namedbsaved overdb-pass, and a name that is
part of another could not be typed. A typed answer also comes back as
typed when you change it from the review. -
Guided forms can no longer put
--yes,--allow-dangerousor
--revealin a command, even if a command's form hints name one. No
form did; a test now checks every command's form for it. -
import --overwrite --dry-runnow lists a protected conn as skipped,
as the real run does, instead of "would add" plus a block the real run
never hit. A protected conn is skipped like a protected server. -
Commands komando prints for you to copy quote every shell character
(;,|,&,*,~, line breaks) and an empty value (''). The
config setline an import gives for a differing setting is now
runnable as shown, and a value from an imported file cannot add a
second command to it. -
host rmof a server others go through (--via) names every server
and conn that uses it, each with itsedit ... --unset viacommand,
instead of one per try. -
key rmnames every server that still uses the key (with one
host edit A B --key OTHERline) and its text output says "removed key
NAME" instead of printing raw fields. JSON is unchanged. -
importends with the command that checks what came in (next: komando test ..., JSONnext), lists the names--overwritereplaced
(replaced), and its dry run no longer says "the rest is in" when a
server would be left out. A setting that differs shows-for an empty
value. -
importnow applies the TLS defaultconn addgives: a database URL
without TLS settings gets verified TLS (sslmode=verify-full,
tls=true, ...), and a clear-textredis://,amqp://,nats://,
kafka://orhttp://endpoint to another computer is skipped with the
INSECURE_PROTOCOLreason instead of being saved, so a password from a
.envor.pgpassfile no longer crosses the network unencrypted. -
group add GROUP A Bandgroup rm GROUP A Btake several targets, like
host rmandhost edit, instead of failing with "too many arguments". -
A server address that starts with
-is refused (host add,host edit, every import).user@-oProxyCommand=...was saved, andhost ssh-commandcould print it wheresshreads it as an option. A server
saved that way before gets an error fromhost ssh-commandinstead of
the line. -
exportno longer tells you to copysealed:..."key files" for keys
komando made (they have no file): it says to runkomando key gen NAME
on the other computer and deploy that key (JSONkeys_sealed). The
import note for a missing key says the same. -
Asked for a missing argument,
importoffers its sources andconfig get/config settheir settings as a list to pick from. -
db dumpanddb restorename their argumentCONN(it was
DATABASE), and nodbusage line carries flags any more (restore,
user add/passwd,grant/revoke), so shell completion and pickers
offer your databases there.db restorewithout--fromanddb grant
orrevokewithout--privileges/--rolenow give a runnable example
in the hint. -
db kill --dry-runnow fillsmeta.would_be_blocked(a protected
conn, or--sessionwithout--allow-dangerous), as every other dry
run does; before, it skipped the check and looked allowed. -
komando dbshows five runnable examples and how to list, test,
change, rename and remove a database (list kind:db,test,conn edit,
conn mv,conn rm). Thedb dumpquestion for--tois no longer
marked required: without it the backup isCONN-<date>.sql.gz. -
db dump --to FOLDERsavesCONN-<date>.sql.gzinside that folder
(it failed withFILE_EXISTS), and--to -is refused with a usage
error instead of creating a file named-. -
dberror hints name the conn you gave (komando db schema prod-db TABLE), not aCONNplaceholder, so the hint is the exact next
command. -
db restoreanddb user rmtyped without their arguments now hint a
runnable--dry-runexample (the hint said only "see --help"). -
Google Cloud Storage: gcloud's own login is sent only to Google's
HTTPS endpoints (*.googleapis.com). Ags://conn with an emulator or
other?endpoint=used to send the person's gcloud token there too, in
clear overhttp://. A service account key with anhttp://endpoint
is refused withINSECURE_PROTOCOL. -
Azure Blob: a SAS token with an
http://endpoint is refused
(INSECURE_PROTOCOL): the token goes in every request as it is, so it
would travel unencrypted. The account key, which only signs, still works
with an emulator such as Azurite. -
storage rm --prefixtyped at a terminal without--allow-dangerous
now lists what would be deleted (the first 20 objects, the count and the
size) before asking to type the conn's name; it used to ask first, with
nothing shown. Agents and scripts are stopped as before, before anything
is listed. -
S3: a bucket in another region than the conn's
region=(or its
regional endpoint) now says which region it is in and how to fix the
conn (conn edit NAME --url ...), instead of a bareSTORAGE_ERROR: AuthorizationHeaderMalformedor400 Bad Request. -
Storage errors name the conn in the command their hint suggests
(komando conn test backups,komando storage ls backups), not the
placeholderNAMEorCONN. -
storage ls CONN dbon a bucket (S3, Google Cloud, Azure) lists what is
in the folderdb, as on a file server; it used to list only the folder
itself (DIR db/). -
storage linkon an S3 conn with an AWS profile (SSO, an assumed role)
warns that the link ends when the temporary keys do, which can be long
beforeexpires_at. -
komando storage --helpshows the whole journey (add, test, list,
edit, remove the conn) with examples;storage add --helphas examples
for an AWS profile, MinIO, Google Cloud, Azure and SFTP;storage rm CONNwith no key names the next step, includingconn rm CONNfor
taking the storage itself out of komando's list. -
S3, Google Cloud and Azure conns take
&ca=secret:NAME, for an
endpoint whose certificate comes from a private CA (a company MinIO, a
TLS-inspecting proxy). There was no way to use one. A certificate that
does not verify is nowSTORAGE_TLSwith that hint, not a generic
STORAGE_ERROR. -
An
azblob://URL with a SAS token in it (?sv=...&sig=...) is refused
asURL_HAS_PASSWORD, with the hint to store it in the vault, instead of
"unknown azblob URL option". -
registry: Docker Hub's pull limit (HTTP 429) is now
REGISTRY_RATE_LIMIT
(exit 5) with when to retry (Retry-After) and the hint to log in, instead
of a bareREGISTRY_ERROR. -
registry: on Docker Hub,
nginxmeanslibrary/nginx, as with
docker pull;registry ls dockerhubwithout a repository says Docker
Hub and GHCR have no list of repositories (REGISTRY_UNSUPPORTED)
instead of a misleadingREGISTRY_AUTH. -
registry: repository, tag and digest names are checked against the OCI
grammar before they go into a URL or a token scope (../,?or a
second:gave requests to other endpoints); upper case gets the
lower-case name to use.USAGE, exit 2. -
registry prune: one manifest read per image instead of per tag (Docker
Hub counts each read as a pull), and the help no longer says a
multi-platform index always stays: it has its first image's build date
and can go. -
registry prune: past 1000 tags,
TOO_MANY_TAGSno longer suggests
--match(every tag is still read, so it cannot help); build dates are
read only for images a matching tag may take. -
registry ls, rm, prune and inspect read better at a terminal: a cut list
says to raise-n, an empty one says what fills it,rmnames every
tag that goes with the image and warns whenlatestis one,prune
lists what goes and why the rest stays, and build dates are in local
time. JSON is unchanged. -
registry rm: when the tags cannot be listed,
tagsis[](wasnull)
with atags_notesaying other tags may point at the image. -
import docker: a registry that only has a
credHelpersentry (Amazon
ECR withecr-login) is imported; Amazon ECR, Google (gcloud) and Azure
identity-token logins are added without docker's hours-long token, so
komando logs in with the cloud login each time instead of failing once
the token runs out; a credential helper name that is a path is not run,
and a helper gets 30 s. -
docker rm,docker pruneand other docker deletes at a terminal now
ask the person to type the server's name, like every other destructive
command, instead of accepting a bareyes;docker prune --allasks
once instead of twice. -
svc,pkg,user,cron,dockerandrecipe runnow say why
when sudo refuses before the command runs:PERMISSION_DENIED(sudo
wants a password komando does not have, or the user may not use sudo)
with thehost edit --sudo-refor--usercommand to run next, and
TOOL_MISSINGwhen the server has no sudo (add--no-sudoas root),
instead ofCOMMAND_FAILED/SVC_FAILEDwith "read stderr". -
komando svc,pkg,user,docker,cron,net,certand
recipealone now show the usual journey as examples. Examples, form
hints and docs write times as30m(not-30m), as komando takes them
everywhere;user rmshows a--dry-runfirst. -
pkg rmreports itself aspkg.rmin JSON, the audit log, dry runs and
the Windows refusal (it saidpkg.remove/pkg remove), andpkg
commands given no package give the usualmissing arguments; usage: ...
error. -
reboot --dry-runputswould_be_blockedindatatoo, like every
other dry run;user addanduser rmshowuser rm bob --remove-home
in dry runs and the audit log instead of the shell script;recipe list --categorywith an unknown category is a usage error that lists them,
not an empty list. -
docker start,stop,restartandrmname their argument
CONTAINER...anddocker pullIMAGE...(wasNAME...) in help and
usage errors. -
user lock,unlockandrmcheck USERNAME likeuser adddoes, so a
name starting with-is a usage error instead of an option of
usermodoruserdel. -
Ctrl-C ends
logs --follow(andsvc logs,docker logs -f) cleanly
with exit 0 and the lines so far, as--timeoutdoes, instead of an
interruptederror with exit 1. -
pkg upgradablereads the package index as root when sudo needs no
password, likefactsandpkg security, so all three agree. On dnf and
yum the login user's own cache could list other updates (48 against 4
on Rocky 9). -
komando login aws --profile ROLEnow works for a profile that assumes a
role from an SSO profile (role_arnwithsource_profile): it logs in
to that SSO, as the role's commands need. The SSO token file is written
through a new private temporary file, so a file left at the old
temporary name (or a link there) never gets the token. -
An AWS profile without SSO and without keys no longer says
AWS_LOGIN_REQUIREDwith the hintkomando login aws, which cannot help
it: it isAWS_FAILEDand the hint says where the keys go. Ctrl-C while
komando talks to AWS isCANCELLED, notAWS_FAILED. -
komando login awsrun by an AI agent is nowNEEDS_PERSON(exit 6)
with the hint "ask the user to runkomando login aws --profile NAMEin
their own terminal", like every other person-only step; a script without
a terminal still getsNEEDS_TERMINAL.--dry-runis never blocked: it
checks the profile and shows its SSO start URL and region, with
meta.would_be_blockedfor an agent. komando opens only anhttps://
sign-in address in the browser. -
komando login gcpandkomando login azuresay that the browser login
comes in a later release and what works today (application default
credentials, a service principal, or a key in--password-ref), for any
arguments, instead of a hint to store a "service account key" for Azure. -
komando import awsnames the right fix per profile:komando login aws --profile NAMEonly for an SSO profile, the credentials file for a
profile without keys or SSO (it said "the login has expired" for both). -
New page Cloud logins:
komando login aws, the
aws_profileoption,komando import aws, the AWS error codes and what
works for Google Cloud and Azure until their login comes. The agent
guide listsAWS_LOGIN_REQUIRED. -
With
AWS_ENDPOINT_URLset (LocalStack, moto), a profile that assumes a
role sent its AssumeRole call to the real AWS, signed with the source
access key: the AWS SDK leaves the role's STS client out of that
setting. komando now applies it to STS too (AWS_ENDPOINT_URL_STSstill
wins). -
komando updateon Windows said there was no komando release for
Windows, although every release haskomando_windows_amd64.zipand
komando_windows_arm64.zip. It now updates Windows too, and a test keeps
its list of platforms the same as the onesmake distbuilds. -
Tab completion now turns on as the README and the installer say. In zsh,
source <(komando completion zsh)printedcommand not found: compdef
in every new terminal when~/.zshrchad not runcompinit(a new
Mac's has not): the script now runs it when it is missing. For bash the
line iseval "$(komando completion bash)", because the bash 3.2 of
macOS reads nothing fromsource <(...).komando completion SHELL --helpgives these lines instead of the bash-completion package and
Homebrew paths. -
Tab completion of a CONN offers only the conns the command works with:
komando cache info <Tab>lists caches,komando db query <Tab>
databases (groups,allandkind:as before). It listed every conn,
so a database could be picked for a cache command. -
make licenses(and somake dist) stopped at "archive/tar does not
have module info" when Go ran a downloaded toolchain (go.mod'sgo
line newer than the installed Go): the script now hands go-licenses
Go's own GOROOT. Run on its own, it also covers the Windows builds. -
The install line says what went wrong in words: a
KOMANDO_VERSION
that does not exist, no connection, a missingcurlortar, a
checksum that does not match. It checksKOMANDO_INSTALL_DIRbefore it
downloads, and puts komando in place with a rename inside that folder,
never by writing into a komando that is running. On Windows (Git Bash)
it points to the.zipdownload; it no longer callskomandoalone a
menu. -
README: the Windows
.zipis an install option, andprompt(now
status --short) is no longer listed as a command.
Fixed
key gen,key rmandrenamehelp said keys komando makes live in
~/.komando/keys; they are kept in the sealed store, with no file, and
host ssh-commandhands them to ssh-agent.key rm --delete-file
says it deletes the private key; servers.md and output.md (which listed
the retiredKEY_FILE_EXISTS) say the same.group rm GROUP TARGET TARGET(two or more targets) deleted the whole
group instead of taking just those targets out of it. Now it takes out
only the targets named;group rm GROUPalone still deletes the group
(and asks first when it has more than 3 members).- A Tailscale or Headscale VPN keeps its node state (the machine and node
private keys) sealed in store.db, not in a plaintailscaled.statefile
under~/.komando/vpn/.vpn rmnow also forgets that state
and folder, so a VPN added again under the same name never joins as the
old node. - An AI agent's
download,cp,storage downloadandsyncnever put
the real text on this computer's disk: a text file is masked in memory
before it is written. Before, the unmasked bytes sat in the temporary
file until the download ended (and stayed there after a crash). A
binary or larger file that holds a value from komando's vault now stops
with SENSITIVE_FILE instead of being saved as is. fs write,fs replace,fs restoreanduploadwith--sudo
follow a link only when root made it and it leads into a folder root
owns; any other link stops with IS_A_SYMLINK. Before, a link another
user planted (an app's.envto/etc/sudoers.d/x) had root write a
file of that user's choosing.key revoke --useredits that user's authorized_keys as the user, with
a random temporary name. Before, root wrote a predictable temporary
file in the user's.ssh, so a link the user planted there sent their
own lines into a system file.vpn upfor an AI agent hands the VPN password to openconnect only when
openconnect and ocproxy sit in folders only root can change, or a
person says yes (SECRET_DESTINATION). Before, an agent could put its
ownopenconnectfirst in PATH and read the password it gets.user add --keywrites the key as that user, not as root. Before, a
user who linked~/.ssh/authorized_keysto a system file (such as
/etc/shadow) got a line appended to it and its ownership, and so root.- store.db zeroes the space a deleted record or an old key's copy leaves
behind. Before, a removed secret's sealed bytes stayed in the file, and
aftersecret passphrasethey still opened with the old key. - A plain runtime.json beside the sealed store is no longer trusted: it
is read as empty. Before, a program that wrote one could point a server's held
login at its own socket and see every command, password and file sent
to that server. fs write,fs replace,fs restoreanduploadwith--sudono
longer write into a folder that a user other than root and the SSH user
can change (owned by that user, writable by a group other than root's,
by everyone, or by a user or group its access list (ACL) names): that
user could swap the file for a link while root
writes. They stop with SHARED_FOLDER_CONFLICT, whose hint says how to
write as that user instead. A link on the way to the file (not only the
file itself) is followed only when root made it.fs cat --sudo, a
--sudodownload,logs --file F --sudoand the readsfs replace --sudomakes do not read through a link made by a user other than root
and the SSH user (IS_A_SYMLINK), andfs chmod --sudodoes not change
the mode of what such a link names.logs --file F --sudo --followkeeps
reading the file it opened, so after a log rotation run it again.- The approval window for an AI agent's
exec --script FILE,
job start --script FILEandexec --stdin-file FILEshows the
file's SHA-256 and every line of it, numbered, long lines wrapped and
never cut. Before, it showed only the command line, so a person
allowed a script they never saw. A file that is not valid text, holds
bidi or zero-width characters, holds what looks like a password, key
or token, or is too long to show whole (more than 40 lines as shown,
or 16 KiB) gets no window, as for such a command line: masking
pass=x|sh</tmp/saspass=[hidden], or leaving out line 11, would
hide what runs. The agent is told to ask you to run it in your own
terminal. - On a Linux or BSD desktop the approval window needs the approval code
(komando config approval-code): on X11 another program can click
"Allow once" (xdotool), and on Wayland the agent, which sets komando's
environment, can pointWAYLAND_DISPLAYat a compositor of its own
and click there. Without the code komando opens no window and the
agent is told to ask you to turn it on or to run the command in your
own terminal. macOS and Windows keep the plain window. - settings.md says plainly what protects the vault from a program that
runs as your own user and ignores komando's rules: only another OS
user or the signed Mac app. Key file, keychain and passphrase modes do
not. uploadover a file that is there keeps that file's mode unless
--modeis given. Before, it took the local file's mode, so a 0600
.envon the server became 0644 (readable by every server user). A
new file still gets the local file's mode.- A job's folder on the server (
~/.komando/jobs/ID) is made 0700, and
its command, output and pid files 0600, whatever the server's umask.
Before, other server users could read a job's output. The job itself
still runs with the login's own umask. download,cpfrom a server,storage downloadandsyncdown keep
the file's mode from the server but never make it writable by other
users here: a 0777 file is saved 0755, a 0666 one 0644.guide install,guide guardandguide uninstallkeep the old
agent settings file as.bak, or.bak.<UTC time>when a.bakis
there already, always 0600. Before, they wrote over your own
settings.json.bakand kept its mode (often 0644, while settings can
hold tokens).- An AI agent's
db dump --run-on HOSTanddb restore --run-on HOST
need a person's yes (SECRET_DESTINATION) when HOST is not the conn's
own--viaserver: the conn's password goes there. Before, an agent
could send it to any server in the inventory. - A password komando reads from
env:,file:,op://,bw://,
kdbx:,vault:or a cloud secret manager is hidden in its output as
[hidden]from then on, like a value from komando's own vault (also
its base64 and URL-encoded forms). Before, only values that looked like
a password were masked. - komando takes the password managers' unlock variables
(KOMANDO_BW_PASSWORD,KOMANDO_BW_CLIENT_SECRET,
KOMANDO_KDBX_PASSWORD,KOMANDO_KDBX_KEYFILE,OP_CONNECT_TOKEN,
VAULT_TOKEN,BAO_TOKEN) out of its environment when it starts, as it
already did withKOMANDO_VAULT_PASS. Before, every program it ran and
every background tunnel, VPN session and login inherited them, where
ps ewwshowed them for hours. Those background processes now get them
on their input, and anenv:reference to one (--password-ref env:VAULT_TOKEN) still works for a person.
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