feat(trivy): Enhance Trivy report generation and metrics handling
- Updated `generate_report.sh` to include additional scanners and output paths. - Enhanced `send_report.py` with new data classes for misconfigurations and vulnerabilities. - Improved parsing logic for Trivy output, supporting both Kubernetes and image scans. - Added Prometheus metrics generation for various scan results, including misconfigurations and vulnerabilities. - Introduced unit tests for parsing Trivy output and generating Prometheus metrics. - Modified Terraform variables for SMTP port type and added Pushgateway URL variable.
This commit is contained in:
@@ -20,3 +20,9 @@ variable "persistent_folder" {
|
||||
description = "The path to the persistent folder"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "prometheus_url" {
|
||||
description = "Prometheus service URL used by Grafana datasource provisioning"
|
||||
type = string
|
||||
default = "http://prometheus.prometheus.svc.cluster.local:9090"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user