thothctl

Dashboard Command

The dashboard command launches a local web application that provides a unified view of all ThothCTL analysis results β€” security scans, inventory, cost analysis, blast radius, drift detection, and topology.

Overview

The dashboard aggregates data from the Reports/ directory and project configuration to present:

Subcommands

Subcommand Description
launch Start the dashboard web server

Usage

# Launch with defaults (port 8080, opens browser)
thothctl dashboard launch

# Custom port
thothctl dashboard launch --port 3000

# Without auto-opening browser
thothctl dashboard launch --no-browser

# Debug mode
thothctl dashboard launch --debug

Options

Option Type Default Description
-p, --port Integer 8080 Port to run the dashboard on
-h, --host Text 127.0.0.1 Host to bind the dashboard to
--debug Flag false Run in debug mode with auto-reload
--no-browser Flag false Do not open browser automatically

Dashboard Sections

πŸ“Š Project Overview

Displays project metadata, type (Terraform/Terragrunt/CDK), and available ThothCTL commands for the detected project type.

πŸ”’ Security Findings

Shows aggregated scan results from Checkov, Trivy, KICS, and OPA:

πŸ“¦ Inventory

Module and provider catalog:

πŸ’° Cost Analysis

AWS cost projections from tfplan analysis:

πŸ’₯ Blast Radius

Change impact visualization:

πŸ”„ Drift Detection

Infrastructure drift status:

πŸ—ΊοΈ Topology

Infrastructure topology visualization:

πŸ€– AI Usage

AI-powered analysis history:

API Endpoints

The dashboard exposes a REST API for programmatic access:

Endpoint Description
GET /api/project Project info (type, name, commands)
GET /api/inventory Module and provider inventory
GET /api/sbom CycloneDX SBOM data
GET /api/scan-results Security scan results
GET /api/findings Detailed findings list
GET /api/cost-analysis Cost projections
GET /api/blast-radius Blast radius data
GET /api/drift Drift detection results
GET /api/topology Infrastructure topology
GET /api/ai-usage AI decision history
GET /api/refresh Reload all data from Reports/

Prerequisites

The dashboard reads data from the Reports/ directory. Run analysis commands first:

# Generate data for the dashboard
thothctl scan iac -t checkov -t trivy -t opa       # Security findings
thothctl inventory iac --check-versions             # Inventory + SBOM
thothctl check iac -type cost-analysis              # Cost analysis
thothctl check iac -type blast-radius               # Blast radius
thothctl check iac -type drift                      # Drift detection

Or use the workflow command to run everything:

thothctl workflow devsecops --phase all
thothctl dashboard launch

Example

# Run full pipeline then view results
$ thothctl workflow devsecops --phase all
$ thothctl dashboard launch --port 3000

🌐 Dashboard running at http://127.0.0.1:3000
πŸ“Š Loaded: 22 findings, 45 modules, 3 cost reports
πŸ”§ Press Ctrl+C to stop