Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor types #29

Open
wants to merge 124 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
82d4cd5
Update to current rustc
fabricedesre Mar 24, 2017
43a3e7d
Update build badge
fabricedesre Mar 24, 2017
ae98a63
Update iron to 0.5
fabricedesre Mar 24, 2017
ece2d7b
Refactoring to prepare for the persistent storage addition
fabricedesre Apr 13, 2017
77059ee
Fix broken test
fabricedesre Apr 13, 2017
3df8cf4
Domain information database
fabricedesre Apr 14, 2017
5badcb8
Refactor delete_XXX methods
fabricedesre Apr 14, 2017
7578ceb
Add the /reserve route
fabricedesre Apr 14, 2017
91ed291
Return the name and token in the /reserve response
fabricedesre Apr 14, 2017
38a37d9
Fix some clippy warnings
fabricedesre Apr 15, 2017
e91e864
Implementation of the /dnsconfig endpoint
fabricedesre Apr 17, 2017
c1474cc
Initial plumbing for PowerDNS integration
fabricedesre Apr 17, 2017
6d75cde
Set the stage to merge the 2 databases
fabricedesre Apr 17, 2017
b33a6af
oops
fabricedesre Apr 18, 2017
38a9005
Move all storage to sql
fabricedesre Apr 19, 2017
0379e33
Switching from docopt to clap to get rid of rustc-serialize
fabricedesre Apr 19, 2017
4932807
pdns http endpoint
fabricedesre Apr 20, 2017
563683a
remove configuration file
fabricedesre Apr 20, 2017
bb18e85
Always return a valid failure to pdns
fabricedesre Apr 21, 2017
976209d
Formatting and clippy fixes
fabricedesre Apr 21, 2017
bb682e6
Add an eviction thread to remove outdated records
fabricedesre Apr 21, 2017
c2d39f5
Rename /reserve to /subscribe
fabricedesre Apr 24, 2017
3cae5be
Add an /unsubscribe method
fabricedesre Apr 24, 2017
84e23ab
Don't serialize None fields
fabricedesre Apr 24, 2017
1f05d94
Make it possible to use a config file instead of N arguments
fabricedesre Apr 24, 2017
b6a493e
Initial docker-isation
fabricedesre Apr 25, 2017
63c9cde
Don't add the local target directory to the docker image
fabricedesre Apr 25, 2017
a798f19
Cargo update
fabricedesre Apr 25, 2017
441aba1
Move the pdns config sample in ./config
fabricedesre Apr 25, 2017
5ec5b8b
Add a config flag for the data directory
fabricedesre Apr 25, 2017
66bb303
fix clippy warning
fabricedesre Apr 25, 2017
ed26f8f
Remove obsolete client
fabricedesre Apr 25, 2017
12986ef
typo
fabricedesre Apr 25, 2017
0492900
Return an error code for failed subscriptions
fabricedesre Apr 26, 2017
0c8e1d1
fix the pagekite name when installed in the docker image
fabricedesre Apr 26, 2017
e13b78b
More docker fixes
fabricedesre Apr 26, 2017
9ed72c4
more Docker changes to get PowerDNS v4
fabricedesre Apr 26, 2017
e20d05d
Improve pdns.rs logs
fabricedesre Apr 27, 2017
d4d6c0e
Add sqlite3 command line tool to the Docker image
fabricedesre Apr 27, 2017
4b450be
Fix the eviction to not remove the whole record, but just reset it
fabricedesre Apr 27, 2017
a5ab163
Don't use a unique index for timestamps as they can be equals
fabricedesre Apr 27, 2017
18e5002
Ensure that domain names are lowercase
fabricedesre Apr 27, 2017
e1bf26f
Only mandate a local_ip to be available for A lookups
fabricedesre Apr 27, 2017
3e023d5
Cargo update
fabricedesre Apr 27, 2017
629ce80
Actually return TXT records...
fabricedesre Apr 27, 2017
235e4c9
Add MPL2 license
fabricedesre Apr 28, 2017
8f73d15
First try at PageKite dns support
fabricedesre May 8, 2017
d1f0293
Better error message for debugging db opening issues
fabricedesre May 8, 2017
31cce58
Better error message for debugging db opening issues
fabricedesre May 8, 2017
e347b73
Fix PageKite detection
fabricedesre May 9, 2017
c85b318
Add SOA response for PageKite queries
fabricedesre May 9, 2017
af198b9
Remove useless comments
fabricedesre May 9, 2017
c634f1a
Only allow pdns requests from localhost
fabricedesre May 9, 2017
80db5f0
Share the SOA record building code
fabricedesre May 9, 2017
dda194d
Read the SOA record content from the config file
fabricedesre May 9, 2017
e0d76dc
Split out the http specific parts of DNS requests
fabricedesre May 9, 2017
bdd5f0a
Implements a Unix socket backend for PowerDNS
fabricedesre May 9, 2017
1363504
Don't enable the PowerDNS http endpoint when the unix socket is confi…
fabricedesre May 9, 2017
1b06b4f
Rename /ping to /info and cleanup methods description
fabricedesre May 10, 2017
6e9be40
Refactor route handlers declaration
fabricedesre May 10, 2017
0259068
Initial implementation of /discovery
fabricedesre May 10, 2017
998c33b
Improve the discovery payload
fabricedesre May 10, 2017
3bcb4f2
Support for local and remote domains
fabricedesre May 10, 2017
961c18d
Fix the local/remote detection
fabricedesre May 10, 2017
cf6b70b
Setup pagekite to use dns authentication
fabricedesre May 10, 2017
87e5819
Change /discovery to return all the servers on the client's LAN
fabricedesre May 10, 2017
60983a3
Add a description field to the records
fabricedesre May 11, 2017
5afab4c
Retrieve the description from a URL parameter
fabricedesre May 11, 2017
54ee69d
Return the description alongside the href in discovery results
fabricedesre May 11, 2017
9ff591a
Add an email field to the record
fabricedesre May 11, 2017
d9160d5
macro-ify sql index declarations
fabricedesre May 11, 2017
15fd3a6
Add an email table to keep track of email verification
fabricedesre May 11, 2017
588ca56
Rename /discovery to /ping
fabricedesre May 11, 2017
9070221
Add endpoints for the discovery mechanism
fabricedesre May 12, 2017
eada844
Unit tests for the emails database
fabricedesre May 12, 2017
1f2adb9
Split out the discovery related routes, and fix symbol visibility in …
fabricedesre May 12, 2017
b1c892f
macro-ify string manipulations
fabricedesre May 14, 2017
8288029
macro-ify common responses types
fabricedesre May 14, 2017
3eec5d1
Switch to TOML for the config file format
fabricedesre May 14, 2017
77a6756
Cargo update
fabricedesre May 14, 2017
ccd71ef
Update usage options
fabricedesre May 14, 2017
df0a462
Testing routes
fabricedesre May 15, 2017
0f7ff98
Setup travis to use coveralls
fabricedesre May 15, 2017
6dcf357
Setup travis to use coveralls
fabricedesre May 15, 2017
ce69701
Setup travis to use coveralls
fabricedesre May 15, 2017
47c06da
Setup travis to use coveralls
fabricedesre May 15, 2017
fda51ca
More route tests
fabricedesre May 16, 2017
6e58d54
Switch to cargo-travis to report test coverage
fabricedesre May 16, 2017
7661e5a
Add unit test for database eviction
fabricedesre May 16, 2017
3d05eab
Rewrite some tests to be more idiomatic
fabricedesre May 16, 2017
6f70ddb
Add missing subscribe test
fabricedesre May 16, 2017
9de4d1c
More pdns route tests
fabricedesre May 16, 2017
339c374
Complete pdns test coverage
fabricedesre May 16, 2017
fc16141
Tests for the eviction thread
fabricedesre May 17, 2017
fba8056
Make each test use its own database
fabricedesre May 17, 2017
f215048
Test for EndpointError
fabricedesre May 17, 2017
a17b9af
Discovery tests
fabricedesre May 17, 2017
24de94a
Refactor route tests to use the actual router
fabricedesre May 17, 2017
f8c009d
Initial support for email confirmation
fabricedesre May 18, 2017
7f594cd
Renaming email methods to be consistent
fabricedesre May 18, 2017
c9afc31
Split the config file into sections
fabricedesre May 18, 2017
c74d5c9
Re-organize configuration and argument parsing to reduce duplication
fabricedesre May 18, 2017
c23670e
Check the validity of submitted email address
fabricedesre May 18, 2017
170133b
Specify the confirmation email title and body in the config file
fabricedesre May 18, 2017
d15b3c1
Ignore the kcov directory
fabricedesre May 18, 2017
0978e9e
Return html content when following email verification links
fabricedesre May 18, 2017
2ef2237
Email revokation support
fabricedesre May 18, 2017
4d74c99
API documentation
fabricedesre May 19, 2017
035d002
Slight improvement
fabricedesre May 19, 2017
0210a91
Documenting the email related endpoints
fabricedesre May 19, 2017
e04dded
Documenting flows
fabricedesre May 19, 2017
4091ccc
Adding endpoints used during setup
fabricedesre May 20, 2017
486d22f
Reformat with up to date rustfmt
fabricedesre May 21, 2017
57521fb
Cargo update
fabricedesre May 21, 2017
65d037d
Move to a lib + bin model to allow reuse of datatypes by Rust clients
fabricedesre May 22, 2017
d1ae7fa
Manage the CORS details in the lib
fabricedesre May 22, 2017
dc3115b
Update sample configuration
fabricedesre May 22, 2017
b7fe621
Update docker starting script to use toml configuration file
fabricedesre May 22, 2017
a94376f
oops, forgot to change the executable name
fabricedesre May 22, 2017
c715164
Deployment documentation
fabricedesre May 22, 2017
51c2d1d
Make response types more easily reusable
fabricedesre May 23, 2017
aac69d9
Correct typo in dns zone example
fabricedesre May 23, 2017
6d061f8
move shared types to their own crate to limit dependencies
fabricedesre Jun 1, 2017
ff4993b
update travis config: travis-coverage is broken anyway...
fabricedesre Jun 1, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.git
target
kcov
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
target
*.bk
*.rdb
*.sqlite
kcov
13 changes: 12 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
sudo: false
language: rust

# run builds for all the trains (and more)
rust:
- nightly-2016-12-16
- nightly

# the main build
script:
- |
cd server &&
cargo build &&
cargo test

Loading