1
0
mirror of https://github.com/vbrandl/bind9-api.git synced 2025-07-23 19:08:18 +02:00

18 Commits

Author SHA1 Message Date
Valentin Brandl
8dd1a1b0fa Merge branch 'release/0.1.3' 2018-07-15 21:38:41 +02:00
Valentin Brandl
d87cbf9d0f Bump version numbers 2018-07-15 21:38:37 +02:00
Valentin Brandl
3af4ccf2d2 Fix before_deploy script 2018-07-15 21:38:11 +02:00
Valentin Brandl
d50bfb83dc Merge tag 'v0.1.2' into develop
v0.1.2
2018-07-15 21:26:46 +02:00
Valentin Brandl
811ff79a60 Merge branch 'release/0.1.2' 2018-07-15 21:26:39 +02:00
Valentin Brandl
106a7cad2b Bump version numbers 2018-07-15 21:26:36 +02:00
Valentin Brandl
cfda91af97 Actually execute before_deploy function 2018-07-15 20:58:08 +02:00
Valentin Brandl
33f9eedce1 Use rust environment in travis 2018-07-15 20:34:56 +02:00
Valentin Brandl
4302f7e70c Merge tag 'v0.1.1' into develop
v0.1.1
2018-07-15 20:30:50 +02:00
Valentin Brandl
48bb9264f6 Merge branch 'release/0.1.1' 2018-07-15 20:30:45 +02:00
Valentin Brandl
cbc89e6d37 Bump version numbers 2018-07-15 20:30:40 +02:00
Valentin Brandl
171b98d307 Explain how to obtain a cert 2018-07-15 20:17:02 +02:00
Valentin Brandl
6c1efac41b Add badges for build status and licenses 2018-07-15 20:03:29 +02:00
Valentin Brandl
5202f65f78 Cache build directory to speed up CI 2018-07-15 20:00:00 +02:00
Valentin Brandl
50fcfaf736 Disable email notification on success 2018-07-15 19:59:17 +02:00
Valentin Brandl
a5506eadfe Cache build directory to speed up CI 2018-07-15 19:58:12 +02:00
Valentin Brandl
28b486a9b0 Update deploy token 2018-07-15 19:55:32 +02:00
Valentin Brandl
db74a8525e Merge tag 'v0.1.0' into develop
v0.1.0
2018-07-15 19:31:13 +02:00
5 changed files with 32 additions and 13 deletions

View File

@@ -1,16 +1,23 @@
sudo: required sudo: required
language: rust
services: services:
- docker - docker
script: 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' - 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: cargo
notifications:
email:
on_success: never
before_deploy: before_deploy:
- ./ci/before_deploy.sh - ./ci/before_deploy.sh
deploy: deploy:
provider: releases provider: releases
api_key: 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_glob: true
file: file:
- deploy/* - deploy/*

View File

@@ -1,5 +1,9 @@
# BIND9 API # 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 This is an attempt to implement an API to create, update or delete DNS records
on a BIND9 DNS server. on a BIND9 DNS server.
@@ -108,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 certbot hook for DNS challenges. It assumes that the client is located somewhere
in `$PATH` and that the configurations file exists. 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 ## License
This project is licensed under either of This project is licensed under either of
@@ -117,4 +129,4 @@ This project is licensed under either of
* MIT license ([LICENSE-MIT](LICENSE-MIT) or * MIT license ([LICENSE-MIT](LICENSE-MIT) or
http://opensource.org/licenses/MIT) http://opensource.org/licenses/MIT)
at your option. at your option.

View File

@@ -3,13 +3,13 @@
set -ex set -ex
main() { main() {
local src=$(pwd) \ local src=$(pwd)
stage=$src/deploy local stage=$src/deploy
mkdir -p $deploy mkdir -p $stage
test -f Cargo.lock || cargo generate-lockfile cp target/x86_64-unknown-linux-musl/release/bind9-api $stage/bind9-api-${TRAVIS_TAG:1}-x86_64-musl
cp target/x86_64-unknown-linux-musl/release/bind9-api-client $stage/bind9-api-client-${TRAVIS_TAG:1}-x86_64-musl
}
cp target/x86_64-unknown-linux-musl/release/bind9-api $stage/bind9-api-${TRAVIS-TAG:1}-x86_64-musl main
cp target/x86_64-unknown-linux-musl/release/bind9-api-client $stage/bind9-api-client-${TRAVIS-TAG:1}-x86_64-musl
}

View File

@@ -1,6 +1,6 @@
[package] [package]
name = "bind9-api-client" name = "bind9-api-client"
version = "0.1.0" version = "0.1.3"
authors = ["Valentin Brandl <vbrandl@riseup.net>"] authors = ["Valentin Brandl <vbrandl@riseup.net>"]
description = "Client for the BIND9 API" description = "Client for the BIND9 API"
license = "MIT/Apache-2.0" license = "MIT/Apache-2.0"
@@ -18,4 +18,4 @@ reqwest = "0.8.6"
serde = "1.0.69" serde = "1.0.69"
serde_derive = "1.0.69" serde_derive = "1.0.69"
serde_json = "1.0.22" serde_json = "1.0.22"
toml = "0.4.6" toml = "0.4.6"

View File

@@ -1,6 +1,6 @@
[package] [package]
name = "bind9-api" name = "bind9-api"
version = "0.1.0" version = "0.1.3"
authors = ["Valentin Brandl <vbrandl@riseup.net>"] authors = ["Valentin Brandl <vbrandl@riseup.net>"]
description = "Web API to create, update and remove DNS entries in bind9" description = "Web API to create, update and remove DNS entries in bind9"
license = "MIT/Apache-2.0" license = "MIT/Apache-2.0"
@@ -15,4 +15,4 @@ futures = "0.1.21"
log = "0.4.3" log = "0.4.3"
pretty_env_logger = "0.2.3" pretty_env_logger = "0.2.3"
serde = "1.0.69" serde = "1.0.69"
serde_json = "1.0.22" serde_json = "1.0.22"