Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
authama
command
Command authama is the Authentication Access Manager: SSH keys and config (`authama ssh ...`) and package-manager / git auth tokens (`authama token ...`) in one self-contained Go binary.
|
Command authama is the Authentication Access Manager: SSH keys and config (`authama ssh ...`) and package-manager / git auth tokens (`authama token ...`) in one self-contained Go binary. |
|
sshmgr
command
Command sshmgr is the compatibility build of authama (cmd/authama): the same program under the name v1-v3 shipped as, so existing scripts, rendered ProxyCommand lines (`sshmgr vm proxy`) and scheduled notifications keep working.
|
Command sshmgr is the compatibility build of authama (cmd/authama): the same program under the name v1-v3 shipped as, so existing scripts, rendered ProxyCommand lines (`sshmgr vm proxy`) and scheduled notifications keep working. |
|
internal
|
|
|
brand
Package brand is the one place the tool's names are decided.
|
Package brand is the one place the tool's names are decided. |
|
cli
Package cli is the cobra command surface.
|
Package cli is the cobra command surface. |
|
core/authkeys
Package authkeys has pure helpers for editing an authorized_keys file.
|
Package authkeys has pure helpers for editing an authorized_keys file. |
|
core/expiry
Package expiry is the pure expiry-policy engine.
|
Package expiry is the pure expiry-policy engine. |
|
core/hypervisor
Package hypervisor finds local VMs and their current SSH address through each hypervisor's own CLI, so a devbox's Host block need not carry an IP that changes on every boot.
|
Package hypervisor finds local VMs and their current SSH address through each hypervisor's own CLI, so a devbox's Host block need not carry an IP that changes on every boot. |
|
core/inventory
Package inventory is the deployment-tracking model.
|
Package inventory is the deployment-tracking model. |
|
core/key
Package key implements the authama key-naming convention.
|
Package key implements the authama key-naming convention. |
|
core/manifest
Package manifest is the authama manifest domain model.
|
Package manifest is the authama manifest domain model. |
|
core/providers
Package providers is the read-only provider catalog, ported from the spec/ registry parts of v1's provider registry.
|
Package providers is the read-only provider catalog, ported from the spec/ registry parts of v1's provider registry. |
|
core/renderer
Package renderer renders the managed SSH config, ported from one template pair.
|
Package renderer renders the managed SSH config, ported from one template pair. |
|
core/tokens
Package tokens renders, reads back and removes the credentials that package managers and VCS clients read from their own files: Composer's auth.json, .npmrc, Docker's config.json, git's credential store and .netrc.
|
Package tokens renders, reads back and removes the credentials that package managers and VCS clients read from their own files: Composer's auth.json, .npmrc, Docker's config.json, git's credential store and .netrc. |
|
platform
Package platform isolates the OS-specific behaviour sshmgr needs, so the rest of the tree can stay free of runtime.GOOS branches: terminal handling for reading secrets without echoing them (here), and the OS predicates every other package asks its questions through (os.go).
|
Package platform isolates the OS-specific behaviour sshmgr needs, so the rest of the tree can stay free of runtime.GOOS branches: terminal handling for reading secrets without echoing them (here), and the OS predicates every other package asks its questions through (os.go). |
|
services/agent
Package agent adds keys to the ssh-agent (macOS keychain).
|
Package agent adds keys to the ssh-agent (macOS keychain). |
|
services/bundler
Package bundler makes and restores an age-encrypted backup.
|
Package bundler makes and restores an age-encrypted backup. |
|
services/change
Package change previews a change before it is made, and makes it only if what it would do has not moved since it was previewed.
|
Package change previews a change before it is made, and makes it only if what it would do has not moved since it was previewed. |
|
services/cleaner
Package cleaner sweeps what deleting things leaves behind: trust-store pins for hosts the manifest no longer has, stale inventory records, and interrupted-write residue.
|
Package cleaner sweeps what deleting things leaves behind: trust-store pins for hosts the manifest no longer has, stale inventory records, and interrupted-write residue. |
|
services/configsvc
Package configsvc renders, checks, and shows the SSH config.
|
Package configsvc renders, checks, and shows the SSH config. |
|
services/deployer
Package deployer installs a key's public half on its target(s) and records the deployment.
|
Package deployer installs a key's public half on its target(s) and records the deployment. |
|
services/dockerctx
Package dockerctx creates the Docker context that reaches a VM host over SSH: `docker context create <alias> --docker host=ssh://<alias>`, or update when one by that name is already there.
|
Package dockerctx creates the Docker context that reaches a VM host over SSH: `docker context create <alias> --docker host=ssh://<alias>`, or update when one by that name is already there. |
|
services/doctor
Package doctor diagnoses the install: deps, perms, agent, known_hosts, manifest-vs-disk drift, and dangling keys.
|
Package doctor diagnoses the install: deps, perms, agent, known_hosts, manifest-vs-disk drift, and dangling keys. |
|
services/editor
Package editor does manifest editing - profile/host add·edit·delete.
|
Package editor does manifest editing - profile/host add·edit·delete. |
|
services/gitremote
Package gitremote reads and switches a checkout's GitHub origin between the three transport modes: profile (git@github-<profile>:owner/repo.git), ssh (git@github.com:owner/repo.git) and https (https://github.com/owner/repo.git).
|
Package gitremote reads and switches a checkout's GitHub origin between the three transport modes: profile (git@github-<profile>:owner/repo.git), ssh (git@github.com:owner/repo.git) and https (https://github.com/owner/repo.git). |
|
services/history
Package history is the operation history: a SQLite database in the config home's log directory that records every command that changed something, the audit events it raised, and the manifest before and after.
|
Package history is the operation history: a SQLite database in the config home's log directory that records every command that changed something, the audit events it raised, and the manifest before and after. |
|
services/importer
Package importer onboards an existing ~/.ssh into the manifest + inventory.
|
Package importer onboards an existing ~/.ssh into the manifest + inventory. |
|
services/initsvc
Package initsvc creates and converges the per-user home, ported from facade.init: it (re)creates the directory scaffolding, seeds the starter files (manifest, inventory, .env) when missing, and re-asserts secret perms.
|
Package initsvc creates and converges the per-user home, ported from facade.init: it (re)creates the directory scaffolding, seeds the starter files (manifest, inventory, .env) when missing, and re-asserts secret perms. |
|
services/jobs
Package jobs runs a change that takes longer than a request, or reaches another machine, as a job: one at a time, under the advisory lock for as long as it runs, with its output kept line by line for a page to stream.
|
Package jobs runs a change that takes longer than a request, or reaches another machine, as a job: one at a time, under the advisory lock for as long as it runs, with its output kept line by line for a page to stream. |
|
services/keyaudit
Package keyaudit is the one definition of what "dangling" means for a key.
|
Package keyaudit is the one definition of what "dangling" means for a key. |
|
services/keystore
Package keystore generates and fingerprints SSH keys by shelling out to ssh-keygen.
|
Package keystore generates and fingerprints SSH keys by shelling out to ssh-keygen. |
|
services/keysvc
Package keysvc is the key-centric read layer: for every key the manifest owns, what is on disk for it, which hosts wire it, and where it is deployed.
|
Package keysvc is the key-centric read layer: for every key the manifest owns, what is on disk for it, which hosts wire it, and where it is deployed. |
|
services/knownhosts
Package knownhosts pins host keys via ssh-keyscan.
|
Package knownhosts pins host keys via ssh-keyscan. |
|
services/lifecycle
Package lifecycle removes a profile or a key completely, as one guarded transaction.
|
Package lifecycle removes a profile or a key completely, as one guarded transaction. |
|
services/migratesvc
Package migratesvc brings a home from an earlier release to the current layout.
|
Package migratesvc brings a home from an earlier release to the current layout. |
|
services/mutation
Package mutation is the guard every command that changes state goes through: the advisory lock that serializes sshmgr processes, the crash-residue sweep, and the ~/.ssh snapshot that makes the change reversible.
|
Package mutation is the guard every command that changes state goes through: the advisory lock that serializes sshmgr processes, the crash-residue sweep, and the ~/.ssh snapshot that makes the change reversible. |
|
services/netstat
Package netstat reports per-host network reachability for the `net` verb, ported from facade.network_status.
|
Package netstat reports per-host network reachability for the `net` verb, ported from facade.network_status. |
|
services/notifier
Package notifier drives the expiry surfaces from the pure expiry engine: States (per-key expiry), Banner (the debounced inline reminder), and Notify (the cadence-gated desktop alert).
|
Package notifier drives the expiry surfaces from the pure expiry engine: States (per-key expiry), Banner (the debounced inline reminder), and Notify (the cadence-gated desktop alert). |
|
services/opstore
Package opstore keeps SSH keys as items in 1Password, through the op CLI.
|
Package opstore keeps SSH keys as items in 1Password, through the op CLI. |
|
services/overview
Package overview is the state of an sshmgr home at a glance: where it operates, what it holds, and what needs attention, each problem paired with the command that fixes it.
|
Package overview is the state of an sshmgr home at a glance: where it operates, what it holds, and what needs attention, each problem paired with the command that fixes it. |
|
services/preflight
Package preflight detects the OS and verifies the SSH tooling doctor needs.
|
Package preflight detects the OS and verifies the SSH tooling doctor needs. |
|
services/pubkeys
Package pubkeys regenerates public keys from the key they belong to: the private key file for a key on disk (ssh-keygen -y), or the vault item for a key kept in 1Password.
|
Package pubkeys regenerates public keys from the key they belong to: the private key file for a key on disk (ssh-keygen -y), or the vault item for a key kept in 1Password. |
|
services/query
Package query is the read-only view layer over the manifest + inventory that backs list/view (and feeds audit).
|
Package query is the read-only view layer over the manifest + inventory that backs list/view (and feeds audit). |
|
services/reconciler
Package reconciler rebuilds the ~/.ssh tree from the manifest.
|
Package reconciler rebuilds the ~/.ssh tree from the manifest. |
|
services/recover
Package recover emits break-glass recovery material, ported from facade.recovery_script + _recovery_snippet.
|
Package recover emits break-glass recovery material, ported from facade.recovery_script + _recovery_snippet. |
|
services/rotator
Package rotator does zero-downtime, staged, single-old-archive key rotation.
|
Package rotator does zero-downtime, staged, single-old-archive key rotation. |
|
services/settings
Package settings reads the user's two settings files - <config home>/.env and <config home>/authama.json - into the process environment at start-up.
|
Package settings reads the user's two settings files - <config home>/.env and <config home>/authama.json - into the process environment at start-up. |
|
services/snapshots
Package snapshots is the local reversible-backup layer for ~/.ssh.
|
Package snapshots is the local reversible-backup layer for ~/.ssh. |
|
services/tokensvc
Package tokensvc does the I/O for token management: it finds the token config, reads and writes the five target files (Composer's auth.json, .npmrc, Docker's config.json, the git credential store and .netrc), and keeps every write inside the sandbox in dev mode.
|
Package tokensvc does the I/O for token management: it finds the token config, reads and writes the five target files (Composer's auth.json, .npmrc, Docker's config.json, the git credential store and .netrc), and keeps every write inside the sandbox in dev mode. |
|
services/validate
Package validate checks that managed keypairs parse, that the public key matches the private key, and that perms are correct.
|
Package validate checks that managed keypairs parse, that the public key matches the private key, and that perms are correct. |
|
tabler
Package tabler vendors the Tabler assets the web UI embeds: it resolves and pins versions, downloads and integrity-checks the npm tarballs, cuts the icon subset, and writes the licence texts, the hash manifest and the repository's THIRD_PARTY_NOTICES.md.
|
Package tabler vendors the Tabler assets the web UI embeds: it resolves and pins versions, downloads and integrity-checks the npm tarballs, cuts the icon subset, and writes the licence texts, the hash manifest and the repository's THIRD_PARTY_NOTICES.md. |
|
tools/tablervendor
command
Command tablervendor vendors the Tabler assets the web UI embeds.
|
Command tablervendor vendors the Tabler assets the web UI embeds. |
|
util/askpass
Package askpass delivers a passphrase to ssh-keygen without it ever appearing on a command line.
|
Package askpass delivers a passphrase to ssh-keygen without it ever appearing on a command line. |
|
util/clipboard
Package clipboard finds the platform's clipboard writer, for `termius keys` (which copies a key) and doctor (which reports when there is none).
|
Package clipboard finds the platform's clipboard writer, for `termius keys` (which copies a key) and doctor (which reports when there is none). |
|
util/desktop
Package desktop posts a best-effort desktop notification, ported from the platforms/*.notify methods: terminal-notifier/osascript on macOS, notify-send on Linux, a PowerShell balloon on Windows.
|
Package desktop posts a best-effort desktop notification, ported from the platforms/*.notify methods: terminal-notifier/osascript on macOS, notify-send on Linux, a PowerShell balloon on Windows. |
|
util/envnames
Package envnames is the one table of the environment variables authama reads, under their current AUTHAMA_* names and the names earlier releases used.
|
Package envnames is the one table of the environment variables authama reads, under their current AUTHAMA_* names and the names earlier releases used. |
|
util/fs
Package fs has atomic-write and directory helpers, ported from the parts of the renderer/config writer need.
|
Package fs has atomic-write and directory helpers, ported from the parts of the renderer/config writer need. |
|
util/homeperms
Package homeperms is the single enumeration of the config-home secret paths and their canonical modes, shared by init (the seeder) and doctor (the fixer) so they can never disagree.
|
Package homeperms is the single enumeration of the config-home secret paths and their canonical modes, shared by init (the seeder) and doctor (the fixer) so they can never disagree. |
|
util/httpjson
Package httpjson is a minimal JSON-over-HTTP client for the REST provider adapters.
|
Package httpjson is a minimal JSON-over-HTTP client for the REST provider adapters. |
|
util/lock
Package lock is an advisory file lock so concurrent commands (e.g.
|
Package lock is an advisory file lock so concurrent commands (e.g. |
|
util/log
Package log writes the append-only audit trail, ported from util/log.audit.
|
Package log writes the append-only audit trail, ported from util/log.audit. |
|
util/netcheck
Package netcheck is the network reachability + VPN status probe.
|
Package netcheck is the network reachability + VPN status probe. |
|
util/paths
Package paths resolves the per-user directories and the on-disk layout.
|
Package paths resolves the per-user directories and the on-disk layout. |
|
util/perms
Package perms centralizes the file modes authama enforces and applies them in a platform-correct way - POSIX chmod on Unix, ACLs via icacls on Windows.
|
Package perms centralizes the file modes authama enforces and applies them in a platform-correct way - POSIX chmod on Unix, ACLs via icacls on Windows. |
|
util/scheduler
Package scheduler installs the daily job that runs `sshmgr audit --notify`, ported from the platforms/*.install_scheduler layer: a launchd agent on macOS, a systemd --user timer (else cron) on Linux, a schtasks task on Windows.
|
Package scheduler installs the daily job that runs `sshmgr audit --notify`, ported from the platforms/*.install_scheduler layer: a launchd agent on macOS, a systemd --user timer (else cron) on Linux, a schtasks task on Windows. |
|
util/secrets
Package secrets resolves provider tokens.
|
Package secrets resolves provider tokens. |
|
version
Package version carries the build version.
|
Package version carries the build version. |
|
web
Package web is the `sshmgr serve` command's localhost web UI.
|
Package web is the `sshmgr serve` command's localhost web UI. |
Click to show internal directories.
Click to hide internal directories.