Aarkam / Aarkam Wiki / AM CLI / Authentication, Diagnostics & Incident Triage Reference ARK-CLI-0307
Aarkam - SAT (Standalone Tier Primary Substrate) Auth & Triage AM CLI • ARK-CLI-0307

Authentication, Diagnostics & Incident Triage Reference

Authoritative command reference for am auth (Zero-Trust Sessions, DPAPI / POSIX 0600), am doctor, and am diagnose (Incident Root Cause Analysis & Sanitized Dumps).

Last updated: Nov 03, 2026 Classification: Sovereign Tier-4 Enterprise
Document Identifier ARK-CLI-0307
Standard Status
Production Standard
Architecture Tier Aarkam - SAT (Storage Substrate)
Release Version V-1.0.0-GA (Production Stable)
Architecture Tier Scope: Aarkam - SAT (Standalone Tier) These commands govern direct zero-trust session authentication with the Rokka Coordinator MON Quorum and incident triage tooling. In dark-site and air-gapped environments, am diagnose and am doctor provide self-contained root cause analysis without requiring external cloud monitoring or telemetry egress.

This reference details operator session authentication, local cryptographic token storage (Windows DPAPI / POSIX 0600), rapid health evaluations, and automated incident bundle generation.


1. am auth — Zero-Trust Operator Authentication & Sessions

In the Aarkam Standalone Tier, authentication is enforced directly by the Rokka Coordinator MON Quorum using Argon2id password verification and asymmetric JWT bearer tokens. Tokens are auto-injected into outgoing gRPC calls via GrpcAuthClientInterceptor.

1.1 Operator Login (am auth login)

bash
# Interactive login (prompts securely for password without echo)
am auth login --username secadmin

# Headless / CI/CD pipeline login reading secret from environment
am auth login --username storage-bot --password-env BOT_SECRET --non-interactive

1.2 Session Claims & Verification (am auth whoami & am auth status)

bash
# Display active user identity, tenant namespace, and assigned RBAC roles
am auth whoami

# Check token validity duration, expiration timestamp, and coordinator issuer
am auth status

# Terminate session and purge local DPAPI / POSIX 0600 token cache
am auth logout

2. am doctor — Universal Pre-Flight & Fabric Scanner

Scans the complete distributed environment in parallel, probing consensus health, storage capacity thresholds, network latency, and CPU instruction acceleration:

bash
am doctor --coordinator http://localhost:7774

3. am diagnose — Incident Triage & Root Cause Analysis

Provides emergency triage during storage anomalies, network partitions, or drive faults:

3.1 Cluster & Node Triage

bash
# Run holistic triage scan across all cluster daemons
am diagnose cluster

# Deep dive into an individual node (disk I/O wait, kernel memory, socket pools)
am diagnose node storage-02

# Inspect latency mesh between coordinators and storage daemons
am diagnose latency

3.2 Sanitized Support Dump (am diagnose dump)

Generates an offline, cryptographically sanitized diagnostic archive for support review. Masks sensitive IP addresses and removes all cryptographic keys:

bash
am diagnose dump --output /tmp/aarkam-incident-dump.tar.gz