Require explicit edge HAProxy password

This commit is contained in:
juvdiaz 2026-06-29 13:24:23 -06:00
parent a26f420d4a
commit 21364a4202
1 changed files with 8 additions and 2 deletions

View File

@ -86,6 +86,12 @@ variable "haproxy_stats_user" {
} }
variable "haproxy_stats_password" { variable "haproxy_stats_password" {
type = string type = string
default = "adminpassword" sensitive = true
default = ""
validation {
condition = length(var.haproxy_stats_password) >= 12 && var.haproxy_stats_password != "adminpassword"
error_message = "haproxy_stats_password must be set explicitly to a non-default value with at least 12 characters."
}
} }