From 28b486a9b0319971aa30eb1059476be48d823f34 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Sun, 15 Jul 2018 19:55:32 +0200 Subject: [PATCH 1/7] Update deploy token --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index c11e9f3..e6e9122 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,7 @@ before_deploy: deploy: provider: releases api_key: - secure: "GHjOIiBMx3/0hqRsg4fAaNKeTbcgmS55AvzHGQUB8ZYIxbhRysIGk6ovdBS5RHE9t6uPlp3zdZ8Iw9s63zTH+z/l+eLA+9quT+Ls9g6/MKpTfmLgu+Fg5ilJllEzDG1MBEbneoU38hpBECJuoUX78JN8ss7Xu61vgXf/5R2lBtoxwqMLwUse0vbHnR8NQNsBKrOC1XETWRXTBnC1X2dJ4JbI5FprihHtxmkh4mC+gJRm/1RIO+oegRnR5H8d/w3A9cou750neR9rESh6NBZBgjLR+odwE+nZRJXqoYfhExKAa9MAK1HAj0f9IXGw4tRApUF4fU0dKHa5E4I2MjNJoLw88lG6Rt/+897LJrGN+Csf65vmvLANlKlhdme/+nyG0vOcTuuv5tTl/2DaytShw2Jjp7eT4iHVyS0/nuk2Z80nZyhlBoDyg2VwBfMoMYslphqbV3PVBnsnTp7LOBb7m6WpHZIB/QsXVUMhIoQGE7kgZxSA+TfiX5BGO7fYihFqdoqB4ddEm63ciJVE3ZQv2wYgHIuStoY7wu8nPzK4X0h5r84BaGGnuiL1nyKe3NgTHdU59LHLbM66//M0rJzxqjV7SjnQag/F8G/EbD0aq6CF4fXOUvIf+vXBVOPR45QTayjdbljm5GLPoGqHNyaaULsh5O2W4onn40PcaXKOkSs=" + secure: "fdLXKxM5eLdQq/TrFjwp2NpJP6e7zp4yjtxaXvHSvETkEGz5ZiLFbIhP0Qql6f4qjDAfipoQZUD47ibYlcKDYoX9iXDOPWGqpTvrmGer43voZRhPJXuqfJIevRBnFm15xZKJtnIa4COF+LhOSCLsueajtZQOC1MV6GV2E1PBnkprawtusvmnjQDo2KiEBwQ4W5VfKtemXoihc+JF+efwpCv9tvsjkhtiyxxxFXVb1wGa+kY3vIBzXm7lao8oYhq9qS8nD/dsxZ3HywKM2y3YJDxwDg+S2e+NutleppnqDbjr9NjijF382PJlLhqTBu3C+Zi+yLZeTGPf4fR14Y8ZoycTYkPg+2fjL5HbIWd/NtHQVF25Pk3vkgMX6D+jLJ5pLGatl7eYw1cSolNy/RGmIzOsgFTy2a1N4kVJB+azcLLQHaG6UPL/DhN6xozlrtOR7PyIBSvW6DZrLmaCgIPquuZ4iHtNJZkEFYaL+/NIsgMHiSGNNtaY5jzDifFL/FKzG6/nu6MCagxIME2sLcoCWAmVCiA/JKKxc0+1+S3Z+duHcJ+WtRb7dLDZAr23qo1CmEWK3W60XMGVHGO+RuYu7+0nVUqe3GY3TRDWmxkz+t/VHUtYKQHc2jixSWeK2o5j8yeU7LnpS/H3rCnm1CJmiWi7wyGUx78GPaczHtgcOdM=" file_glob: true file: - deploy/* From a5506eadfefe2d203b408a8fd1552d7a0c8ca686 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Sun, 15 Jul 2018 19:58:12 +0200 Subject: [PATCH 2/7] Cache build directory to speed up CI --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index e6e9122..363e1bc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,10 @@ services: script: - docker run --rm -it -v "$(pwd)":/home/rust/src ekidd/rust-musl-builder sh -c 'sudo chown -R rust . && cargo test && cargo build --release' +cache: + directories: + - ./target/ + before_deploy: - ./ci/before_deploy.sh From 50fcfaf736d1836af620ff104e7ebbceaa18ed22 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Sun, 15 Jul 2018 19:59:17 +0200 Subject: [PATCH 3/7] Disable email notification on success --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 363e1bc..47c1571 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,10 @@ cache: directories: - ./target/ +notifications: + email: + on_success: never + before_deploy: - ./ci/before_deploy.sh From 5202f65f78f88a7ff5999b277add5c1da78330a6 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Sun, 15 Jul 2018 20:00:00 +0200 Subject: [PATCH 4/7] Cache build directory to speed up CI --- .travis.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 47c1571..4f26e1f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,9 +4,7 @@ services: script: - docker run --rm -it -v "$(pwd)":/home/rust/src ekidd/rust-musl-builder sh -c 'sudo chown -R rust . && cargo test && cargo build --release' -cache: - directories: - - ./target/ +cache: cargo notifications: email: From 6c1efac41b340a1c0294307822c226f5d580d475 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Sun, 15 Jul 2018 20:03:29 +0200 Subject: [PATCH 5/7] Add badges for build status and licenses --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 48ac4d9..1b2a8b2 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ # BIND9 API +[![Travis Build Status](https://travis-ci.org/vbrandl/bind9-api.svg?branch=master)](https://travis-ci.org/vbrandl/bind9-api) +[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/vbrandl/bind9-api/blob/master/LICENSE-MIT) +[![License](https://img.shields.io/badge/license-Apache-green.svg)](https://github.com/vbrandl/bind9-api/blob/master/LICENSE-APACHE) + This is an attempt to implement an API to create, update or delete DNS records on a BIND9 DNS server. @@ -117,4 +121,4 @@ This project is licensed under either of * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT) -at your option. \ No newline at end of file +at your option. From 171b98d30753e823ae43f0f35d2dc422b17cda27 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Sun, 15 Jul 2018 20:17:02 +0200 Subject: [PATCH 6/7] Explain how to obtain a cert --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 1b2a8b2..862dfbf 100644 --- a/README.md +++ b/README.md @@ -112,6 +112,14 @@ In `letsencrypt/`, two example scripts can be found to use the client as a certbot hook for DNS challenges. It assumes that the client is located somewhere in `$PATH` and that the configurations file exists. +To obtain a new certificate, certbot can be invoked as followed: + +``` +certbot certonly -n --agree-tos --server https://acme-v02.api.letsencrypt.org/directory --preferred-challenges=dns-01 +--manual --manual-auth-hook /usr/lib/letsencrypt-bind9/certbot-bind9-auth --manual-cleanup-hook +/usr/lib/letsencrypt-bind9/certbot-bind9-cleanup --manual-public-ip-logging-ok -d example.com -d '*.example.com' +``` + ## License This project is licensed under either of From cbc89e6d37ab2dcf2bfe726da9def93615c8ffbb Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Sun, 15 Jul 2018 20:30:40 +0200 Subject: [PATCH 7/7] Bump version numbers --- client/Cargo.toml | 4 ++-- server/Cargo.toml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/Cargo.toml b/client/Cargo.toml index 075d487..6284927 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bind9-api-client" -version = "0.1.0" +version = "0.1.1" authors = ["Valentin Brandl "] description = "Client for the BIND9 API" license = "MIT/Apache-2.0" @@ -18,4 +18,4 @@ reqwest = "0.8.6" serde = "1.0.69" serde_derive = "1.0.69" serde_json = "1.0.22" -toml = "0.4.6" \ No newline at end of file +toml = "0.4.6" diff --git a/server/Cargo.toml b/server/Cargo.toml index 6ed0047..4617734 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bind9-api" -version = "0.1.0" +version = "0.1.1" authors = ["Valentin Brandl "] description = "Web API to create, update and remove DNS entries in bind9" license = "MIT/Apache-2.0" @@ -15,4 +15,4 @@ futures = "0.1.21" log = "0.4.3" pretty_env_logger = "0.2.3" serde = "1.0.69" -serde_json = "1.0.22" \ No newline at end of file +serde_json = "1.0.22"