go-gandi / terraform-provider-gandi

Terraform provider for the Gandi Domain services
Mozilla Public License 2.0
152 stars 46 forks source link

Creating new DNSSEC key may fail randomly #83

Closed vincentbernat closed 2 years ago

vincentbernat commented 2 years ago

Hey!

When creating a new DNSSEC key, we may get a failure while the key is created because we don't wait enough time to retrieve its ID. We may get Cannot find DNSSEC key for domain bernat.ch. Creation is done by creating, sleeping two seconds and trying to get the ID by walking existing key and matching on the public key. This should be replaced by a retry logic.

I don't have a toy domain to try this out but I see there is a sandbox to try it out. I'll try to come up with a patch.