Commit Graph

63 Commits (master)

Author SHA1 Message Date
neil 7362e8de4d fix format 4 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
Tim Dery b2c6b9a320 attempt _use_metadata fix from j-c-m 11 months ago
Tim Dery 48e4e41e05 add cr to force a new gh actions run 1 year ago
Tim Dery 22374b81de delete a cr to force a workflow run 1 year ago
Tim Dery b9157e29cb spacing cleanup 1 year ago
Tim Dery bd247c35f2 remove comments 1 year ago
Tim Dery 7da9a45c61 combined functions for cleaner code 1 year ago
Tim Dery 122dfa12ac add imdsv2 support to dns_aws 1 year ago
Matthew Robinson 8454ffa331 Fix issue with similar domain names causing an error in selecting the proper root domain to add challenge records in 1 year ago
neil 4951b58b21
Merge pull request #4086 from plett/aws-multiline-comments
Squash multiline responses. Fixes issue #4085
3 years ago
rm e48d7de763 push to run actions 3 years ago
rm f426940bd2 check all pages first, the go up 3 years ago
Paul Lettington 6d5743c506
Squash new lines in API response 3 years ago
neil 873b113cb3
Update dns_aws.sh 3 years ago
Manuel Sanchez Pinar 2280e66d73 dns_aws: Fix when _acme-challenge is a hostedzone
The function '_get_root' tries to retrieve the
    hostedzone iterating the domains, eg:
      1. srv.prod.example.com
      2. prod.example.com
      3. example.com
    This doesn't work if '_acme-challenge' is in it's
    own hostedzone for security reasons.
    Starting that iteration with '_acme-challenge.srv.prod.example.com'
    fixes this issue.
3 years ago
Felix Yan ec678bc6d2
Correct a typo in dns_aws.sh 4 years ago
neil 19c4345162 fix shfmt 5 years ago
neil 39ced21a6f
Merge pull request #2198 from pipedrive/Add-AWS_API-slowrate
Add aws api slowrate
5 years ago
Stephane Moser b64f0ba83f Update usage of AWS_DNS_SLOWRATE 5 years ago
neilpang d795fac37a update repo name 5 years ago
Stephane Moser 37978b4fe5 Merge branch 'dev' into Add-AWS_API-slowrate 5 years ago
scottkof a22d3b2390
Switch from `sleep` to `_sleep` 5 years ago
scottkof df3575217a
Avoid API throttling errors in AWS DNS plugin 5 years ago
mjthompson 688fe131c9
Fix typo 6 years ago
Stephane Moser aeed287122 Add Double quote to slowrateslepp 6 years ago
Stephane Moser ea6a3c0963 Use AWS_DNS_SLOWRATE env variable instead of arg 6 years ago
Stephane Moser 3021c5cfad Use dnsslowrate arg 6 years ago
Gunnar Liljas 4fbd21da57
Spelling 7 years ago
Mal Graty f49f55f4a5 Pull AWS creds from container role
Extend the AWS DNS API driver to support ECS container metadata by using
the special environment variable ECS sets in containers.
7 years ago
Mal Graty 759f4f2c62 Make the instance metadata fetcher self-contained
This is to provide a clean path to future extension work such as adding
a _use_container_role function to offer similar support for ECS
containers.

The $_using_role flag has also been made generic so that future role
providers can also make use of it.
7 years ago
Mal Graty 693627a858 Emulate Boto when using role metadata
Use the behavior established in the botocore python library to inform
how and when instance metadata is fetched in an attempt to acquire valid
AWS credentials.

- Use it as a fallback when no other credentials are provided
- Set the timeout of metadata requests to 1 second
7 years ago
Mal Graty 48eaa0e5bf Let AWS DNS API code pull creds from instance role
Add option (AWS_USE_INSTANCE_ROLE) to have the AWS DNS API driver pull
the necessary credentials from the AWS EC2 instance metadata endpoint
when required.

This is a non-breaking change as it only takes effect when explicitly
turned on via the environment variable, and fails safe back to the
normal code path.
7 years ago
neilpang 5f345d2089 fix https://github.com/Neilpang/acme.sh/issues/1262 7 years ago
neilpang 3c394f08b0 fix format 7 years ago
neilpang 64f07d9bf3 fix aws for acme v2 7 years ago
neilpang 9144ce746e fix for v2 wildcard 7 years ago
neilpang eea713eed2 Merge branch 'dev' into 2 7 years ago
neilpang 6ba4f8b54c fix https://github.com/Neilpang/acme.sh/issues/1204 7 years ago
neilpang 60814ecfe1 typo 7 years ago
neilpang 872bfe4757 fix for PR https://github.com/Neilpang/acme.sh/pull/1069 7 years ago
neilpang 13a8c309f5 fix new shellcheck errors 8 years ago
wizard1024 cc1d3b20b6 Update dns_aws.sh to work only with public zones 8 years ago
neilpang f7217c5f26 fix format 8 years ago
neilpang fd77e463a1 fix aws 8 years ago
neilpang fc9649dbc4 fix aws 8 years ago
neilpang 1f4e64f81d Truncated request for more than 100 domains. 8 years ago
neilpang 819d2bc560 fix for wget. fix https://github.com/Neilpang/acme.sh/issues/724#issuecomment-286761682 8 years ago
neilpang e6e85b0c55 secure debug message 8 years ago
neil c9d7daab70 fix https://github.com/Neilpang/acme.sh/issues/593 8 years ago