Commit Graph

141 Commits

Author SHA1 Message Date
Joona Hoikkala
14f552e970 Merge pull request #66 from cpu/cpu-typo-fix
db_test: fix 'recieve' typo
2018-04-08 12:41:20 +03:00
Joona Hoikkala
f2d1fc692b Merge branch 'master' into cpu-typo-fix 2018-04-08 12:37:14 +03:00
Joona Hoikkala
dd12fa7c9b Merge pull request #64 from Daniel15/patch-2
Make installation instructions more comprehensive
2018-04-08 12:34:00 +03:00
Joona Hoikkala
0991b3e3c9 Merge branch 'master' into patch-2 2018-04-08 12:24:24 +03:00
Daniel
d18cd65374 db_test: fix 'recieve' typo 2018-03-26 17:22:23 -04:00
Daniel Lo Nigro
8eed75b495 Explain CNAMEs in DNS records section 2018-03-22 20:37:07 -07:00
Daniel Lo Nigro
46b9c45e1b Remove unintended newline 2018-03-22 20:33:30 -07:00
Daniel Lo Nigro
ed82e15349 Refactor readme changes
- Move DNS config to separate "DNS Records" section
- Move testing to separate "Testing It Out" section
2018-03-22 20:32:56 -07:00
Joona Hoikkala
7b2203ccca Merge pull request #65 from joohoi/clients
README: Add link to a client hook written in Go
2018-03-20 15:01:51 +02:00
Joona Hoikkala
945013579f README: Add link to a client hook written in Go 2018-03-20 14:56:35 +02:00
Daniel Lo Nigro
3ee50d0c20 Make installation instructions more comprehensive 2018-03-18 23:47:45 -07:00
Joona Hoikkala
f2fe21934c Merge pull request #60 from joohoi/link_clientlib
README: Add link to the client library
2018-03-18 17:13:23 +02:00
Joona Hoikkala
07aa5e0043 README: Add link to the client library 2018-03-18 16:02:25 +02:00
Joona Hoikkala
01f010e35e README: link to client implementation (#55) 2018-03-15 13:40:45 +02:00
Joona Hoikkala
cd3a587e43 Release v0.4 (#53) v0.4 2018-03-15 00:47:36 +02:00
Joona Hoikkala
439da9c09f Properly parse r.RemoteAddr (#50)
* Properly parse r.RemoteAddr

* Add tests, and fix net.ParseCIDR issues with IPv6 addresses enclosed in brackets
2018-03-15 00:23:55 +02:00
Joona Hoikkala
5c2e60a828 Add configuration option to disable registration endpoint (#51) 2018-03-14 23:35:39 +02:00
Joona Hoikkala
d542ee03b5 Merge pull request #42 from cpu/cpu-differentiate-errors
API: Differentiate bad TXT update error.
2018-03-13 11:32:40 +02:00
Joona Hoikkala
92f8cc2802 Merge branch 'master' into cpu-differentiate-errors 2018-03-13 10:55:02 +02:00
Joona Hoikkala
978ac5d62b Merge pull request #49 from Yannik/patch-1
return cname if requested RR was not found and cname exists (fixes #48)
2018-03-13 10:42:44 +02:00
Yannik Sembritzki
4d214d7f52 return cname if requested RR was not found and cname exists 2018-03-03 11:24:32 +01:00
Daniel McCarney
f463d07d0b Merge branch 'master' into cpu-differentiate-errors 2018-03-01 09:54:41 -05:00
Joona Hoikkala
9a908d7d6b Log IP address that we're matching against allowFrom values stored in the DB (#46)
* Add logging for IP matching

* Fix typo
2018-03-01 16:53:38 +02:00
Daniel McCarney
11c852ee91 README: simplify installation instructions with go get. (#41)
* README: simplify installation instructions with `go get`.

Prior to this commit the installation instructions in the README had you
use `git clone` and then `go build`. This can be collapsed into one step
using a more idiomatic `go get` command. This commit updates the README
accordingly.

* Also mention supported config file locations

* Fix go get URL
2018-02-28 20:38:44 +02:00
Joona Hoikkala
32608e9f47 Merge pull request #44 from cpu/cpu-add-api-ip-example-config
README: Add example 'ip' in example API config.
2018-02-28 20:24:08 +02:00
Daniel
77b5fda6fb README: Add example 'ip' in example API config.
`acme-dns` supports binding the API to a specific interface instead of
all interfaces by providing an `ip` address in the `[api]` configuration
section. Prior to this commit the `ip` field wasn't shown in the example
configuration in the README. This commit adds an example showing how to
configure `acme-dns` to listen only on `127.0.0.1` to the example config
and describes what the default value (`""`) does.
2018-02-27 21:45:13 -05:00
Daniel
efdd560ee4 API: Differentiate bad TXT update error.
Previous to this commit, if the update message had a valid subdomain but
an invalid TXT the error returned was for a bad subdomain. This can
confuse developers who were POSTing junk TXT records to test acme-dns
:-)

This commit adjusts the `webUpdatePost` error handling such that
`!validSubdomain(input)` and `!validTXT(input)` give distinct errors.

The `!validSubdomain` case should never happen in `webUpdatePost`
because `auth.go`'s `Auth` function already vets the post data
subdomain but I retained the error handling code just in case.

Unit tests for an update with an invalid subdomain and an update with an
invalid TXT are included.
2018-02-27 19:26:15 -05:00
Joona Hoikkala
830cceb62c Release v0.3.2 (#40) v0.3.2 2018-02-01 16:10:24 +02:00
Leon Kyneur
9f896759f0 reinstall ca-certificates (#39) 2018-02-01 16:02:06 +02:00
Joona Hoikkala
476f6fc555 Only autobuild for linux, as sqlite needs cgo (#38) v0.3.1 2018-02-01 15:33:57 +02:00
Joona Hoikkala
e2e84ede6b Goreleaser config (#37) 2018-02-01 14:20:40 +02:00
Joona Hoikkala
562d7cbad4 Make autocert use HTTP-01 challenge instead of TLS-SNI (#36) v0.3 2018-02-01 10:53:34 +02:00
Joona Hoikkala
5470ba7a41 Remove unused variable and prepare for v0.2 (#22)
* Remove unused variable and prepare for v0.2

* Added new changes to changelog and feature list

* Modified changelog
v0.2
2018-01-22 12:47:26 +02:00
Joona Hoikkala
665455d319 Docker instructions and configuration (#33)
* Added dockerfile

* Docker configuration

* Added Docker images, composer configuration and documentation
2018-01-22 12:35:07 +02:00
Joona Hoikkala
c5337fc841 Update dependencies (#32) 2018-01-22 11:19:33 +02:00
Joona Hoikkala
733245fb3d Support for multiple TXT records per subdomain (#29)
* Support for multiple TXT records per subdomain and database upgrade functionality

* Linter fixes

* Make sure the database upgrade routine works for PostgreSQL

* Move subdomain query outside of the upgrade transaction
2018-01-22 09:53:07 +02:00
Joona Hoikkala
ba695134ce Make cors messages respect the debug flag (#25) 2017-11-15 21:35:35 +02:00
Joona Hoikkala
b0cd264c71 Fail on malformed JSON payloads in register endpoint (#24) 2017-11-15 13:52:27 +02:00
Joona Hoikkala
02d42bff30 Removed unnecessary body check (#21) 2017-11-15 01:39:00 +02:00
Joona Hoikkala
fd9ce4606d Get rid of Iris and use julienschmidt/httprouter instead (#20)
* Replace iris with httprouter

* Linter fixes

* Finalize iris removal

* Vendor dependencies for reproducable builds

* Api tests are back
2017-11-14 23:54:29 +02:00
Koen Vlaswinkel
93871a7cec Fix config not being used (#19) 2017-11-14 13:01:46 +02:00
Joona Hoikkala
9c54da3ee6 Try to read config from under /etc (#18) 2017-11-14 00:42:30 +02:00
Joona Hoikkala
9c639223ce Added dep vendoring (#17) 2017-11-12 23:57:45 +02:00
Joona Hoikkala
c70a6cffb0 Go 1.9 and Iris v8, added possibility to bind to IP (#15) 2017-11-12 23:40:15 +02:00
Daniel McCarney
0ec12dbc5f Update README json examples. (#12)
This commit fixes the JSON examples in the README. There was a missing
`]` in the example input, a missing IP range in the reflected output,
and a few trailing `,` that shouldn't have been there.
2017-09-01 09:37:22 +03:00
Joona Hoikkala
41b2ff5940 Use iris v6 and Go 1.8+ (#10)
* Quick fixes to bring framework up to date

* Script for test running, api tests need complete rewrite

* Removed govendor from tests

* Fix for AutoTLS
2017-08-02 19:25:27 +03:00
Joona Hoikkala
2bfeedda4c Fixed iris version to v5 api (#9) 2017-01-30 12:19:22 +02:00
Joona Hoikkala
872e2b7c6f Service offline 2017-01-30 09:32:01 +02:00
Joona Hoikkala
220ef6d3c0 Merge pull request #7 from joohoi/release-0.1
Release 0.1
2016-12-05 00:43:10 +02:00
Joona Hoikkala
33bea973dc Release 0.1 v0.1 2016-12-05 00:35:51 +02:00