Skip to content

Commit

Permalink
* 1.2.2 -- 2025-03-18
Browse files Browse the repository at this point in the history
  - all
    - add validation of contact_email to include @ and in the census.gov domain
  • Loading branch information
badra001 committed Mar 18, 2025
1 parent 51a5e9c commit cd7dff1
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,7 @@
* 1.2.1 -- 2025-03-06
- acmpca-eks-cert-manager
- un-hardcode validity_days from 365 to use the variable (due to the ACMPCA issuer lifetime being less than one year right now)

* 1.2.2 -- 2025-03-18
- all
- add validation of contact_email to include @ and in the census.gov domain
1 change: 1 addition & 0 deletions acm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ the ARN if completed. You'll use the ARN for an AWS LB Listener.
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.0 |
| <a name="requirement_local"></a> [local](#requirement\_local) | >= 2.1.0 |
| <a name="requirement_null"></a> [null](#requirement\_null) | >= 3.1.0 |
| <a name="requirement_random"></a> [random](#requirement\_random) | >= 3.6.0 |
| <a name="requirement_tls"></a> [tls](#requirement\_tls) | >= 3.1.0 |

## Providers
Expand Down
5 changes: 5 additions & 0 deletions acm/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,9 @@ variable "certificate_san" {
variable "contact_email" {
description = "Email address in @census.gov of contact for the certificate. This is strongly recommended to be a group email address."
type = string

validation {
condition = length(regexall("@", var.contact_email)) > 0 && endswith(lower(var.contact_email), "census.gov")
error_message = "contact_email must be a valid email address and in the census.gov domain."
}
}
5 changes: 5 additions & 0 deletions acmpca-eks-cert-manager/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ variable "cluster_name" {
variable "contact_email" {
description = "Email address in @census.gov of contact for the certificate. This is strongly recommended to be a group email address."
type = string

validation {
condition = length(regexall("@", var.contact_email)) > 0 && endswith(lower(var.contact_email), "census.gov")
error_message = "contact_email must be a valid email address and in the census.gov domain."
}
}

variable "validity_days" {
Expand Down
5 changes: 5 additions & 0 deletions acmpca-iam-rolesanywhere/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ variable "role_name" {
variable "contact_email" {
description = "Email address in @census.gov of contact for the certificate. This is strongly recommended to be a group email address."
type = string

validation {
condition = length(regexall("@", var.contact_email)) > 0 && endswith(lower(var.contact_email), "census.gov")
error_message = "contact_email must be a valid email address and in the census.gov domain."
}
}

variable "validity_days" {
Expand Down
6 changes: 5 additions & 1 deletion acmpca/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ variable "certificate_san" {
variable "contact_email" {
description = "Email address in @census.gov of contact for the certificate. This is strongly recommended to be a group email address."
type = string
}

validation {
condition = length(regexall("@", var.contact_email)) > 0 && endswith(lower(var.contact_email), "census.gov")
error_message = "contact_email must be a valid email address and in the census.gov domain."
}
}

variable "certificate_cn" {
description = "CommonName (CN) to use for certificate, defaults in c=US,o=U.S. Census Bureau,ou=Servers. This will typically be the DNS name. Uses certificate_dns if not provided."
Expand Down
2 changes: 1 addition & 1 deletion common/version.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
locals {
_module_version = "1.2.1"
_module_version = "1.2.2"
}

0 comments on commit cd7dff1

Please sign in to comment.