Commit graph

452 commits

Author SHA1 Message Date
xenolf
9e0c21c439 Add HTTPTimeout variable to http.go.
This lets users of this library override the default internal timeout for HTTP requests issued by the library. The default is 10 seconds.
2016-05-19 18:51:47 +02:00
xenolf
1389afd8d8 Better cloudflare API error handling. Report all errors if more then one error is available. 2016-05-19 18:33:35 +02:00
xenolf
7a24c51c48 Merge pull request #213 from ByStones/pwd
Allow setting "--path" even if os.Getwd() fails
2016-05-18 00:06:12 +02:00
Felix Stein
e7292edf3c Allow setting "--path" even if os.Getwd() fails 2016-05-16 19:10:28 +02:00
xenolf
a62452db95 Merge pull request #209 from slon/master
Report error from command line parser to user.
2016-05-15 21:15:22 +02:00
Fedor Korotkiy
2460688c35 Report App error to user. 2016-05-14 18:11:26 +03:00
xenolf
b5d5eee2dd Update usage of codegangster/cli to remove deprecation warning.
Fixes #206.
2016-05-12 19:52:59 +02:00
xenolf
948483535f Merge pull request #204 from aebruno/fix-dyn-subdomains
Fixes #199
2016-04-27 13:07:41 +02:00
Andrew E. Bruno
ecf664eaef Fixes #199
Dyn provider was using incorrect zone in Present and Cleanup functions.
This uses FindZoneByFqdn() to find the correct zone for use in the
subsequent API calls.
2016-04-26 22:36:48 -04:00
xenolf
06124e0954 Merge pull request #201 from janeczku/route53-fix-priv-zone
Route 53: Make sure we don't provision to a private hosted zone
2016-04-22 02:03:12 +02:00
xenolf
d93c71b61f Loading an account from file should fail if a integral part is nil.
Fixes #191
2016-04-22 01:53:50 +02:00
JanB
4d9e4f1487 Make sure we don't provision to a private hosted zone
Route 53 allows multiple zones with the same name to co-exist in an
account. The most common use case for this is a split-view DNS with one
private and one public zone for the same domain name. This patch makes
sure we don’t ever provision the authorization record to the private
zone.
The other case where a user has multiple public zones with the same
name is not covered here since this would require a bigger change in
code in order to determine which of the zones is active from the
viewpoint of the internet. Also this is probably an edge use case that
can be addressed once it comes up in the issues.
2016-04-21 15:47:43 +02:00
xenolf
96a24777ff Update changelog 2016-04-19 20:57:16 +02:00
xenolf
562781dd19 Merge pull request #196 from JoyceBabu/patch-1
Optimized Dockerfile for smaller image size
2016-04-19 10:18:03 +02:00
Joyce Babu
8482f665f6 Optimized Dockerfile for smaller image size
I have modified the official Dockerfile and made two changes

- Each RUN instruction creates an additional layer in the docker image. Adding files in one RUN instruction and deleting it in another RUN instruction will not reduce the size of the image. I used a single RUN command so that all the package/file removal happens in the same command in which the package installation happens, so that no additional layers are created.
- Similar to RUN statement, ADD instruction also creates an additional layer. Using git clone in the RUN statement and deleting it within the same statement ensures that an additional layer with source files is not added.
2016-04-19 13:43:22 +05:30
xenolf
684400fe76 Merge pull request #193 from janeczku/fix-dnsimple
Fix broken DNSimple provider
2016-04-18 01:41:48 +02:00
JanB
65321943ba Fix: DNSimple passes not-a-FQDN string to FindZoneByFqdn() 2016-04-17 04:43:43 +02:00
xenolf
094e3d41bb httpError - Set detail string to the content of the HTTP response if it's not parsed as JSON
Fixes #188
2016-04-15 03:09:29 +02:00
xenolf
cbca761215 Merge pull request #186 from LukeHandle/patch-dns-retryquery
Retry logic for dnsQuery
2016-04-14 20:27:14 +02:00
LukeHandle
a684bab9a4 Fix typo in "retry" 2016-04-12 07:36:42 +01:00
xenolf
23e88185c2 Merge pull request #185 from rekby/jws-out-of-range
Fix out of range
2016-04-12 02:41:31 +02:00
LukeHandle
dbad97ebc6 Retry logic for dnsQuery
Added a slice of NS to be used when retrying queries. Also used with FindZoneByFqdn()
Adjusted 2 error messages given to better differentiate the returned error string
2016-04-12 00:24:11 +01:00
Rekby
e81192c912 errors.New -> fmt.Errorf 2016-04-11 11:49:20 +03:00
Rekby
3ab9b75696 simple, without retriing 2016-04-11 11:43:32 +03:00
Rekby
334ebd6ee6 gofmt 2016-04-11 07:27:12 +03:00
Rekby
7557681b06 doesn't sleep after last try 2016-04-11 07:26:45 +03:00
Rekby
3a426a1382 retry get nonce few times before return error 2016-04-11 07:22:00 +03:00
Rekby
f32c8a55e7 typo 2016-04-11 07:03:21 +03:00
Rekby
1107e337a5 returt to master version for clean pull request 2016-04-11 07:02:06 +03:00
Rekby
ec18c6e42f Fix out of range 2016-04-11 06:45:32 +03:00
xenolf
23157e6ad6 Merge pull request #183 from koep/docker
Add Dockerfile
2016-04-11 04:14:19 +02:00
Rekby
232fbbef08 Fix out of range 2016-04-10 16:06:49 +03:00
xenolf
74c6bbee86
Fix a couple of lint and fmt issues. 2016-04-08 01:21:01 +02:00
xenolf
44d92633c6
Move duplicate code to a function
Signed-off-by: xenolf <xenolf@users.noreply.github.com>
2016-04-08 01:04:38 +02:00
xenolf
239a7005ef Remove official (automatically tested) support for go 1.4 2016-04-08 00:18:18 +02:00
Christian Koep
94509ee581 Add Dockerfile
This enables users to build, ship and run lego with Docker.
2016-04-07 22:15:55 +02:00
xenolf
157111fd1d Merge pull request #182 from fd0/handle-non-json-response
Only try to parse JSON documents
2016-04-05 22:22:36 +02:00
Alexander Neumann
ec667a7ed1 Only try to parse JSON documents
This patch adds code to only parse the HTTP response body as JSON if the
content-type header advertises the content as JSON. In my case, the
directory server was unavailable: it returned a 503 HTTP response code
with an HTML document, and the only thing lego reported was:

    2016/04/04 19:12:56 Could not create client: get directory at 'https://acme-v01.api.letsencrypt.org/directory': invalid character '<' looking for beginning of value

This was caused by trying to parse the document body (HTML) as JSON,
without looking at the content-type header and returning the JSON parse
error.
2016-04-04 23:15:49 +02:00
xenolf
ca19a90028 Merge pull request #176 from willseward/do-authzone
DigitalOcean uses FindZoneByFqdn
2016-03-28 18:28:34 +02:00
xenolf
fd99bdb74a Merge pull request #174 from janeczku/route53-aws-sdk
Switch route53 provider to the official AWS SDK
2016-03-28 18:26:56 +02:00
xenolf
4975774a3f Merge pull request #177 from csstaub/master
Build with go-jose.v1 (instead of master)
2016-03-28 17:58:11 +02:00
xenolf
16e4486cfd Merge pull request #175 from xi2/update-readme-sudo
Update README sudo section
2016-03-28 17:56:08 +02:00
Cedric Staub
6528bf217e Build with go-jose.v1 instead of master 2016-03-27 12:38:49 -07:00
Jan Broer
9f1b9e39af Switch route53 provider to the official AWS SDK
Fully backwards compatible in terms of credential mechanisms
(environment variables, shared credentials file, EC2 metadata). If a
custom AWS IAM policy is in use it needs to be updated with permissions
for the route53:ListHostedZonesByName action.
2016-03-27 20:22:09 +02:00
Wills Ward
b14cf9e756 digital ocean uses FindZoneByFqdn 2016-03-26 20:19:49 -05:00
Michael Cross
7f14e2a4aa Update README sudo section 2016-03-26 14:02:38 +00:00
xenolf
0a681c253d Merge pull request #172 from xi2/update-readme-example
Update README example section
2016-03-25 22:39:04 +01:00
xenolf
4c1e6a183c Merge pull request #171 from xi2/gandi-add-live-test
Gandi DNS: add live test
2016-03-25 22:38:18 +01:00
xenolf
d46784c256 Merge pull request #170 from kennyballou/readme_update
Update README usage Section
2016-03-25 22:37:47 +01:00
xenolf
3f7e7fdbc8 Merge pull request #169 from xi2/gandi-use-findzonebyfqdn
Gandi DNS: use acme.FindZoneByFqdn function
2016-03-25 22:36:25 +01:00