You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by el...@apache.org on 2019/01/18 22:16:05 UTC

[trafficcontrol] branch master updated: Change TO DNSSEC generation to enforce lowercase

This is an automated email from the ASF dual-hosted git repository.

elsloo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new 288cdb4  Change TO DNSSEC generation to enforce lowercase
288cdb4 is described below

commit 288cdb4611843ce2a1b90cf77d2a5cdb31c926d2
Author: Robert Butts <ro...@apache.org>
AuthorDate: Fri Jan 18 11:42:15 2019 -0700

    Change TO DNSSEC generation to enforce lowercase
---
 traffic_ops/traffic_ops_golang/cdn/dnssec.go             | 1 +
 traffic_ops/traffic_ops_golang/deliveryservice/dnssec.go | 1 +
 2 files changed, 2 insertions(+)

diff --git a/traffic_ops/traffic_ops_golang/cdn/dnssec.go b/traffic_ops/traffic_ops_golang/cdn/dnssec.go
index 606ac49..fe87cae 100644
--- a/traffic_ops/traffic_ops_golang/cdn/dnssec.go
+++ b/traffic_ops/traffic_ops_golang/cdn/dnssec.go
@@ -165,6 +165,7 @@ func generateStoreDNSSECKeys(
 	if !strings.HasSuffix(cdnDNSDomain, ".") {
 		cdnDNSDomain = cdnDNSDomain + "."
 	}
+	cdnDNSDomain = strings.ToLower(cdnDNSDomain)
 
 	inception := time.Now()
 	newCDNZSK, err := deliveryservice.GetDNSSECKeysV11(tc.DNSSECZSKType, cdnDNSDomain, ttl, inception, inception.Add(zExp), tc.DNSSECKeyStatusNew, time.Unix(effectiveDateUnix, 0), false)
diff --git a/traffic_ops/traffic_ops_golang/deliveryservice/dnssec.go b/traffic_ops/traffic_ops_golang/deliveryservice/dnssec.go
index 42a9fab..b33d796 100644
--- a/traffic_ops/traffic_ops_golang/deliveryservice/dnssec.go
+++ b/traffic_ops/traffic_ops_golang/deliveryservice/dnssec.go
@@ -177,6 +177,7 @@ func GetDSDomainName(dsExampleURLs []string) (string, error) {
 		return "", errors.New("malformed example URL, nothing after first dot")
 	}
 	dsName = dsName[firstDot+1:]
+	dsName = strings.ToLower(dsName)
 	return dsName, nil
 }