lego
lego copied to clipboard
New provider to support complicated multi-dns-provider setups
This adds a "multi" provider that dynamically creates and selects dns providers to use on a domain-by-domain basis. I need this for our production setup because:
- We need a single certificate that spans many domains, including multiple wildcards.
- Most domains are hosted on multiple dns providers (google cloud and r53, both active all the time).
- Some domains are hosted on different providers from others.
- We even have multiple cloudflare accounts with different feature sets that have different domains on them.
Using the "multi" provider, you supply an addition json configuration that specifies which providers are available with their credentials, and which providers should be applied to which domains.
This can be a little complicated to specify, but it seems necessary if your setup is as convoluted as described above.
Godoc documentation should describe pretty well how to use it.
Tested working in some pretty complicated scenarios for production-level certs.
@captncraig could you rebase?
Any updates on this? it is becoming clear that I might need this in our platform too.
Sorry, I got sidetracked on this and we decided to use our existing dns tool for this as well. I think this feature is still an ok idea, but am reluctant to continue work on it as the config can be a bit tricky, and I can't commit to really offering support going forward. The code is there though. If somebody wants to take it up, rebase and get it merge-ready please do.
I already start to work on this, but for now I don't found a satisfying approach.