From 2fbb98794a7696583a8b64e9e5811741e1d68a30 Mon Sep 17 00:00:00 2001 From: piyush Date: Wed, 3 Sep 2025 12:01:30 +0530 Subject: [PATCH] chore: Fix regex validation to enforce exact match (public or private) --- solutions/fully-configurable/variables.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solutions/fully-configurable/variables.tf b/solutions/fully-configurable/variables.tf index ce04a551..af14afdc 100644 --- a/solutions/fully-configurable/variables.tf +++ b/solutions/fully-configurable/variables.tf @@ -292,7 +292,7 @@ variable "kms_endpoint_type" { description = "The type of endpoint to use for communicating with the Key Protect or Hyper Protect Crypto Services instance. Possible values: `public`, `private`. Applies only if `existing_cos_kms_key_crn` is not specified." default = "private" validation { - condition = can(regex("public|private", var.kms_endpoint_type)) + condition = can(regex("^(public|private)$", var.kms_endpoint_type)) error_message = "Valid values for the `kms_endpoint_type_value` are `public` or `private`. " } }