Require explicit edge HAProxy password
This commit is contained in:
parent
a26f420d4a
commit
21364a4202
|
|
@ -87,5 +87,11 @@ variable "haproxy_stats_user" {
|
|||
|
||||
variable "haproxy_stats_password" {
|
||||
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."
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue