How goriparthivamsi/certagility works
certagility is a command-line and exporter service that inventories certificates from network, file, Kubernetes, and AWS sources; analyzes lifecycle and cryptographic readiness; and emits human-readable or machine-readable reports. The graph follows the documented scan path and the sampled calls. The README documents exporter endpoints and report capabilities; unsampled implementation details are represented only where paths are supported, and no unverified source-call links are inferred.
Main entry points: scan.go Scan orchestration · main.go Exporter HTTP service · x509.go X.509 normalization · report.go Format selection
Components 21
Command runtime
- CLI commands
cmd/certagility/main.go - Exporter HTTP service
cmd/certagility/main.go
Certificate discovery
- Scan orchestration
internal/scan/scan.go - TLS endpoint scan
internal/source/endpoint.go - Certificate file scan
internal/source/files.go - Kubernetes Secrets
internal/source/kubernetes.go - AWS ACM scan
internal/source/acm.go - X.509 normalization
internal/source/x509.go - OID helpers
internal/source/oid.go
Inventory assessment
- Inventory data model
internal/model/model.go - Readiness analysis
internal/analyze/analyze.go
Reporting and export
- Format selection
internal/report/report.go - Table and summary
internal/report/report.go - CycloneDX CBOM
internal/report/cbom.go - Prometheus metrics
internal/report/prometheus.go
Other components
- Operator
- TLS endpoints
- Kubernetes cluster
- AWS Certificate Manager
- Prometheus consumer
- CBOM consumer
Connections 28
- Operator → CLI commands: invokes
cmd/certagility/main.go - CLI commands → Scan orchestration: runs scan
cmd/certagility/main.go - CLI commands → Format selection: writes report
cmd/certagility/main.go - CLI commands → Exporter HTTP service: starts service
cmd/certagility/main.go - Scan orchestration → TLS endpoint scan: scans targets
internal/scan/scan.go - Scan orchestration → Certificate file scan: scans paths
internal/scan/scan.go - Scan orchestration → Kubernetes Secrets: scans Secrets
internal/scan/scan.go - Scan orchestration → AWS ACM scan: scans certificates
internal/scan/scan.go - TLS endpoint scan → TLS endpoints: connects TLS
internal/source/endpoint.go - Kubernetes Secrets → Kubernetes cluster: lists Secrets
internal/source/kubernetes.go - AWS ACM scan → AWS Certificate Manager: lists and retrieves
internal/source/acm.go - TLS endpoint scan → X.509 normalization: normalizes chain
internal/source/endpoint.go - Certificate file scan → X.509 normalization: parses certificates
internal/source/files.go - Kubernetes Secrets → X.509 normalization: parses certificate data
internal/source/kubernetes.go - AWS ACM scan → X.509 normalization: parses certificate bundle
internal/source/acm.go - X.509 normalization → OID helpers: uses OID helpers
internal/source/x509.go - Scan orchestration → Inventory data model: builds inventory
internal/scan/scan.go - Scan orchestration → Readiness analysis: analyzes records
internal/scan/scan.go - Scan orchestration → X.509 normalization: collects records
internal/scan/scan.go - Readiness analysis → Inventory data model: updates findings
internal/analyze/analyze.go - Format selection → Table and summary: renders table
internal/report/report.go - Format selection → CycloneDX CBOM: renders CBOM
internal/report/report.go - Format selection → Prometheus metrics: renders metrics
internal/report/report.go - Exporter HTTP service → Scan orchestration: rescans periodically
cmd/certagility/main.go - Exporter HTTP service → Prometheus metrics: serves metrics
cmd/certagility/main.go - Exporter HTTP service → CycloneDX CBOM: serves CBOM
cmd/certagility/main.go - Prometheus consumer → Exporter HTTP service: requests metrics
README.md - CBOM consumer → Exporter HTTP service: requests CBOM
README.md