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

Fix Traffic Ops /dnsseckeys/ksk/generate when no ksk exists#3205

Merged
elsloo merged 3 commits intoapache:masterfrom
rob05c:to-fix-ksk-gen-when-no-existing
Jan 18, 2019
Merged

Fix Traffic Ops /dnsseckeys/ksk/generate when no ksk exists#3205
elsloo merged 3 commits intoapache:masterfrom
rob05c:to-fix-ksk-gen-when-no-existing

Conversation

@rob05c
Copy link
Copy Markdown
Member

@rob05c rob05c commented Jan 10, 2019

Fixes #3153

TO API Tests don't support Riak yet.
Manually tested against a TO with Riak. Creating a new CDN with DNSSEC enabled, then calling /cdns/{name}/dnsseckeys/ksk/generate works, and generates a new KSK as expected.

This also incidentally fixes /cdns/dnsseckeys/generate for a brand-new CDN.

Note for these endpoints to work with a newly created CDN, it will require a DS TTL on a Router Profile, without #3206 .

What does this PR do?

Fixes #3153

Which TC components are affected by this PR?

  • Documentation
  • Grove
  • Traffic Analytics
  • Traffic Monitor
  • Traffic Ops
  • Traffic Ops ORT
  • Traffic Portal
  • Traffic Router
  • Traffic Stats
  • Traffic Vault
  • Other _________

What is the best way to verify this PR?

Create a new CDN, then call /cdns/{name}/dnsseckeys/ksk/generate . Verify keys were created by calling and inspecting /api/1.4/cdns/name/{name}/dnsseckey.

Note for these endpoints to work with a newly created CDN, it will require a DS TTL on a Router Profile, without #3206 .

The easiest way to verify this, is to also apply #3206 and then verify that a brand-new CDN can generate dnsseckeys and ksks.

Also verify /cdns/{name}/dnsseckeys/ksk/generate and /cdns/dnsseckeys/generate still work appropriately for existing CDNs: call those endpoints on an existing CDN with existing DNSSEC keys and KSKs, and verify existing keys are updated with new times correctly, and previous keys are changed to "expired" status.

Check all that apply

  • This PR includes tests
  • This PR includes documentation updates
  • This PR includes an update to CHANGELOG.md
  • This PR includes all required license headers
  • This PR includes a database migration (ensure that migration sequence is correct)
  • This PR fixes a serious security flaw. Read more: www.apache.org/security

@rob05c rob05c added new feature A new feature, capability or behavior Traffic Ops related to Traffic Ops labels Jan 10, 2019
@rob05c rob05c changed the title Fix Traffic Ops /dnsseckeys/ksk/generate when no ksk exists WIP Fix Traffic Ops /dnsseckeys/ksk/generate when no ksk exists Jan 10, 2019
@rob05c rob05c added the WIP "Work-in-Progress" - do not merge! (use 'draft' pull requests from now on) label Jan 10, 2019
@asfgit
Copy link
Copy Markdown
Contributor

asfgit commented Jan 10, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/3036/
Test PASSed.

@rob05c rob05c force-pushed the to-fix-ksk-gen-when-no-existing branch from c1bd35d to a0017fc Compare January 11, 2019 00:22
@asfgit
Copy link
Copy Markdown
Contributor

asfgit commented Jan 11, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/3038/
Test PASSed.

@rob05c rob05c force-pushed the to-fix-ksk-gen-when-no-existing branch from a0017fc to 7f80c8d Compare January 11, 2019 06:21
@rob05c rob05c removed the WIP "Work-in-Progress" - do not merge! (use 'draft' pull requests from now on) label Jan 11, 2019
@rob05c rob05c changed the title WIP Fix Traffic Ops /dnsseckeys/ksk/generate when no ksk exists Fix Traffic Ops /dnsseckeys/ksk/generate when no ksk exists Jan 11, 2019
@asfgit
Copy link
Copy Markdown
Contributor

asfgit commented Jan 11, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/3039/
Test PASSed.

@rob05c rob05c force-pushed the to-fix-ksk-gen-when-no-existing branch from 7f80c8d to a46a2b1 Compare January 18, 2019 18:46
@asfgit
Copy link
Copy Markdown
Contributor

asfgit commented Jan 18, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/3081/
Test PASSed.

@elsloo elsloo self-assigned this Jan 18, 2019
@elsloo elsloo merged commit e156e7a into apache:master Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

new feature A new feature, capability or behavior Traffic Ops related to Traffic Ops

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants