Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

aasm proxy

Manage the aa-proxy sidecar — its lifecycle, the per-host CA trust, and log tailing. The proxy intercepts outbound HTTPS via MitM so network-egress policy can be enforced without code changes (layer 2 of the three-layer model).

Synopsis

aasm proxy <SUBCOMMAND> [OPTIONS]
SubcommandPurpose
startSpawn the proxy sidecar (background or foreground).
stopStop the running proxy.
statusShow whether the proxy is running.
install-caInstall the proxy CA into the OS trust store.
uninstall-caRemove the proxy CA from the OS trust store.
logsTail the proxy log file.

aasm proxy start

Spawn aa-proxy in the background (or foreground with --no-detach). The binary is resolved from $PATH, then ~/.cargo/bin, then ./target/release.

FlagTypeDefaultDescription
--listen <LISTEN>string127.0.0.1:8899 (env AA_PROXY_ADDR)Address the proxy listens on.
--gateway <GATEWAY>stringenv AA_GATEWAY_URLGateway URL to forward policy decisions to.
--ca-dir <CA_DIR>pathenv AA_CA_DIRDirectory for CA certificate and key storage.
--no-detachflagoffRun in the foreground instead of daemonizing.
--log-file <LOG_FILE>pathRedirect proxy stdout/stderr to this file (background mode only).
aasm proxy start --listen 127.0.0.1:8899 --gateway http://localhost:50051

aasm proxy stop

Stop the running proxy sidecar. Takes no flags.

aasm proxy stop

aasm proxy status

Show whether the proxy sidecar is running (confirmed via a TCP connect probe).

FlagTypeDefaultDescription
--jsonflagoffEmit machine-readable JSON output.
aasm proxy status --json

aasm proxy install-ca

Install the proxy CA certificate into the OS trust store so intercepted TLS connections validate.

FlagTypeDefaultDescription
--ca-dir <CA_DIR>pathenv AA_CA_DIRDirectory where the CA certificate and key are stored.
--yesflagoffSkip the confirmation prompt.
aasm proxy install-ca --yes

aasm proxy uninstall-ca

Remove the proxy CA certificate from the OS trust store. Same options as install-ca.

FlagTypeDefaultDescription
--ca-dir <CA_DIR>pathenv AA_CA_DIRDirectory where the CA certificate and key are stored.
--yesflagoffSkip the confirmation prompt.
aasm proxy uninstall-ca --yes

aasm proxy logs

Tail the proxy log file, with optional level/time filtering.

FlagTypeDefaultDescription
-f, --followflagoffStream new log entries continuously (like tail -f).
--lines <LINES>integer50Number of lines to show from the end of the log.
--level <LEVEL>stringFilter to lines at or above this level: error, warn, info, debug.
--since <DURATION>stringShow only entries since a relative duration (e.g. 5m, 1h, 30s).
aasm proxy logs --follow --level warn --since 10m

Last updated: 2026-06-11 by Chisanan232