-
-
Notifications
You must be signed in to change notification settings - Fork 242
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
Adding Custom DNS Provider model #285
Conversation
I think the approach with a custom DNS provider is a good one. We would be interested in that feature. Looks like only the docs are missing. I guess you are waiting for feedback before you consider merging and releasing that? Can you point me to API docs that you expect so that I can consider testing it? |
The Custom DNS Provider API has not been defined yet, so there is no documentation available. It will be available after this PR is merged. However, since there are very few requests for the Custom DNS Provider, the work has a low priority. |
Found this plugin today, just want to say we need this feature. We're using dnsimple. |
I now took a deeper look at your work @shibayan to figure out how much work is needed to test/use the CustomDnsProvider. The implementation and API definition are already there and the CI test confirms that it builds. The
The code assumes that there is a HTTP(S) REST API endpoint that supports the following methods:
To test this, I would need to fork your branch/this pull request, change "WEBSITE_RUN_FROM_PACKAGE" in https://github.com/shibayan/keyvault-acmebot/blob/master/azuredeploy.json to a zip file I have build with the CustomDnsProvider included. Am I missing something? Could you publish the zip file/modified azuredeploy.json? I am a Linux developer and ops guy unfamiliar with this Mircosoft dev environment. If I can give you feedback on the API design, I would propose those changes:
A open question is authentication. I propose to add an app setting _httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", apiToken); PS: @johste93 I am a Free software maintainer myself and for comments like "I need this", GitHub Reactions are preferred in my eyes. |
I have made significant changes to the API specification based on feedback. The API should now be easier to use than before. https://github.com/shibayan/keyvault-acmebot/wiki/DNS-Provider-Configuration#custom-dns-preview |
Thanks very much! I reviewed your changes again. I am not a C# dev but what I understand looks good to me. Can we deploy this to Azure somehow for testing? |
It will be available after the PR is merged after a minimum of checking. However, it will be a preview feature for a while. If you want to try it out right now, you can clone the repository, switch branches, and deploy it manually to Azure Functions to make it available. |
Because of the high maintenance cost of integrating DNS providers into Acmebot, I will change to using HTTP-based custom providers for all but the major DNS providers, and implement the necessary APIs by ourselves.
I will no longer accept pull requests for non-major DNS providers.