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
0ffcd18e74
Moving shared API data (between server and client) into its own module.
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
dea1958d78
Fix command line parsing.
2019-01-23 16:25:44 +01:00
Tim Bruijnzeels
7c1d6b6513
Make the build work with latest rpki-rs.
2019-01-23 13:58:53 +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
d8d7958fe8
Moving ui content around, and have dynamic handler to help ui development.
...
Note: idea is that in future we will use the Vue tool chain to build static pages into './ui/dist' - link this to cargo so that it's done before cargo starts compiling rust. And then include these files as static resources. Also, only expose /ui/dev in development mode (to be introduced, perhaps have an ENV for this, so we do not pollute the config).
2019-01-16 11:50:19 +01:00
Tim Bruijnzeels
6a53b5a2a8
Organising the use statements
2019-01-16 11:25:48 +01:00
Tim Bruijnzeels
2c8493e8f6
Fixing warnings for unused (future use) parameter in Signer implementations (currently only one signature algorithm is allowed)
2019-01-16 10:36:01 +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
e1410558f9
Return an empty 404 if the path starts with /api
2019-01-11 16:33:45 +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
464afb0a4a
Improving the conversions for data submitted to the http server, so we can refer to types in signatures.
2019-01-11 15:32:07 +01:00
Tim Bruijnzeels
c4e94fddbe
Improved string composition.
2019-01-11 11:16:52 +01:00
Tim Bruijnzeels
b704c8b4ad
Make the compiler happy - we can safely unwrap here.
2019-01-11 10:58:05 +01:00
Tim Bruijnzeels
ec32c1ae0b
Get certificate through API and CLI. (issue #10 )
2019-01-10 17:06:35 +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
e961ee008a
Adding error reporting and documentation for adding publishers. See #10
2019-01-10 14:42:01 +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
0626f8ee1e
Add text output support for the CLI when listing publishers (see #9 )
2019-01-09 14:08:57 +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
d991c37806
Restructuring modules
2019-01-08 16:07:39 +01:00
Tim Bruijnzeels
4549cd57b1
Restructuring modules
2019-01-08 15:30:03 +01:00
Tim Bruijnzeels
1d50fad7c7
Restructuring modules
2019-01-08 15:07:24 +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
c551235f6f
Changing https config to have three options: "no", "yes" and "test" - only generate self-signed cert for "test". Fixes #32
2019-01-03 11:18:11 +01:00
Tim Bruijnzeels
e122e59242
Changing default to NOT use HTTPS. Fixes #32
2019-01-02 16:51:06 +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
3f613b800f
Updated API documentation and path structure - work in progress on #4
2019-01-02 12:34:12 +01:00
Tim Bruijnzeels
83f2185229
Cleanup
2019-01-02 09:51:23 +01:00
Tim Bruijnzeels
914ef314de
Adding support for HTTPS, resolves #32
2018-12-31 12:57:01 +01:00
Tim Bruijnzeels
26230ab8d8
Some documentation.
2018-12-21 13:34:14 +01:00
Tim Bruijnzeels
9ee5a17e88
Adding some cache control headers to static content.
2018-12-21 12:35:54 +01:00
Tim Bruijnzeels
04a8abe761
Adding some support for logging about publication protocol messages.
2018-12-20 16:20:21 +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
301a8f0302
Adding logging framework and config to pubd.
2018-12-19 15:22:02 +01:00