You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by "Jeremy Mitchell (JIRA)" <ji...@apache.org> on 2017/04/11 02:25:41 UTC
[jira] [Commented] (TC-223) Creating a DS through the API results
in an invalid DNSSEC keypair
[ https://issues.apache.org/jira/browse/TC-223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15963750#comment-15963750 ]
Jeremy Mitchell commented on TC-223:
------------------------------------
I "think" this is a order of operations problem. I think if you move lines 456 & 457
https://github.com/apache/incubator-trafficcontrol/blob/master/traffic_ops/app/lib/API/Deliveryservice.pm#L456-L457
before line 449
https://github.com/apache/incubator-trafficcontrol/blob/master/traffic_ops/app/lib/API/Deliveryservice.pm#L449
then you will have the ds regex that you need for the dnssec keys.
Jeremy
> Creating a DS through the API results in an invalid DNSSEC keypair
> ------------------------------------------------------------------
>
> Key: TC-223
> URL: https://issues.apache.org/jira/browse/TC-223
> Project: Traffic Control
> Issue Type: Bug
> Components: Traffic Ops
> Affects Versions: 2.0.0, 2.1.0
> Reporter: David Neuman
>
> If you have DNSSEC enabled and you create a DS from the API, a DNSSEC keypair with name = "" gets created (example below). It looks like this happens because when you create a DS through the API you don't create the DS with a regex. When the create method calls create_dnssec_keys that method uses the regex to create the name field.
> {quote}
> "Test-DS-1491489049" : {
> "zsk" : [
> {
> "effectiveDate" : 1491489041,
> "public" : "...",
> "private" : "...",
> "expirationDate" : 1494081041,
> "name" : "",
> "status" : "new",
> "inceptionDate" : 1491489041,
> "ttl" : "60"
> }
> ],
> "ksk" : [
> {
> "status" : "new",
> "ttl" : "60",
> "inceptionDate" : 1491489041,
> "public" : "...",
> "effectiveDate" : 1491489041,
> "name" : "",
> "private" : "...",
> "expirationDate" : 1523025041
> }
> ]
> },
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)