mydnshost / mydnshost-api

API Backend for mydnshost
Other
2 stars 1 forks source link

Duplicate DNSSEC Keys #58

Closed ShaneMcC closed 5 years ago

ShaneMcC commented 5 years ago

Sometimes when a domain is created we end up generating 2 sets of DNSSEC keys.

I'm not entirely sure why.

<Dataforce> I think it's a race condition for initial zone-file writing
<Dataforce> I've not looked too much into it
<Dataforce> but I think I create a key 1) when the domain is created 2) when I write a zone file and there is no key
<Dataforce> only 1 worker of each type runs at a time
<Dataforce> so I think if the worker for #1 is dealing with another domain, #2 can happen first
<Dataforce> see that there isn't a key and queue up a second #1
<Dataforce> maybe