internal/

directory
v0.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2026 License: AGPL-3.0

Directories

Path Synopsis
Package auditlog keeps komando's audit log in the local store.
Package auditlog keeps komando's audit log in the local store.
Package browserx shows a sign-in page in a browser window and reads the address the sign-in ends on.
Package browserx shows a sign-in page in a browser window and reads the address the sign-in ends on.
Package cachex talks to Redis-compatible caches (Redis, Valkey, KeyDB, Dragonfly) and memcached, and classifies their commands by risk.
Package cachex talks to Redis-compatible caches (Redis, Valkey, KeyDB, Dragonfly) and memcached, and classifies their commands by risk.
Package capability is komando's command tree as data: every command of the v2.7 grammar (TYPE PROVIDER [AREA] VERB, or NOUN [KIND] VERB) with its options, tier rows and the facts the safety checks need.
Package capability is komando's command tree as data: every command of the v2.7 grammar (TYPE PROVIDER [AREA] VERB, or NOUN [KIND] VERB) with its options, tier rows and the facts the safety checks need.
cli
Package cli wires every komando command.
Package cli wires every komando command.
kit/gatehere
Package gatehere holds the rules of ssh-gate's server mode (--here): a phone's key that logs in to a server runs komando there through the gate, and the gate decides what may run on that server itself.
Package gatehere holds the rules of ssh-gate's server mode (--here): a phone's key that logs in to a server runs komando there through the gate, and the gate decides what may run on that server itself.
kit/phonekey
Package phonekey holds what `credential key install --public-key-file` (C372) checks and writes: a device's public key line for a user on a server, always behind komando's gate in server mode (option C of the U107 design).
Package phonekey holds what `credential key install --public-key-file` (C372) checks and writes: a device's public key line for a user on a server, always behind komando's gate in server mode (option C of the U107 design).
kit/term
Package term holds what every command prints to a terminal: how wide text is in columns, text tables and the line an empty list says.
Package term holds what every command prints to a terminal: how wide text is in columns, text tables and the line an empty list says.
Package cloud holds komando's own clients for cloud and secret-manager APIs, so no vendor CLI (aws, gcloud, vault) has to be installed (docs/design/code-layout.md).
Package cloud holds komando's own clients for cloud and secret-manager APIs, so no vendor CLI (aws, gcloud, vault) has to be installed (docs/design/code-layout.md).
Package dbx runs classified SQL against a conn and turns the result into plain JSON values.
Package dbx runs classified SQL against a conn and turns the result into plain JSON values.
Package driver describes the kinds of non-SSH resources komando can talk to (databases, caches, queues, object storage) and the risk levels its safety checks work with.
Package driver describes the kinds of non-SSH resources komando can talk to (databases, caches, queues, object storage) and the risk levels its safety checks work with.
Package engine holds what one komando call is: who makes it and the state of its approvals.
Package engine holds what one komando call is: who makes it and the state of its approvals.
Package execsession keeps a long exec running on a Unix server after the connection drops: a session folder on the server, its ID, the record on this computer, and the shell text that starts, reads and stops it (vault note 2026-11-24-komando-exec-session-and-winrm-design).
Package execsession keeps a long exec running on a Unix server after the connection drops: a session folder on the server, its ID, the record on this computer, and the shell text that starts, reads and stops it (vault note 2026-11-24-komando-exec-session-and-winrm-design).
Package flock takes and releases an exclusive lock on an open file, so komando processes running at the same time wait for each other.
Package flock takes and releases an exclusive lock on an open file, so komando processes running at the same time wait for each other.
Package gcpadc finds Google application-default credentials for every komando client that uses them (Secret Manager, GKE, registries, Cloud Storage, BigQuery, Pub/Sub), after checking where the file found would send what.
Package gcpadc finds Google application-default credentials for every komando client that uses them (Secret Manager, GKE, registries, Cloud Storage, BigQuery, Pub/Sub), after checking where the file found would send what.
Package interactive is komando's interactive mode: the screens that help a person build a command line (C162).
Package interactive is komando's interactive mode: the screens that help a person build a command line (C162).
Package ipsec holds komando's own IPsec clients: IKEv1 (for L2TP/IPsec and Cisco-style IPsec with XAUTH) and IKEv2, with ESP carried in UDP (RFC 3948), so they run as an ordinary program without admin rights and without changing the computer's network: komando always tells the server it is behind NAT, so ESP never needs a raw socket.
Package ipsec holds komando's own IPsec clients: IKEv1 (for L2TP/IPsec and Cisco-style IPsec with XAUTH) and IKEv2, with ESP carried in UDP (RFC 3948), so they run as an ordinary program without admin rights and without changing the computer's network: komando always tells the server it is behind NAT, so ESP never needs a raw socket.
Package kube talks to the Kubernetes API directly over HTTPS, from one kubeconfig context, without client-go.
Package kube talks to the Kubernetes API directly over HTTPS, from one kubeconfig context, without client-go.
Package l2tp is komando's own L2TP client (RFC 2661): one tunnel with one session carrying PPP, which logs in and brings up IPv4.
Package l2tp is komando's own L2TP client (RFC 2661): one tunnel with one session carrying PPP, which logs in and brings up IPv4.
Package netx opens the networks komando reaches targets through (docs/features/vpn.md).
Package netx opens the networks komando reaches targets through (docs/features/vpn.md).
Package openvpn is komando's own OpenVPN client: the control channel (TLS over OpenVPN's reliable transport, with tls-auth or tls-crypt), the key exchange (key-method 2, TLS-EKM or the OpenVPN PRF), the data channel (AES-GCM, ChaCha20-Poly1305, or AES-CBC with HMAC) and the pushed options.
Package openvpn is komando's own OpenVPN client: the control channel (TLS over OpenVPN's reliable transport, with tls-auth or tls-crypt), the key exchange (key-method 2, TLS-EKM or the OpenVPN PRF), the data channel (AES-GCM, ChaCha20-Poly1305, or AES-CBC with HMAC) and the pushed options.
Package out renders every command result as a stable, machine-readable envelope.
Package out renders every command result as a stable, machine-readable envelope.
Package policy detects destructive commands so an agent cannot wreck a server by accident.
Package policy detects destructive commands so an agent cannot wreck a server by accident.
Package ppp is a minimal PPP peer for the VPNs that carry PPP (L2TP): LCP (RFC 1661), IPCP with DNS (RFC 1332, RFC 1877) and the login the server asks for: MS-CHAPv2 (RFC 2759, with the server's proof checked) and, only when the VPN allows the weak logins, CHAP-MD5 (RFC 1994) or none, which prove nothing about the server, and PAP (RFC 1334), which sends the password itself.
Package ppp is a minimal PPP peer for the VPNs that carry PPP (L2TP): LCP (RFC 1661), IPCP with DNS (RFC 1332, RFC 1877) and the login the server asks for: MS-CHAPv2 (RFC 2759, with the server's proof checked) and, only when the VPN allows the weak logins, CHAP-MD5 (RFC 1994) or none, which prove nothing about the server, and PAP (RFC 1334), which sends the password itself.
Package queuex talks to message queues for `komando queue`: Apache Kafka (and what speaks its protocol: Redpanda, MSK, Confluent Cloud) through franz-go, and the engines that register themselves from its subfolders (RabbitMQ, NATS JetStream, Amazon SQS, Google Cloud Pub/Sub).
Package queuex talks to message queues for `komando queue`: Apache Kafka (and what speaks its protocol: Redpanda, MSK, Confluent Cloud) through franz-go, and the engines that register themselves from its subfolders (RabbitMQ, NATS JetStream, Amazon SQS, Google Cloud Pub/Sub).
nats
Package nats is the NATS JetStream engine of `komando queue`, through github.com/nats-io/nats.go.
Package nats is the NATS JetStream engine of `komando queue`, through github.com/nats-io/nats.go.
pubsub
Package pubsub is the Google Cloud Pub/Sub engine of `komando queue`.
Package pubsub is the Google Cloud Pub/Sub engine of `komando queue`.
rabbitmq
Package rabbitmq is the RabbitMQ engine of `komando queue` (AMQP 0-9-1, through github.com/rabbitmq/amqp091-go).
Package rabbitmq is the RabbitMQ engine of `komando queue` (AMQP 0-9-1, through github.com/rabbitmq/amqp091-go).
sqs
Package sqs is the Amazon SQS engine of `komando queue`.
Package sqs is the Amazon SQS engine of `komando queue`.
Package registry talks to container registries (Docker Hub, GHCR, GitLab, Harbor, ECR, ACR, Artifact Registry, registry:2) over the OCI Distribution API, with basic or bearer-token auth.
Package registry talks to container registries (Docker Hub, GHCR, GitLab, Harbor, ECR, ACR, Artifact Registry, registry:2) over the OCI Distribution API, with basic or bearer-token auth.
Package releasesig signs a komando release and checks that signature.
Package releasesig signs a komando release and checks that signature.
Package rundir finds komando's own per-user folder for short-lived private files (a restore's checked copy, the approval debug log), never the shared temp folder, where another user may have planted a name or a link.
Package rundir finds komando's own per-user folder for short-lived private files (a restore's checked copy, the approval debug log), never the shared temp folder, where another user may have planted a name or a link.
Package sealdb is komando's local store: one SQLite file whose records are sealed rows (package sealrow).
Package sealdb is komando's local store: one SQLite file whose records are sealed rows (package sealrow).
Package sealfile is the sealed file of `komando export --sealed` and `komando export --for-phone`: one format, opened with a passphrase or with the private key of a phone.
Package sealfile is the sealed file of `komando export --sealed` and `komando export --for-phone`: one format, opened with a passphrase or with the private key of a phone.
Package sealkey makes each of the store's keys from its master key: HKDF-SHA256 with no salt and one label per use.
Package sealkey makes each of the store's keys from its master key: HKDF-SHA256 with no salt and one label per use.
Package sealrow seals one record of komando's local store.
Package sealrow seals one record of komando's local store.
Package snippet is the engine of komando's ready-made snippets: a built-in, named read or change with one documented JSON shape (docs/design/code-layout.md).
Package snippet is the engine of komando's ready-made snippets: a built-in, named read or change with one documented JSON shape (docs/design/code-layout.md).
Package sshx dials hosts from the inventory (with jump-host chains, keychain/agent/password auth and TOFU host-key checking) and runs commands.
Package sshx dials hosts from the inventory (with jump-host chains, keychain/agent/password auth and TOFU host-key checking) and runs commands.
Package sslvpn holds komando's own clients for corporate SSL VPNs: Cisco AnyConnect / ocserv, Fortinet, Palo Alto GlobalProtect, F5 BIG-IP and Pulse/Ivanti.
Package sslvpn holds komando's own clients for corporate SSL VPNs: Cisco AnyConnect / ocserv, Fortinet, Palo Alto GlobalProtect, F5 BIG-IP and Pulse/Ivanti.
Package store keeps komando state (inventory, conns, keys, snippets, jobs, tunnels, settings) in the sealed store under $KOMANDO_HOME (default ~/.komando).
Package store keeps komando state (inventory, conns, keys, snippets, jobs, tunnels, settings) in the sealed store under $KOMANDO_HOME (default ~/.komando).
Package storex gives `komando storage` one interface over S3-compatible object storage (AWS S3, MinIO, R2, Wasabi, Spaces, B2), Google Cloud Storage, Azure Blob, FTP/FTPS, SFTP, WebDAV and SMB shares.
Package storex gives `komando storage` one interface over S3-compatible object storage (AWS S3, MinIO, R2, Wasabi, Spaces, B2), Google Cloud Storage, Azure Blob, FTP/FTPS, SFTP, WebDAV and SMB shares.
ftptest
Package ftptest is an FTP and FTPS server for tests: one file, obj.txt, in /, or set listings by folder.
Package ftptest is an FTP and FTPS server for tests: one file, obj.txt, in /, or set listings by folder.
Package testhome keeps tests out of the real home folder.
Package testhome keeps tests out of the real home folder.
Package tmpclean keeps the temporary files and folders this komando run made (a download before its rename, a sign-in browser profile, a database CA copy), so a hard stop still removes them.
Package tmpclean keeps the temporary files and folders this komando run made (a download before its rename, a sign-in browser profile, a database CA copy), so a hard stop still removes them.
Package transport is what every outbound HTTPS and TLS client of komando shares, so the environment never decides where a login goes:
Package transport is what every outbound HTTPS and TLS client of komando shares, so the environment never decides where a login goes:
proxytest
Package proxytest is a small HTTP CONNECT proxy for tests.
Package proxytest is a small HTTP CONNECT proxy for tests.
Package vault stores secrets (passwords, key passphrases, tokens) encrypted with AES-256-GCM, each bound to its name.
Package vault stores secrets (passwords, key passphrases, tokens) encrypted with AES-256-GCM, each bound to its name.
Package version holds komando's version.
Package version holds komando's version.
Package winrm is komando's own WinRM client: it runs one command on a Windows server through WS-Management (the Windows Remote Shell protocol, MS-WSMV), over HTTPS or HTTP, with NTLM or Basic login.
Package winrm is komando's own WinRM client: it runs one command on a Windows server through WS-Management (the Windows Remote Shell protocol, MS-WSMV), over HTTPS or HTTP, with NTLM or Basic login.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL