internal/

directory
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: MIT

Directories

Path Synopsis
Package brand is the one place the tool's names are decided.
Package brand is the one place the tool's names are decided.
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.
expiry
Package expiry is the pure expiry-policy engine.
Package expiry is the pure expiry-policy engine.
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.
inventory
Package inventory is the deployment-tracking model.
Package inventory is the deployment-tracking model.
key
Package key implements the authama key-naming convention.
Package key implements the authama key-naming convention.
manifest
Package manifest is the authama manifest domain model.
Package manifest is the authama manifest domain model.
naming
Package naming holds the rules for how servers and their keys are named: an alias template such as {code}-{env}-{role}-{nn}, from which an alias is checked, parsed into its parts or generated with the next free number, and a key-name template such as {profile}_{alias}-{algo}.
Package naming holds the rules for how servers and their keys are named: an alias template such as {code}-{env}-{role}-{nn}, from which an alias is checked, parsed into its parts or generated with the next free number, and a key-name template such as {profile}_{alias}-{algo}.
pin
Package pin hashes and checks the owner's PIN or passphrase.
Package pin hashes and checks the owner's PIN or passphrase.
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.
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.
seal
Package seal detects authama's state being moved or edited outside authama.
Package seal detects authama's state being moved or edited outside authama.
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.
Package platform isolates the OS-specific behaviour authama 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 authama 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).
apitokens
Package apitokens keeps the tokens programs use to call authama's API: `ama_` and 32 random bytes, shown once when made.
Package apitokens keeps the tokens programs use to call authama's API: `ama_` and 32 random bytes, shown once when made.
bundler
Package bundler makes and restores an age-encrypted backup.
Package bundler makes and restores an age-encrypted backup.
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.
checklist
Package checklist answers, for anything authama can revoke (an SSH key, an auth token), where it is used and what is left to do to rotate or revoke it completely.
Package checklist answers, for anything authama can revoke (an SSH key, an auth token), where it is used and what is left to do to rotate or revoke it completely.
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.
configsvc
Package configsvc renders, checks, and shows the SSH config.
Package configsvc renders, checks, and shows the SSH config.
dataset
Package dataset builds the export dataset: every profile, key, host and token of a home as typed, related records, with no secret on any of them.
Package dataset builds the export dataset: every profile, key, host and token of a home as typed, related records, with no secret on any of them.
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.
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.
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.
editor
Package editor does manifest editing - profile/host add·edit·delete.
Package editor does manifest editing - profile/host add·edit·delete.
events
Package events tracks the files authama is responsible for - everything under ~/.ssh, the config home, and each tool's credential file - and records every change to them, whoever made it: authama, an editor, ssh-keygen run by hand, a package manager rewriting its token file.
Package events tracks the files authama is responsible for - everything under ~/.ssh, the config home, and each tool's credential file - and records every change to them, whoever made it: authama, an editor, ssh-keygen run by hand, a package manager rewriting its token file.
exports
Package exports lays out the lists authama shows as tables for CSV: one set of columns per kind of thing, shared by the CLI's --csv and the web UI's downloads, so the two cannot drift.
Package exports lays out the lists authama shows as tables for CSV: one set of columns per kind of thing, shared by the CLI's --csv and the web UI's downloads, so the two cannot drift.
feed
Package feed is authama's event feed: one ordered stream of what happened, for the API, webhooks and MCP, each event a CloudEvents 1.0 event in structured JSON (https://github.com/cloudevents/spec).
Package feed is authama's event feed: one ordered stream of what happened, for the API, webhooks and MCP, each event a CloudEvents 1.0 event in structured JSON (https://github.com/cloudevents/spec).
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).
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.
importer
Package importer onboards an existing ~/.ssh into the manifest + inventory.
Package importer onboards an existing ~/.ssh into the manifest + inventory.
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.
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.
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.
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.
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.
knownhosts
Package knownhosts pins host keys via ssh-keyscan.
Package knownhosts pins host keys via ssh-keyscan.
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.
mcp
Package mcp is authama's Model Context Protocol server: an AI client starts `authama mcp` and talks to it over stdio, as the protocol recommends for a local server (no port, so only the client that started it can reach it).
Package mcp is authama's Model Context Protocol server: an AI client starts `authama mcp` and talks to it over stdio, as the protocol recommends for a local server (no port, so only the client that started it can reach it).
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.
mutation
Package mutation is the guard every command that changes state goes through: the advisory lock that serializes authama 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 authama processes, the crash-residue sweep, and the ~/.ssh snapshot that makes the change reversible.
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.
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).
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.
overview
Package overview is the state of an authama 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 authama home at a glance: where it operates, what it holds, and what needs attention, each problem paired with the command that fixes it.
owner
Package owner ties an authama home to the person and machine it belongs to.
Package owner ties an authama home to the person and machine it belongs to.
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.
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.
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).
reconciler
Package reconciler rebuilds the ~/.ssh tree from the manifest.
Package reconciler rebuilds the ~/.ssh tree from the manifest.
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.
repair
Package repair finds what is wrong with an authama home, ~/.ssh and the token files, and fixes what can be fixed without guessing.
Package repair finds what is wrong with an authama home, ~/.ssh and the token files, and fixes what can be fixed without guessing.
rotator
Package rotator does zero-downtime, staged, single-old-archive key rotation.
Package rotator does zero-downtime, staged, single-old-archive key rotation.
savedsel
Package savedsel keeps export selections by name, in two stores: this account's own (a file each under the state home, private to it) and the manifest's (defaults.export.selections, so they travel with it).
Package savedsel keeps export selections by name, in two stores: this account's own (a file each under the state home, private to it) and the manifest's (defaults.export.selections, so they travel with it).
selection
Package selection runs a selection over the export dataset: which rows (the grain), which of them (facets and text), what each row says (columns, following relations by path), in what order and how many.
Package selection runs a selection over the export dataset: which rows (the grain), which of them (facets and text), what each row says (columns, following relations by path), in what order and how many.
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.
snapshots
Package snapshots is the local reversible-backup layer for ~/.ssh.
Package snapshots is the local reversible-backup layer for ~/.ssh.
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.
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.
vmsync
Package vmsync keeps a manifest's VM hosts in step with the hypervisors that run them: `authama ssh vm sync`, the VM half of `authama doctor --fix` and the web UI's VM page.
Package vmsync keeps a manifest's VM hosts in step with the hypervisors that run them: `authama ssh vm sync`, the VM half of `authama doctor --fix` and the web UI's VM page.
webhooks
Package webhooks sends authama's event feed to endpoints you register, as Standard Webhooks (https://www.standardwebhooks.com, spec 1.0.0) describes: each event is a POST of the CloudEvent itself, in structured mode (Content-Type: application/cloudevents+json), with the headers webhook-id (the event's id), webhook-timestamp and webhook-signature, the signature being "v1," and the base64 HMAC-SHA256 of "<id>.<timestamp>.<body>" under the endpoint's whsec_ secret.
Package webhooks sends authama's event feed to endpoints you register, as Standard Webhooks (https://www.standardwebhooks.com, spec 1.0.0) describes: each event is a POST of the CloudEvent itself, in structured mode (Content-Type: application/cloudevents+json), with the headers webhook-id (the event's id), webhook-timestamp and webhook-signature, the signature being "v1," and the base64 HMAC-SHA256 of "<id>.<timestamp>.<body>" under the endpoint's whsec_ secret.
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.
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).
csvout
Package csvout writes tables as CSV (RFC 4180): a header row, then one row per item, quoted where a cell needs it.
Package csvout writes tables as CSV (RFC 4180): a header row, then one row per item, quoted where a cell needs it.
desktop
Package desktop posts a best-effort desktop notification through github.com/simtabi/go-notifykit, so a banner says "authama" with authama's icon instead of "Script Editor", and nothing reaches the screen under `go test` or in CI.
Package desktop posts a best-effort desktop notification through github.com/simtabi/go-notifykit, so a banner says "authama" with authama's icon instead of "Script Editor", and nothing reaches the screen under `go test` or in CI.
encode
Package encode writes a table of typed rows in a file format: the last stage of the export pipeline (dataset, selection, format).
Package encode writes a table of typed rows in a file format: the last stage of the export pipeline (dataset, selection, format).
envnames
Package envnames is the one table of the environment variables authama reads.
Package envnames is the one table of the environment variables authama reads.
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.
highlight
Package highlight colours one line of a file by its kind, for display.
Package highlight colours one line of a file by its kind, for display.
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.
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.
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.
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.
netcheck
Package netcheck is the network reachability + VPN status probe.
Package netcheck is the network reachability + VPN status probe.
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.
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.
scheduler
Package scheduler installs authama's daily jobs - `authama ssh audit --notify` (Label) and `authama ssh vm sync --quiet --yes` (VMSyncLabel) - 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 authama's daily jobs - `authama ssh audit --notify` (Label) and `authama ssh vm sync --quiet --yes` (VMSyncLabel) - 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.
secrets
Package secrets resolves provider tokens.
Package secrets resolves provider tokens.
testcred
Package testcred hands tests the tokens, passwords and passphrases they need, generated when the test binary runs rather than written in the source.
Package testcred hands tests the tokens, passwords and passphrases they need, generated when the test binary runs rather than written in the source.
Package version carries the build version.
Package version carries the build version.
Package web is the `authama serve` command's localhost web UI.
Package web is the `authama serve` command's localhost web UI.

Jump to

Keyboard shortcuts

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