Commit Graph
59 Commits
Author SHA1 Message Date
Tim Bruijnzeels 1d232e2659 Stop using work space. 2019-09-12 21:46:46 -07:00
Tim Bruijnzeels 0bbfebfbb6 Use workspaces in project. 2019-04-11 16:36:33 +02:00
Tim Bruijnzeels 5e00fd99cb Clean-up 2019-04-09 17:15:33 +02:00
Tim Bruijnzeels c70021b33f Proxy CMS delta requests 2019-04-08 16:45:26 +02:00
Tim Bruijnzeels 812f6cc4f4 Proxy CMS list request client side and server side. 2019-04-08 16:10:12 +02:00
Tim Bruijnzeels 1f38e6f734 Test CMS client similarly to running it from the command line. 2019-04-08 12:45:05 +02:00
Tim Bruijnzeels c661b2bc4d Support returning the RFC8181 repository response from server, and process it on the cms client 2019-04-08 10:04:08 +02:00
Tim Bruijnzeels b874e36c88 Support adding an RFC8181 client 2019-04-05 17:27:49 +02:00
Tim Bruijnzeels f7005d2490 Support listing RFC8181 clients 2019-04-05 15:02:54 +02:00
Tim Bruijnzeels 63a76dc370 Moving publisher API definitions to krill-commons, and use updated module names. 2019-03-13 15:26:36 +01:00
Tim Bruijnzeels a1e7b0c69f Taking out all of the CMS Proxy code. This will be moved into a separate project. Fixes issue: #34 2019-03-12 15:38:10 +01:00
Tim Bruijnzeels 8b4db0bfcb Re-architecting the application to use event sourcing (fixes: #35) 2019-02-15 15:24:50 +01:00
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