Tim Bruijnzeels
5bca26c8f7
Fixing clippy warnings. Just a few ;)
2019-02-06 16:04:31 +01:00
Tim Bruijnzeels
afb9ba69f3
Re-organising api data module names in prep of also moving RRDP data definitions here (which will help with integration testing)
2019-01-29 14:03:15 +01:00
Tim Bruijnzeels
0eeda206b9
Support output formats for krillc (api). Also fix bugs in verification of adding new publishers.
2019-01-28 15:04:37 +01:00
Tim Bruijnzeels
292cf1cb00
Let publication API client sync at server. Also ensure that calls are authorized.
2019-01-25 16:51:15 +01:00
Tim Bruijnzeels
74709d0c5e
Update the RFC8181 code to re-use the API implementations for the messages. I.e. just deal with XML here, and ErrorPdus.
2019-01-25 14:51:20 +01:00
Tim Bruijnzeels
252580a3ca
Moving all the http client stuff into crate::util::httpclient, and make it a bit smarter especially w.r.t. json handling.
2019-01-24 17:26:25 +01:00
Tim Bruijnzeels
6248f0baf0
Introducing api client (issue #34 ). Still things to do, see below.
...
Done:
* api client introduced
* code can do a list and parse the json response
Todo:
* Token validation on API
* Synchronise directory
* Binary for api client
* Format output for client (text/json/none)
* Cleanup, most notably move http client code into util for re-use.
2019-01-23 16:48:14 +01:00
Tim Bruijnzeels
c2ba03e679
Some more work done to separate the CMS/XML protocol and JSON. Still some more cleanup coming. (see issue #34 )
2019-01-23 16:48:14 +01:00
Tim Bruijnzeels
573f3422df
Extracting the RFC8181 and 8183 stuff into its own module. Paving the way for a simpler JSON api with token (or other) authentication.
2019-01-18 16:54:03 +01:00
Tim Bruijnzeels
d0bf4c6766
Only expose /ui/dev in dev mode (export KRILL_DEV_MODE=whatever).
2019-01-16 14:56:33 +01:00
Tim Bruijnzeels
e9716ec454
Cleanup: do not load publishers from disk, and include certificate in publisher details (one https end point less)
2019-01-16 14:40:44 +01:00
Tim Bruijnzeels
b92d284a38
Updated to master rpki-rs "^0.3" - and quite a bit of refactoring that followed.
2019-01-16 10:30:43 +01:00
Tim Bruijnzeels
09f2645baa
Allow overriding the publisher_handle when adding a publisher.
2019-01-14 11:48:19 +01:00
Tim Bruijnzeels
e7c02430ef
Added support to remove publisher through API and CLI ( #10 )
2019-01-11 16:26:55 +01:00
Tim Bruijnzeels
b1672d0705
Get the response.xml through the API and CLI. More work om #10 .
2019-01-10 16:41:40 +01:00
Tim Bruijnzeels
a8cc5e4bdf
Showing publisher details in API and CLI. More work on #10 .
2019-01-10 15:49:17 +01:00
Tim Bruijnzeels
14d4fdb766
Support adding a publisher through the API and CLI. See issue #10 .
...
Still needs better error reporting and documentation, but works mostly (integration test is green).
2019-01-09 16:58:55 +01:00
Tim Bruijnzeels
9adf116beb
Support listing publishers through CLI. Still to do: support text output, and document. See issue #9
2019-01-09 12:32:51 +01:00
Tim Bruijnzeels
f98bc1878f
Restructuring modules (no functional changes).
2019-01-08 16:28:36 +01:00
Tim Bruijnzeels
c41a73e1fb
Formatting
2019-01-08 12:43:29 +01:00
Tim Bruijnzeels
9ea789eec8
Some clean up (document and simplify module structure)
2019-01-08 12:36:36 +01:00
Tim Bruijnzeels
a0cbab60e7
Doing a health check, using an authenticated krill CLI. Closes #8
2019-01-07 17:00:44 +01:00
Tim Bruijnzeels
2436c8f210
Restructure src folders for client code.
2019-01-07 15:02:27 +01:00
Tim Bruijnzeels
8f7850bb53
Have defaults for everything and update README to show how to configure and run.
2019-01-04 16:45:21 +01:00
Tim Bruijnzeels
850623d52f
Naming the project 'Krill', and restructuring things somewhat in anticipation of the CA components.
2019-01-04 15:38:10 +01:00
Tim Bruijnzeels
68b74fb004
Introducing authorisation on the API (issue #8 )
2019-01-03 17:03:30 +01:00
Tim Bruijnzeels
f958ba17b2
Changing path to response.xml rather than response-xml, seems more fitting for a file. Resolves #4 .
2019-01-02 16:32:57 +01:00
Tim Bruijnzeels
cfdff770b4
Some more restructuring of the basic API. Closing #4 now, but surely this will still be refactored as more methods are added to the API.
2019-01-02 16:19:41 +01:00
Tim Bruijnzeels
0bde805445
Merge branch 'master' of github.com:NLnetLabs/tranquility-base
2018-12-20 16:19:58 +01:00
Tim Bruijnzeels
cf0b95fff3
Added logging, some fixes to config, and removed a lot of string cloning.
2018-12-20 15:58:55 +01:00
Martin Hoffmann
e20d89ca3f
Import remote from rpki-rs.
2018-12-19 16:55:02 +01:00
Tim Bruijnzeels
f23bc90b4a
Publishing at the server, from the client, integration test working.
2018-12-05 17:04:01 +01:00
Tim Bruijnzeels
09189d54df
Perform a list query, and parse the reply.
2018-12-04 16:14:53 +01:00
Tim Bruijnzeels
77c0346612
Expose http handler for receiving list and publish requests. Note this will be tested in the integration test once the client side is implemented.
2018-12-03 15:35:47 +01:00
Tim Bruijnzeels
7817e27e93
Using reqwest instead of hyper, because synchronous requests are all we need here, both in testing and for the publication client
2018-12-03 11:31:46 +01:00
Tim Bruijnzeels
93bba5c985
Replacing Hyper with Actix Web for the server.
2018-11-30 16:39:07 +01:00
Tim Bruijnzeels
00275d852d
Moving PublisherStore into the provisioning module, rather than repo.
2018-11-26 15:08:27 +01:00
Tim Bruijnzeels
b527dbb643
Combining PublisherStore and FileStore in a single Repository. Also passing config options by reference as much as possible.
2018-11-26 14:58:15 +01:00
Tim Bruijnzeels
b3d73ade3d
Process repository response in publisher client.
2018-11-20 15:27:02 +01:00
Tim Bruijnzeels
200191839a
Let server generate a RepositoryResponse for a Publisher. Also refactored things to use PathBuf for directories, rather than String, in lots of related places.
2018-11-19 16:55:16 +01:00
Tim Bruijnzeels
c8f9e491d4
Rename server.rs to daemon.rs, will have separate stateful server (eg with identity) as the next step.
2018-11-16 16:28:04 +01:00
Tim Bruijnzeels
a28b132509
Extended integration test to set up client, and add that as a publisher to the server.
2018-11-16 15:45:34 +01:00
Tim Bruijnzeels
febec5d16d
Failed to extract generic function or macro for boiler plate around response testing in the integration test. Leaving this commented out though for discussion and future work.
2018-11-16 11:09:02 +01:00
Tim Bruijnzeels
e4a1d09b53
Shorten waiting time for server to come up in integration test.
2018-11-15 12:53:13 +01:00
Tim Bruijnzeels
544b5c11a5
Integration test.. can be improved but at least starting a server and parsing a response.
2018-11-14 16:22:15 +01:00
Tim Bruijnzeels
3e2aaa93e5
Fixing warnings for integration test, leaving it as a work in progress.
2018-10-29 14:41:32 +01:00
Tim Bruijnzeels
cd47bd3b25
Various fixes: keystore is immutable so it can go in an Arc, yet it can update things internally using its RWLock. Now syncing the PublisherList at start up and passing to the server. A start of an integration test was added, but it needs a whole more work to make it play with starting a hyper server for the duration of the test.
2018-10-26 16:47:29 +02:00