-
-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Report bugs to Constellix DNS API #2724
Comments
Where is the actual Constellix dnsapi code? I can't find it on https://github.com/acmesh-official/acme.sh/tree/master/dnsapi |
It is still under review and not yet merged to the main acme.sh repository. |
Thank you. I will test it when I have certificates to renew. |
I've had to create a new account at Constellix and tried to renew a certificate with this. I have moved 3 domains at Constellix to test, and no matter what domain I try to renew a cert for, For example, the domain I try to renew is; The API respond with; response='[{"id":324703,"name":"onXXX.info","soa":{"primaryNameserver":"ns11.constellix.com.","email":"dns.constellix.com.","ttl":86400,"serial":2015010107,"refresh":43200,"retry":3600,"expire":1209600,"negCache":180},"createdTs":"2020-04-07T14:10:16Z","modifiedTs":"2020-04-07T14:58:33Z","typeId":1,"domainTags":[],"template":1360,"templateName":"3 Main Servers","folder":null,"hasGtdRegions":false,"hasGeoIP":false,"nameserverGroup":1,"nameservers":["ns11.constellix.com.","ns21.constellix.com.","ns31.constellix.com.","ns41.constellix.net.","ns51.constellix.net.","ns61.constellix.net."],"note":null,"version":6,"status":"ACTIVE","tags":[],"contactIds":[]},{"id":323056,"name":"flXXX.net","soa":{"primaryNameserver":"ns11.constellix.com.","email":"dns.constellix.com.","ttl":86400,"serial":2015010103,"refresh":43200,"retry":3600,"expire":1209600,"negCache":180},"createdTs":"2020-04-06T17:14:34Z","modifiedTs":"2020-04-06T17:16:20Z","typeId":1,"domainTags":[],"template":1360,"templateName":"3 Main Servers","folder":null,"hasGtdRegions":false,"hasGeoIP":false,"nameserverGroup":1,"nameservers":["ns11.constellix.com.","ns21.constellix.com.","ns31.constellix.com.","ns41.constellix.net.","ns51.constellix.net.","ns61.constellix.net."],"note":"Add v3","version":2,"status":"ACTIVE","tags":[],"contactIds":[434]},{"id":323030,"name":"inXXX.info","soa":{"primaryNameserver":"ns11.constellix.com.","email":"dns.constellix.com.","ttl":86400,"serial":2015010103,"refresh":43200,"retry":3600,"expire":1209600,"negCache":180},"createdTs":"2020-04-06T16:45:20Z","modifiedTs":"2020-04-06T16:52:05Z","typeId":1,"domainTags":[],"template":1360,"templateName":"3 Main Servers","folder":null,"hasGtdRegions":false,"hasGeoIP":false,"nameserverGroup":1,"nameservers":["ns11.constellix.com.","ns21.constellix.com.","ns31.constellix.com.","ns41.constellix.net.","ns51.constellix.net.","ns61.constellix.net."],"note":"Add 1 domain (test)","version":2,"status":"ACTIVE","tags":[],"contactIds":[434]}]' [Tue Apr 7 14:58:39 UTC 2020] _domain_id='324703' So basically the domain_id i'm getting is always wrong, and it's always the first one of the API response. I'm no coding expert, so if someone can have a look, it would be nice. |
Thank you for reporting. |
Done, it seems to work OK. Tested on the 3 domains I have so far there, and got all 3 certs. Thanks for the fix! |
Great! I did a little bit more cleanup, which is available here: |
Weird, today is not working anymore; [Thu Apr 9 16:06:34 UTC 2020] Detecting root zone |
Not sure if it was bad timing and they changed something into the api since yesterday; if ! _constellix_rest GET "domains/search?exact=$h"; |
You are correct, that is very weird, looks like they just changed their API. I will make another fix. |
@woutd are you still willing to support this integration? I am a Constellix user and note that they have completely depreciated the v1 API and the current is v4. I've hacked together some stages of an update but am using jq to parse things rather than full bash, happy to collaborate with what little I can. |
Hi @ragnarkarlsson, thank you for letting me know. Since I am also still using this plugin as a Constellix user I will certainly try to make sure that is keeps on working. I am not sure when the v1 API will stop working but I will look into the changes needed for v4. |
@woutd just reach out to me if you want me to collaborate / help. I haven't tried using the current acme.sh with the v1 API version, unsure if because I'm a newer customer it isn't available to me, I'll try to do so soon and update here. |
@ragnarkarlsson I looked into the needed changes but got stuck on a limitation of the v4 API. It seems there is no more way to check if a (TXT) record exists. Which is needed when working with wildcard certificates to either create or update a record (see https://github.com/acmesh-official/acme.sh/blob/master/dnsapi/dns_constellix.sh#L33). |
Thanks @woutd that's what I suspected might be the case. I did try to do it (but break the acme.sh way) and use jq to search the JSON, but whilst I could get that to work I found I was out of my depth from there. I'll try the v1 API when I can again, but do respond here if you hear from Constellix. |
Please report any bugs with the Constellix DNS API here.
The text was updated successfully, but these errors were encountered: