Skip to content

Commit 20eeccf

Browse files
authored
Merge pull request #409 from ComputeCanada/dkim_255
Limit dkim record to 255 characters per chunk (issue 408)
2 parents 6c8b8a2 + 7a9175e commit 20eeccf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dns/record_generator/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ locals {
111111
{
112112
type = "TXT"
113113
name = local.dkim_public_key != "" ? "default._domainkey.${var.name}" : var.name
114-
value = local.dkim_public_key != "" ? "\"v=DKIM1; k=rsa; p=${local.dkim_public_key}\"" : "No DKIM public key defined for this domain"
114+
value = local.dkim_public_key != "" ? join(" ", formatlist("\"%s\"", regexall(".{1,255}", "v=DKIM1; k=rsa; p=${local.dkim_public_key}"))) : "No DKIM public key defined for this domain"
115115
data = null
116116
},
117117
{

0 commit comments

Comments
 (0)