mhoppa commented on a change in pull request #4430: DNSSEC refresh breaks on DS
if KSK and ZSK both are expired
URL: https://github.com/apache/trafficcontrol/pull/4430#discussion_r382858114
##########
File path: traffic_ops/traffic_ops_golang/cdn/dnssecrefresh.go
##########
@@ -251,6 +251,10 @@ func doDNSSECKeyRefresh(tx *sql.Tx, cfg *config.Config) {
if err != nil {
log.Errorln("refreshing DNSSEC Keys:
regenerating expired ZSK keys for ds '" + string(ds.DSName) + "': " +
err.Error())
} else {
+ if existingNewKeys, ok :=
keys[string(ds.DSName)]; ok {
Review comment:
yeah maybe I guess. And yeah the key set is returned but it’s overwritten. I
mean we can leave it broken w/ the bug since ideally the next cron run will
catch the ksk key as long as the expiration date is bigger than the cron run of
the refresh script for the zsk key
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services