Commit Graph

46 Commits (master)

Author SHA1 Message Date
neil 532b425dd9
Merge pull request #5276 from stbeldarborge/master
Add existing bearer token support to Azure DNS API
3 months ago
neil 7362e8de4d fix format 4 months ago
stbeldarborge 0c10bd7dd7
shfmt 4 months ago
stbeldarborge b0418cb394
trigger 4 months ago
stbeldarborge a30c81dadc
bearetoken 4 months ago
stbeldarborge 40df6e87db
newline 4 months ago
stbeldarborge 0dff1dce8f
accoutn conf 4 months ago
stbeldarborge ffd3b3e6b5
revert 4 months ago
stbeldarborge 1305b0d8dd
revert 4 months ago
stbeldarborge 5fc41a3ea2
read account conf 4 months ago
stbeldarborge fc87fc7cab
debug 4 months ago
stbeldarborge 8887a0a6d3
new name 4 months ago
stbeldarborge ba7764aeaf
saveaccountconf 4 months ago
stbeldarborge 28afe6f29f
comment 4 months ago
Adam Bulgatz a0b8be5941
Updated MS links, added wiki link, updated error messages, updated API limit comment
Updated all Microsoft links from old `docs` subdomain to new `learn` subdomain, and fixed a couple that weren't working.

Added missing $wiki variable to print the wiki link in error messages.

Updated spelling and formatting in error messages

Updated a comment and added a TODO as Microsoft has increased the number of allowed Public DNS zones per subscription from 100 to 250, while the function in this script can only handle the old limit of 100.
4 months ago
stbeldarborge 1029dd3504
fix format 4 months ago
stbeldarborge 8860915fb9
remove dns 5 months ago
stbeldarborge f0d486d1ff
add bearer token to removal 5 months ago
stbeldarborge b27767e8f4
logic 5 months ago
stbeldarborge 0b2edd28df
bearer check 5 months ago
stbeldarborge dd634382d7
debug 5 months ago
stbeldarborge c7fb155733
debug 5 months ago
stbeldarborge 1eaa2cc619
debug 5 months ago
stbeldarborge 92a47aaac5
logic 5 months ago
stbeldarborge fcffe8beb9
feat: add bearer token support 5 months ago
Sergey Ponomarev 6b7b5caf54 DNS provider API: structured description
Instead of using comments declare info in a special variable.
Then the variable can be used to print the DNS API provider usage.
The usage can be parsed on UI and show all needed inputs for options.

The info is stored in plain string that it's both human-readable and easy to parse:

    dns_example_info='API name
     An extended description.
     Multiline.
    Domains: list of alternative domains to find
    Site: the dns provider website e.g. example.com
    Docs: Link to ACME.sh wiki for the provider
    Options:
     VARIABLE1 Title for the option1.
     VARIABLE2 Title for the option2. Default "default value".
     VARIABLE3 Title for the option3. Description to show on UI. Optional.
    Issues: Link to a support ticket on https://github.com/acmesh-official/acme.sh
    Author: First Lastname <authoremail@example.com>, Another Author <https://github.com/example>;
    '

Here:
VARIABLE1 will be required.
VARIABLE2 will be required too but will be populated with a "default value".
VARIABLE3 is optional and can be empty.

A DNS provider may have alternative options like CloudFlare may use API KEY or API Token.
You can use a second section OptionsAlt: section.

Some providers may have alternative names or domains e.g. Aliyun and AlibabaCloud.
Add them to Domains: section.

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
9 months ago
michal 7250a300df add managed identity support for azure dns 3 years ago
neil 19c4345162 fix shfmt 5 years ago
neil 40cda9220a fix https://github.com/acmesh-official/acme.sh/issues/3077 5 years ago
neilpang d795fac37a update repo name 5 years ago
Raphaël Berlamont 971a85a6f8 dns_azure : Multiple domains with same ending bug
We have a few domains that ends the same. For example :
  iperfony.com
  perfony.com

The problem was in the _get_root functions, when getting the domain_id :
only the first result "iperfony.com" was returned, because "perfony.com"
is contained in the "iperfony.com" string.

The correction consist of being strict in the regex, adding a slash (/)
so that it will only match on ".*/(perfony.com).*" and not
".*(perfony.com).*".
6 years ago
Joakim Lemb 12956679e7 Added top URI parameter 6 years ago
martgras 9e3c931b34 dns_azure add support for validation record at domain apex
Prevent the issue described in #1442
Fix [SC1117] Backslash is literal in "\[".
7 years ago
martgras 224e0c298a Fix missing success return value from dns_azure_add/rm 7 years ago
martgras 83b1a98db1 Azure DNS API - support for ACME v2 and reliability improvments
support adding 2 txt records
Adding retry logic for REST API calls
Reusing bearer token removes 50% of required REST calls
7 years ago
neilpang 8c88757451 fix format 7 years ago
neilpang dd171ca44a fix format 7 years ago
martgras 72fe7396d6
spelling mistake in error message 7 years ago
neil e4b24d20ac
Update dns_azure.sh 7 years ago
neil 91607bb2a1
Update dns_azure.sh 7 years ago
martgras 441c26dd32
Update dns_azure.sh 7 years ago
martgras c7b8debb6e
fix travis issues 7 years ago
martgras d51c383866
remove unused code and fix error handling 7 years ago
martgras f7d4698ef0
improve error checking 7 years ago
martgras 3fdbbafcb5
fix getroot with multiple dns zones 7 years ago
martgras e90f3b84c1
Add support for Azure DNS
Adding support for Azure DNS 
See https://docs.microsoft.com/en-us/azure/dns/
7 years ago