Files
a13labs.infra/terraform/modules/utils/trivy/variables.tf
T
alexandre.pires 255ba6aec9 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.
2026-05-22 23:41:26 +02:00

65 lines
1.4 KiB
Terraform

variable "persistent_folder" {
description = "The path to the persistent folder"
type = string
}
variable "smtp_host" {
description = "The SMTP relay host"
type = string
}
variable "smtp_port" {
description = "The SMTP relay port"
type = string
}
variable "smtp_username" {
description = "The SMTP relay username"
type = string
sensitive = true
}
variable "smtp_password" {
description = "The SMTP relay password"
type = string
sensitive = true
}
variable "from_email" {
description = "The email address to use as the sender"
type = string
}
variable "to_email" {
description = "The email address to send the report to"
type = string
}
variable "cron_schedule" {
description = "Cronjob schedule for data backups"
type = string
}
variable "tag" {
description = "The version of Trivy to install"
type = string
}
variable "report_type" {
description = "The type of report to generate"
type = string
default = "all"
}
variable "levels" {
description = "The severity levels to include in the report"
type = string
default = "HIGH,CRITICAL"
}
variable "pushgateway_url" {
description = "URL of the Prometheus Pushgateway including /metrics/job/<job> path"
type = string
default = "http://pushgateway.prometheus.svc.cluster.local:9091/metrics/job/trivy-metrics"
}