Creating Present/Cleanup methods providing just fqdn, value as arguments ? #720
Description
Hi,
I'm writing acme-proxy to relay dns challenges using the httpreq provider and integrating with lego DNS providers. It's easy to write a "RAW" method that calls the Present()
and Cleanup()
methods using domain
, token
and keyAuth
arguments.
I'd also like to write a version that integrates the "default" method that calls a method using just the fqdn
and value
. But there isn't a constructor that I can call for lego DNS providers with just those two values (and logically it's impossible to reverse value
to a keyAuth
as it's sha256.
I'm wondering if anyone has a good suggestion to leverage the existing DNS providers. A complete "solution" would of course make a separate constructor with the fqdn
and value
parameter that is called by the 'outer' constructor that uses the domain
, token
and keyAuth
parameters. That might solve the issue but probably this is considered overkill. OTOH having a constructor that can be called with just fqdn
and value
for DNS challenges might be useful for other uses cases too.
I'm happy to rewrite the DNS providers if this would be interesting, but first would like to see if this would be the best way to go or other solutions might be better (or just not having a "default" mode for acme-proxy might be just best)
/cc @ldez