Commit Graph
59 Commits
Author SHA1 Message Date
23be0b5ef7 Make testbed fully configurable through config section
* Let users configure the AIA to use with TA certificates. Set 'ta_aia' in the config file. (#409)
* Use explicit configuration section for testbed, no longer rely on magic env variables.

Note: this will all be revised again if/when the Publication server and TA vs CA code is fully separated in future.

Co-authored-by: Ximon Eighteen <3304436+ximon18@users.noreply.github.com>
2021-03-22 16:53:41 +01:00
Ximon Eighteen 36cd630935 FIX: Incorrect variable used in log message. 2021-03-14 11:01:23 +01:00
Ximon Eighteen dd7d3f41b2 FIX: Avoid stack overflow triggered by addition of new Actor::auth_error field by flattening out chained async API handler invocation. This avoids deep recursive .or_else() macro expansion of calls that pass the large Request value (of which Actor is part) resulting in stack overflow. This fix also removes the need for the boosted recursion_limit compiler setting. 2020-12-31 15:57:02 +01:00
Tim Bruijnzeels 9d2d0eabc0 Manage Repository Server init/remove through API (#353) 2020-12-14 16:01:33 +01:00
Tim Bruijnzeels 0f54bf73ef Fix test environment variables. 2020-12-10 15:39:06 +01:00
Tim Bruijnzeels 5efe2fa377 Separate krillpubd and krillpubc. (#338) 2020-12-09 11:31:42 +01:00
Ximon Eighteen 472a0e4751 Merge multi-user branch. Uses Lagosta master branch commit a7e73cba which includes multi-user support. 2020-12-07 16:55:40 +01:00
Tim Bruijnzeels 3f07b6dd4f Merge branch 'master' into 0.8.0-RC-dev 2020-09-02 15:40:26 +02:00
Tim Bruijnzeels e14d7039c7 Raise the type_length_limit to allow for more compile time substitutions. (#310) 2020-08-31 11:42:38 +02:00
Tim Bruijnzeels 5cbbe2e6ca Get repository status through API. (#250) 2020-08-10 15:21:26 +02:00
Tim Bruijnzeels d70294d913 Let users try a ROA delta, and reject it with advice if it would result in invalids. (#302) 2020-08-05 16:09:03 +02:00
Tim Bruijnzeels cc41dde274 Configure rustfmt to allow 120 chars per line. 2020-07-24 14:17:44 +02:00
Tim Bruijnzeels ee5b6d9f08 Use a lazily initialised configuration static for easier access to config. (#268) 2020-07-10 13:08:24 +02:00
Tim Bruijnzeels 2751d63dc0 Create PID file on startup, allow users to override path in config. (Closes: #215) 2020-03-20 12:33:06 -03:00
Tim Bruijnzeels 4c716c8f09 Use hyper for all of the API - and make lots of stuff async-await as a result. (#189) 2020-03-15 11:55:05 -03:00
Tim Bruijnzeels b9c35bbee6 Add all get methods for the 'publisher' API (#189) 2020-03-10 11:09:47 +01:00
Tim Bruijnzeels e34d28debb Add SSL support to the hyper server. 2020-03-06 16:47:57 +01:00
Tim Bruijnzeels 867fdca459 Revised ErrorResponse json. Now using a map for the arguments and a string label instead of a number. (#192) 2020-02-06 11:56:02 +01:00
Tim Bruijnzeels 96431f3779 Improve config file issue reporting, hint that --config should be used. (closes: #123) 2020-01-10 09:50:48 +01:00
Tim Bruijnzeels 9154cc81d0 Show human readable error on CLI rather than json (when format is text) (closes #162) 2019-12-17 21:14:24 +01:00
Tim Bruijnzeels e64471b53f Use friendly error message when failing to start (fixes: #155) 2019-12-17 20:46:31 +01:00
Tim Bruijnzeels d8ef1404ba Remove CMS client for publishing a local dir. Closes #103 2019-10-11 17:25:43 +02:00
Tim Bruijnzeels 1e3a4a0236 Remove API client for syncing a dir to a Krill API publication server. Closes: #102. 2019-10-11 17:17:53 +02:00
Tim Bruijnzeels e45d6c25ba Rename binaries (#71) 2019-09-16 08:20:09 -07:00
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 2e8ab8f908 Improve error reporting 2019-04-10 13:32:53 +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 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 5bca26c8f7 Fixing clippy warnings. Just a few ;) 2019-02-06 16:04:31 +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 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 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 6a53b5a2a8 Organising the use statements 2019-01-16 11:25:48 +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 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 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 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 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 83f2185229 Cleanup 2019-01-02 09:51:23 +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 b95268c460 Support interacting with the pubd through the pubc CLI, and serve RRDP files.
Note:
- Serving the files still needs some improvement with regard to memory (stream rather), and headers for caching.
- Syncing 108MB RIPE NCC repo takes 1m30s initially, and about 2m30s subsequently when there is no update to send.
- Performance could be better, but seems more than good enough for the target use.
2018-12-12 16:54:52 +01:00