Commit Graph
175 Commits
Author SHA1 Message Date
Tim Bruijnzeels 5bca26c8f7 Fixing clippy warnings. Just a few ;) 2019-02-06 16:04:31 +01:00
Tim Bruijnzeels 600094e80b Adding event sourcing support. 2019-02-04 16:45:28 +01:00
Tim Bruijnzeels 9409ae97ad Starting to use more of the api::rrdp_data in the RRDP module. However, will probably end-up replacing the complete pubd module and components by an event sourced solution. 2019-02-04 16:43:55 +01:00
Tim Bruijnzeels 5007d54d20 More moving of modules to make naming and grouping more intuitive. 2019-01-29 15:20:10 +01:00
Tim Bruijnzeels bcff964f56 Splitting the repository server into modules, starting to move RRDP data into api::rrdp_data 2019-01-29 15:05:04 +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 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
Alex BandandGitHub 4007736294 Link to blog post 2019-01-16 14:35:40 +01:00
Tim BruijnzeelsandGitHub 464edf1d43 Add travis status 2019-01-16 12:40:26 +01:00
Tim BruijnzeelsandGitHub e2d14570e6 Update travis to use xenial instead of trusty
It seems that the openssl in trusty is too old for actix web.
2019-01-16 12:03:26 +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
Alex BandandGitHub 98c5cfe686 Expanded intro and added link to website 2019-01-14 12:22:32 +01:00
Tim Bruijnzeels 2fc3ca894d Merge branch 'master' of github.com:NLnetLabs/krill 2019-01-14 11:48:59 +01:00
Tim Bruijnzeels 09f2645baa Allow overriding the publisher_handle when adding a publisher. 2019-01-14 11:48:19 +01:00
Alex BandandGitHub c69c5d6c1c remove link to project plan page 2019-01-14 09:31:54 +01:00
Tim BruijnzeelsandGitHub 0801698797 Adding libssl-dev pre-build dependency 2019-01-12 08:55:41 +01:00
Alex BandandGitHub 4d72161840 Docs badge 2019-01-12 08:42:52 +01:00
Tim BruijnzeelsandGitHub ebb5e586c1 Update .travis.yml 2019-01-12 08:37:14 +01:00
Tim BruijnzeelsandGitHub faaa9cd08d Rename .travis.yaml to .travis.yml 2019-01-12 08:30:47 +01:00
Tim BruijnzeelsandGitHub 13869b515b Added travis config 2019-01-12 08:27:51 +01:00
Tim BruijnzeelsandGitHub 6f946a8b94 Simplify readme, refer to the license and docs. 2019-01-12 08:21:08 +01:00
Tim BruijnzeelsandGitHub cbb8dcd64e Added MPL2 2019-01-12 08:16:02 +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 75fabc2565 Formatting 2019-01-09 14:13:49 +01:00
Tim Bruijnzeels ca458ee6c5 Added documentation on the use of the CLI. Fixes #9 2019-01-09 14:09:26 +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