Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Traffic Ops Generate KSK endpoint doesn't work if there is no existing KSK #3153

@jhowell-comcast

Description

@jhowell-comcast

When there is no KSK present for a CDN, POSTS to /api/1.4/cdns/{{ cdnNAME }}/dnsseckeys/ksk/generate fail with an internal server error:

curl -i -X POST -b mojolicious_cookie_file -d '{"expirationDays":365}' 'https://to.example.net/api/1.4/cdns/exampleCDN/dnsseckeys/ksk/generate'

HTTP/2 500
access-control-allow-credentials: true
access-control-allow-headers: Origin, X-Requested-With, Content-Type, Accept, Set-Cookie, Cookie
access-control-allow-methods: POST,GET,OPTIONS,PUT,DELETE
access-control-allow-origin: *
content-type: application/json
set-cookie: mojolicious=xxxxxxxxxxxxxxxxxx; Path=/; HttpOnly
whole-content-sha512: xxxxxxxxxxxxxx
x-server-name: traffic_ops_golang/
content-length: 61
date: Thu, 20 Dec 2018 21:06:13 GMT

{"alerts":[{"text":"Internal Server Error","level":"error"}]}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Traffic Opsrelated to Traffic Opsnew featureA new feature, capability or behavior

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions