Commit Graph

53 Commits (37b049869968fa55426367f140063c32d045cca4)

Author SHA1 Message Date
neil 4951b58b21
Merge pull request from plett/aws-multiline-comments
Squash multiline responses. Fixes issue 
rm e48d7de763 push to run actions
rm f426940bd2 check all pages first, the go up
Paul Lettington 6d5743c506
Squash new lines in API response
neil 873b113cb3
Update dns_aws.sh
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.
Felix Yan ec678bc6d2
Correct a typo in dns_aws.sh
neil 19c4345162 fix shfmt
neil 39ced21a6f
Merge pull request from pipedrive/Add-AWS_API-slowrate
Add aws api slowrate
Stephane Moser b64f0ba83f Update usage of AWS_DNS_SLOWRATE
neilpang d795fac37a update repo name
Stephane Moser 37978b4fe5 Merge branch 'dev' into Add-AWS_API-slowrate
scottkof a22d3b2390
Switch from `sleep` to `_sleep`
scottkof df3575217a
Avoid API throttling errors in AWS DNS plugin
mjthompson 688fe131c9
Fix typo
Stephane Moser aeed287122 Add Double quote to slowrateslepp
Stephane Moser ea6a3c0963 Use AWS_DNS_SLOWRATE env variable instead of arg
Stephane Moser 3021c5cfad Use dnsslowrate arg
Gunnar Liljas 4fbd21da57
Spelling
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.
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.
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
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.
neilpang 5f345d2089 fix https://github.com/Neilpang/acme.sh/issues/1262
neilpang 3c394f08b0 fix format
neilpang 64f07d9bf3 fix aws for acme v2
neilpang 9144ce746e fix for v2 wildcard
neilpang eea713eed2 Merge branch 'dev' into 2
neilpang 6ba4f8b54c fix https://github.com/Neilpang/acme.sh/issues/1204
neilpang 60814ecfe1 typo
neilpang 872bfe4757 fix for PR https://github.com/Neilpang/acme.sh/pull/1069
neilpang 13a8c309f5 fix new shellcheck errors
wizard1024 cc1d3b20b6 Update dns_aws.sh to work only with public zones
neilpang f7217c5f26 fix format
neilpang fd77e463a1 fix aws
neilpang fc9649dbc4 fix aws
neilpang 1f4e64f81d Truncated request for more than 100 domains.
neilpang 819d2bc560 fix for wget. fix https://github.com/Neilpang/acme.sh/issues/724#issuecomment-286761682
neilpang e6e85b0c55 secure debug message
neil c9d7daab70 fix https://github.com/Neilpang/acme.sh/issues/593
neilpang b4325026b1 exe
neilpang bb6326f4d4 fix for solaris
neilpang 1c22c2f76a fix for solaris
neilpang 542d7977db add new _url_encode
Bastian Bittorf 3ca93f4a4c shellcheck: fix several occurences of SC2034
message:
SC2034: $VARNAME appears unused. Verify it or export it.

most of these are related to the style:
we generate global vars, which are used in other functions.

the var "lexical_url" was really unused (left it as comment)

the travis-check now does not need anymore special flags.

Signed-off-by: Bastian Bittorf <bb@npl.de>
Karsten Sperling 5415381cf4 Add support for AWS_SESSION_TOKEN and fix bug when multiple hosted zones exist
klemens 329174b6d9 spelling fixes
neilpang 39d1eeda23 fix for solaris
neilpang dfbc244b00 support aws remove
Marcello Barnaba c12be766e9 Fix Route53 API consumer
Ignoring the Chthlulu argument 😃, Route53 returns its XML all on one line, making not possible to grep the hosted zone record with egrep/sed.

This change splits the XML in multiple lines, so that parsing can succeed.